Description Usage Arguments Examples
View source: R/tidy_stats.lmerMod.r
tidy_stats.lmerMod
takes an lmerMod object and converts the object to
a tidy stats data frame.
1 2 | ## S3 method for class 'lmerMod'
tidy_stats(model, args = NULL)
|
model |
Output of lme4's |
args |
Unused. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Check if lme4 package is available
if(!requireNamespace("lme4", quietly = TRUE)) {
message(paste0("Package 'lme4' is needed for this example to work. ",
"Please install it."), .call = FALSE)
} else {
# Conduct a linear mixed model
model_lmer <- lme4::lmer(Reaction ~ Days + (Days | Subject), lme4::sleepstudy)
# Tidy stats
tidy_stats(model_lmer)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.