Skip to content
Prev 8369 / 20628 Next

Random-Intercept Random-Slope Models

Hi Eiko,

+ x1 just adds a main effect of x1 on the outcome.  That is how Rs formula interface works regardless of simple linear regression as with lm() or mixed models (including longitudinal of course).  "is really not something you want to do" depends entirely on what you want to do.  It is entirely sensible if you are trying to model baseline differences.  If what you really want to do is try to model differences in the time slope, then of course it is not something you want to do.  If that is what you want, include the interaction with time as:

time * (x1 + x2 + x3)

note that the * is important for that to work.

Cheers,

Josh
On Jun 12, 2012, at 18:31, Eiko Fried <torvon at gmail.com> wrote: