anova.galamm | R Documentation |
Anova function for comparing different GALAMMs fitted on the same data.
## S3 method for class 'galamm'
anova(object, ...)
object |
An object of class |
... |
Other fitted models of class |
A table with model comparison metric.
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.
batesFittingLinearMixedEffects2015galamm
summary.galamm()
for the summary method and anova()
for the
generic function.
Other summary functions:
plot.galamm()
,
plot_smooth.galamm()
,
print.galamm()
,
print.summary.galamm()
,
summary.galamm()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.