[R] Simple Nesting question/Odd error message
Jarrett Byrnes
redbeard at arrr.net
Tue Nov 8 18:39:05 CET 2005
That works, but I am still puzzled as to why
lme(fixed = X.open ~ Dock, random=~Slip%in%Dock, data=my.data)
Does not work. It yields the error
Error in getGroups.data.frame(dataMix, groups) :
Invalid formula for groups
Whereas were I to treat slip as a fixed factor
aov(X.open ~ Dock + slipfactor%in%Dock, data=my.data)
works just fine.
Is there something fundamental that I am missing in the syntax?
On Nov 8, 2005, at 2:06 AM, Dieter Menne wrote:
> Jarrett Byrnes <redbeard <at> arrr.net> writes:
>
>> I'm having syntactical issues, however. When I try
>>
>> dock.lme<-lme(X.open ~ Dock, random=Slip|~Dock, data=my.data)
>>
>> I get
>>
>> Error in inherits(object, "reStruct") : Object "Slip" not found
>>
>
> Syntax is wrong, should be something like
>
> dock.lme<-lme(X.open ~ Dock, random=~Slip|Dock, data=my.data)
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list