Displaying 1 result from an estimated 1 matches for "secondgo".
Did you mean:
second
2006 Aug 09
1
nested ANOVA using lme
...tes of the
variance components. In this case the REML approach should give more
reliable estimates than the method I have used. But I am unable to work
out how to specify a nested factor using the "lme" function. I have
tried:
>firstgo<-lme(Diam~Env+Env:Site,data=environ)
>secondgo<-lme(Diam~Env+Env%in%Site,data=environ)
>thirdgo<-lme(Diam~Env+Env/Site,data=environ)
But I keep getting this error:
Error in getGroups.data.frame(dataMix, groups) :
Invalid formula for groups
If anyone could help me with code for specifying a random nested factor
using lme that woul...