0
$\begingroup$

The vignette "Translating lme4 models to sommer" of the sommer package explains

fm1 <- lmer(Reaction ~ Days + (0 + Days | Subject), data=DT)

as

"This is the a model where you assume that the random effect has different intercepts based on the levels of another variable but there’s not a main effect. The 0 in the intercept in lme4 assumes that random slopes interact with an intercept but without a main effect."

As I understand, the above model specification suggests a random slope effect of Days nested in Subject, but the random intercept variance is forced to 0, meaning that all Subjects have identical intercept. I do not quite understand why the sommer vignette states "the random effect has different intercepts".

Please let me know if my understanding is somewhere problematic.

$\endgroup$
1
  • $\begingroup$ Your interpretation is correct, with that code random intercept variance is forced to zero (but random slopes are estimated). I think maybe in early versions of lme4 that code did estimate random intercept too (but specified random intercept and slope as uncorrelated), maybe that's the source of the sommer package text? But I'm not sure about that. $\endgroup$
    – Sointu
    Commented May 11 at 7:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.