Skip to content

(robust) mixed-effects model with covariate

1 message · Spencer Graves

#
What do you get from the following:

	  max(with(df1, table(Subj, Time)))?

	  With cases like this, "lme" gives an answer with a bogus distinction 
between variance components for "time" and "residuals".  I don't know 
about "aov" or "JMP", but I know that "varcomp" in S-Plus also produces 
garbage answers in such cases as well.

	  With mixed models, there seem to be many ways to specify models with 
random effects that are not estimable.  Some some standard software 
(like "varcomp" in S-Plus or "lme") does not (adequately?) test for 
these situations, with the result that the algorithm sometimes returns 
answers that are not correct, at least with the distinction between 
"time" and "residual".

	  I don't know if this applies to your example since it is not self 
contained.

	  Your code raises other question.  For example, what is the class of 
"Time" in "df1"?  Might it be treated differently between "aov" and 
"lme"?  How many levels does "Group" have, etc.?

	  Hope this helps.
	  Spencer Graves
p.s.  If you'd like more help from this listserve, please submit another 
post that includes commented, minimal, self-contained, reproducible 
code, as suggested in  the posting guide 
"www.R-project.org/posting-guide.html".
Giuseppe Pagnoni wrote: