When we use anova()
function to compare two or more models, what test is it actually performing? I don't think that's an "Anova" per si, right. Would it be a "a likelihood-ratio chi-squared test"* or anything else?
Example:
> mod1 <- lmer(Y ~ X1 * X2 + (1|ID), data = data, REML = F)
> mod2 <- lmer(Y ~ X1 + X2 + (1|ID), data = data, REML = F)
> anova(mod1, mod2)
Data: data
Models:
mod2: Y ~ X1 * X2 + (1 | ID)
mod1: Y ~ X1 + X2 + (1 | ID)
npar AIC BIC logLik deviance Chisq Df Pr(>Chisq)
mod2 5 51.649 63.803 -20.824 41.649
mod1 6 40.504 55.089 -14.252 28.504 13.144 1 0.0002884 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
- Question: What is the correct way to report this test? Thanks in advance!
- follow-up: Is it ok to say "we assessed the model godness of fit by a a likelihood-ratio chi-squared test" ?