anova.galamm {galamm} | R Documentation |
Compare likelihoods of galamm objects
Description
Anova function for comparing different GALAMMs fitted on the same data.
Usage
## S3 method for class 'galamm'
anova(object, ...)
Arguments
object |
An object of class |
... |
Other fitted models of class |
Value
A table with model comparison metric.
Author(s)
Some of the source code for this function is adapted from
lme4:::anova.merMod
, with authors Douglas M. Bates, Martin Maechler,
Ben Bolker, and Steve Walker.
References
Bates DM, Mächler M, Bolker B, Walker S (2015). “Fitting Linear Mixed-Effects Models Using Lme4.” Journal of Statistical Software, 67(1), 1–48. ISSN 1548-7660, doi:10.18637/jss.v067.i01.
See Also
summary.galamm()
for the summary method and anova()
for the
generic function.
Other summary functions:
plot.galamm()
,
plot_smooth.galamm()
,
print.summary.galamm()
,
summary.galamm()
Examples
# Poisson GLMM
count_mod <- galamm(
formula = y ~ lbas * treat + lage + v4 + (1 | subj),
data = epilep, family = poisson
)
# Model without interaction
count_mod0 <- galamm(
formula = y ~ lbas + treat + lage + v4 + (1 | subj),
data = epilep, family = poisson
)
# Model comparison
anova(count_mod, count_mod0)