Re: [R] how to include a factor or class Variable

2011-11-17 Thread Bert Gunter
Please post this to r-sig-mixed-models instead. Or, better yet, consult your local statistician, as your question indicates a profound lack of understanding that may require more back and forth discussion than can occur on an internet help site. -- Bert On Thu, Nov 17, 2011 at 5:36 AM, arunkumar1

[R] how to include a factor or class Variable

2011-11-17 Thread arunkumar1111
Hi How to include a factor or class variable to a fixed effect of lmer function. when i included it throws an error. Please help My code data <- read.delim("C:/TestData/data.txt") Mon=as.factor(data$Month) lmerform= "Y~ X2 +X3 + Month:Mon + (1|State)+ (1+ X5|State)" lmerfit=lmer(formula=l