View source: R/report_mixed_model.R
| report_mixed_model | R Documentation |
Create an easystats-style narrative report for a fitted linear mixed model.
report_mixed_model(model, ...)
model |
A fitted model object, typically from |
... |
Additional arguments passed to |
This helper keeps the report package optional. It checks that a fitted
model was supplied, verifies that report is installed, and then
delegates the model interpretation to report::report(). This provides
a stable package-level entry point for readers who want easystats-style
interpretation of the fitted mixed models used throughout the book examples.
The helper does not change the fitted model, refit the model, or alter any estimates. It only formats and interprets the model object produced by the modelling package.
A report object returned by report::report().
Duchateau, L., Janssen, P., and Rowlands, G. J. (1998). Linear Mixed Models: An Introduction with Applications in Veterinary Research. International Livestock Research Institute.
See utils::citation("report") for the citation for the optional
easystats reporting package.
lme4::lmer, nlme::lme.
if (requireNamespace("lme4", quietly = TRUE) &&
requireNamespace("report", quietly = TRUE)) {
data(ex127, package = "VetResearchLMM")
fit <- lme4::lmer(Ww ~ 1 + (1 | sire), data = ex127, REML = TRUE)
report_mixed_model(fit)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.