Hi R Users,     When I use package nlme for linear model with random
effects, there exists errors and I don't know the data structure of lme.
     Here is my data:

  
Rice<-data.frame(Yield=c(8,7,4,9,7,6,9,8,8,8,7,5,9,9,5,7,7,8,8,8,4,8,6,4,8,8,9),
                 Variety=rep(rep(c("A1","A2","A3"),each=3),3),
                 Stand=rep(c("B1","B2","B3"),9),
                 Block=rep(1:3,each=9))
    Rice.lme<-lme(Yield ~ Variety + Stand  + Block,data=Rice)

    And error will be like below:

    Wrong at getGroups.data.frame(dataMix, groups) :
    Invalid formula for groups

    can you give me some advice and you will be appreciated. Thanks.

    Wenjun.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to