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