Skip to content
Prev 16568 / 20628 Next

Question about continuous distributions in GLMM

On 9 May 2018 at 20:16, Victoria Ortiz <vicrotas at gmail.com> wrote:
Yes, this model will decompose the variance of the response into
variance components for the random effects and the residual variance.
Can you quantify how these approaches are different? If you run
lmerTest::ranova(m2) it should provide (REML) likelihood ratio tests
of the random terms by deleting these from the full model one-by-one.
Note that if the model is fitted with REML (default) the tests are
REML-likelihood ratio tests - otherwise ML likelihood ratio tests.

Perhaps you use anova(m2, reduce_m2) or equivalently anova(m2,
reduce_m2, refit=TRUE) which produce ML likelihood ratio tests while
fitting your model with REML and that is the source of the difference?
[For tests of random effect terms I recommend the REML likelihood
ratio tests produced by lmerTest::ranova over the ML LR tests produced
by anova(m2, reduce_m2, refit=TRUE) but other tools, e.g. package
RLRsim may produce even more accurate tests].

Cheers
Rune