anova (lm, lmer ) question
romunov <romunov at ...> writes:
FWIW, this is from the glmm faq site <http://glmm.wikidot.com/faq>. How can I test whether a random effect is significant?
...
- *do not* compare lmer models with the corresponding lm fits, or glmer/glm; the log-likelihoods are not commensurate (i.e., they include different additive terms)
For what it's worth, I believe this is out of date, _except_ for glmer fits with nAGQ>1. It should be possible to implement anova(<merMod>,<lm>/<glm>) -- it's only a nuisance (sadly, if we were still using S4 classes at this level it would be easier ...) Ben Bolker