Re: [R] Seasonal pattern analysis

2015-05-03 Thread Frederic Ntirenganya
Hi, I suggest you use* ts* function which can create timeseries object of your data. You can also use* subset* function to subset the data for some particular months. I am not sure whether this can help since I don't have your data to try. All the best! Frederic Ntirenganya Maseno University, A

[R] Seasonal pattern analysis

2015-05-03 Thread Arshad Mohamed
Hello everyone, I want to do a seasonal pattern analysis of a disease incidence. I have the data on incidence number in each month for 3 years. I saw a good package called "season" in R. But it looks like it does the analysis for monthly, weekly or daily fashion. But I need to do the analysis for

[R] Downloading file.Rdata from internet

2015-05-03 Thread Rafael Costa
Dear R users, To load the file into "http://www.datafilehost.com/d/c7f0d342";, I first uncheck the "Use our download manager and get recommended downloads" option and I click the "DOWNLOAD" button. How do I load and save the file directly from R? Any help on this is most appreciated. Thanks in a

Re: [R] (no subject)

2015-05-03 Thread Dot Lundberg
Hello, Here is the example of the dataset and code I am working with. I have also attached a photo of the graphs it produces. I am trying to get the x axis to read the dates as dates not a count of the dates. getwd() [1] "C:/Users/Dot/Documents" > setwd("c:/users/dot/desktop/r") > list.files()

Re: [R] Fwd: (no subject)

2015-05-03 Thread Jeff Newmiller
Please keep the mailing list included. I don't provide help offline. The Posting Guide (mentioned at the bottom of every message on this list) requests that you provide a small reproducible example. Your example is not yet reproducible. Reading files off your disk is generally not an option in

Re: [R] Plotting Confidence Intervals

2015-05-03 Thread Steve Taylor
Have you tried: library(effects) plot(allEffects(ines),ylim=c(460,550)) -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Andre Roldao Sent: Saturday, 2 May 2015 2:50p To: r-help@r-project.org Subject: [R] Plotting Confidence Intervals Hi Guys, It's the

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-03 Thread Prashant Sethi
Hi, I'm not an expert in data analysis (a beginner still learning tricks of the trade) but I believe in your case since you're trying to determine the correlation of a dependent variable with a number of factor variables, you should try doing the regression analysis of your model. The function you

Re: [R] cycle in a directed graph

2015-05-03 Thread Jeff Newmiller
Lacking any reference to R, this message is off-topic on this mailing list. You might try math.stackexchange.com. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#.

[R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-03 Thread Lalitha Viswanathan
Hi I am sorry, I saved the file removing the dot after the Disp (as I was going wrong on a read.delim which threw an error about !header, etc...The dot was not the culprit, but I continued to leave it out. Let me paste the full code here. x<-read.table("/Users/Documents/StatsTest/fuelEfficiency.txt

[R] Help with function jtest - inputs other than from lm

2015-05-03 Thread Reiko
Hi all, the function jtest allows to compare two non-nested models. The comparison is made such that the fitted values of one model are included in the regressor matrix of the other model. It then looks whether there is any predictive power of these fitted values. Unfortunately, the input has to

[R] cycle in a directed graph

2015-05-03 Thread Dany
Hi I saw the answer: �If the graph has n nodes and is represented by an adjacency matrix, you can square the matrix (log_2 n)+1 times. Then you can multiply the matrix element-wise by its transpose. � I�m a PhD student working on my research and I need to check for cycles in a directed graph

[R] OAT Spartan package error

2015-05-03 Thread Citlalli M.J.
Hi all, I am trying to analyse data using the OAT method in the Spartan package. However I am getting this error when trying to generate the A-Test Scores: "Analysing Netlogo Robustness Analysis File, and Generating A-Test Scores" [1] "No results in the CSV file for simulation at specified baseli

Re: [R] Black outlines for errorbar using geom_line

2015-05-03 Thread Jim Lemon
Hi Michael, I don't know about ggplot, but it is fairly easy to create outlined or even shadowed errorbars: require(plotrix) # display thick black errorbars dispersion(...,lwd=3) # display thin white errorbars dispersion(...,col="white") The above trick produces white errorbars outlined in black.

Re: [R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-03 Thread Michael Dewey
Dear Lalitha, see inline below On 03/05/2015 10:19, Lalitha Viswanathan wrote: Hi I have a dataset of the type attached. Here's my code thus far. dataset <-data.frame(read.delim("data", sep="\t", header=TRUE)); newData<-subset(dataset, select = c(Price, Reliability, Mileage, Weight, Disp, HP));

Re: [R] Plotting Confidence Intervals

2015-05-03 Thread Jim Lemon
Hi Andre, Perhaps you want something like this: plot(c(p_conf[1],p_conf1[1],p_pred2[1],p_pred3[1]),xaxt="n", xlab="Model",ylab="Estimate") axis(1,at=1:4,labels=c("p_conf","p_conf1","p_pred2","p_pred3")) library(plotrix) dispersion(1:4,c(p_conf[1],p_conf1[1],p_pred2[1],p_pred3[1]), ulim=c(p_conf[

[R] Request for functions to calculate correlated factors influencing an outcome.

2015-05-03 Thread Lalitha Viswanathan
Hi I have a dataset of the type attached. Here's my code thus far. dataset <-data.frame(read.delim("data", sep="\t", header=TRUE)); newData<-subset(dataset, select = c(Price, Reliability, Mileage, Weight, Disp, HP)); cor(newData, method="pearson"); Results are Price Reliability