Skip to content
Prev 77363 / 398502 Next

Possible bug in lmer nested analysis with factors

My guess is he wants this:

c1 <- factor(c)
d1 <- factor(d)
m <- lmer(a ~ b + (1|c1:d1)+(1|c1))

which assumes d1 is nested within c1.

Take a look at Section 3 in the "MlmSoftRev" vignette:

library(mlmRev)
vignette("MlmSoftRev")

HTH,

--sundar
Doran, Harold wrote: