Skip to content
Prev 12502 / 20628 Next

anova (lm, lmer ) question

On 14-10-04 10:13 AM, Ben Pelzer wrote:
Yes, I believe so, but you might want to check the archives.  I think
I've posted examples to this effect in the past.  (The way to
double-check this would either be to set up an example where the RE
variance was estimated as exactly zero (e.g. a small/noisy data set with
a small number of levels of the grouping variable), or to extract the
deviance function via devFunOnly=TRUE and force the random effects to
zero -- for lmer this is trivial since the fixed effects estimates are
profiled out; for glmer you would have to put the deviance function
inside a wrapper function that set the variance parameters to zero while
filling in specified values for the fixed effects, and optimize over
this function ...)

  Ben Bolker