Skip to content
Prev 8654 / 20628 Next

Extracting means and SE from lme & lmer with random terms

Julie Kern <juliekern27 at ...> writes:
Can you give us a (small!) reproducible example?
  Do you get the desired results (in terms of which values are
computed) if you use glm() instead of lmer() and drop the random
effects term?

  A couple of notes:

 * REML is silently ignored when fitting GLMMs (there is a bit
of commentary on this in http://glmm.wikidot.com/faq ; the development
version of lme4 produces a warning).
 * the CRAN version of lme4 silently passes control to glmer() when
'family' is specified, but it is probably better to call glmer() explicitly
when doing GLMMs (the development version requires that you call glmer()
explicitly).
the incantation you reproduce here is for getting the variances
of the random effect 'estimates' (conditional modes), not for getting
the standard errors of the fixed-effect parameters.

  Ben Bolker