AnovaTable | R Documentation |
Compare multilevel models
AnovaTable(
...,
fullmodel,
models,
serial = FALSE,
suppress = c("AIC", "deviance", "logLik")
)
## S3 method for class 'AnovaTable'
print(x, ...)
... |
Model objects to be compared |
fullmodel |
A model to which all other models are to be compared;
only use if |
models |
Models to compare to |
serial |
If TRUE, models are compared serially; if false, all models will be compared to the first. |
suppress |
Character vector of column names to suppress in printed output. |
x |
an |
A data.frame containing model fit metrics such as AIC, BIC, marginal R-squared (the effect size of fixed effects only), conditional R-squared (the effect size of all model terms), loglikelihood, deviance, and a likelihood ratio test.
print(AnovaTable)
: Print generic for anova tables.
library(lmerTest)
data("sleepstudy", package="lme4")
m1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
m2 <- lmer(Reaction ~ Days + (1 | Subject), sleepstudy)
AnovaTable(m1,m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.