Skip to content
Prev 302389 / 398506 Next

lme4 / HLM question

Jeff <r <at> jp.pair.com> writes:
In general you'd probably be better off asking this question
at r-sig-mixed-models at r-project.org ... but it's very easy to
put fixed effects into a model --

  lmer (Y ~ x + z + (1|id), PanelData4)

 or in lme (nlme package):

  lme ( Y~ x + z, random = ~ 1|id, PanelData4)

  Neither lmer nor lme need to be told explicitly which level
the fixed effects vary at (the data are always provided in 
long form).

    Ben Bolker