[R] lmer with 2 random effects with only two levels

Daniel Malter daniel at umd.edu
Fri May 20 01:27:32 CEST 2011


What you should and can do depends on the expectations you have regarding the
correlation structure of the data and is limited by your degrees of freedom.
For example, what is wrong about:

reg<-lmer(response~femaleset+treatment+(1|group))
 
?

This assumes that there are constant group effects on a group's responses
(i.e., it allows for differences in mean responses between groups) and that
this constant group effect is independent of the effect of femaleset and
treatment on a group.

Best,
Daniel


--
View this message in context: http://r.789695.n4.nabble.com/lmer-with-2-random-effects-with-only-two-levels-tp3536791p3537184.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list