[R-sig-ME] generalized linear mixed-effects model and lmer, lme
Daniel Ezra Johnson
danielezrajohnson at gmail.com
Sat Aug 30 12:53:21 CEST 2008
> Example 1: lmer(Reaction ~ Days + (Days | Subject), sleepstudy))
> Example 2: lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy))
Perhaps the example currently given is not the clearest one that could
appear in the ?lmer helpfile. I would suggest either replacing it with
a more elementary example, or else adding a comment line indicating
that the only difference lies in the correlation structure.
What about:
Example 1: lmer(Reaction ~ Days + (1 | Subject), sleepstudy))
Example 2: lmer(Reaction ~ Days + (Days | Subject), sleepstudy))
People looking at the helpfile might find that one more helpful.
There's something elegant about the current example, but it certainly
threw me too, until I inspected the output carefully.
More information about the R-sig-mixed-models
mailing list