Re: [R] Error in lm() function

2009-11-11 Thread David Winsemius
On Nov 11, 2009, at 7:14 AM, Bogaso wrote: Hi all, I wanted to have a seasonality study like whether a particular month has significant effect as compared to others. Here is my data : 0.10499 0 0 1 0 0 0 0 0 0 0 0 0.00259 0

Re: [R] Error in lm() function

2009-11-11 Thread Mohamed Lajnef
Hi Bogaso, Try this vecnames<-names(test[,2:11]) fmla <- as.formula(paste("test[,1] ~ ", paste(vecnames, collapse= "+"))) res<-lm(fmla) Regards M Bogaso a écrit : Hi all, I wanted to have a seasonality study like whether a particular month has significant effect as compared to others. Here i

[R] Error in lm() function

2009-11-11 Thread Bogaso
Hi all, I wanted to have a seasonality study like whether a particular month has significant effect as compared to others. Here is my data : 0.10499 0 0 1 0 0 0 0 0 0 0 0 0.00259 0 0 0 1 0 0 0