View source: R/report_random.R
report_random | R Documentation |
Reports random effects of mixed models (see list of supported objects in
report()
).
report_random(x, ...)
x |
The R object that you want to report (see list of of supported objects above). |
... |
Arguments passed to or from other methods. |
An object of class report_random()
.
# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris)
r <- report_random(model)
r
summary(r)
# Bayesian models
library(rstanarm)
model <- suppressWarnings(stan_lmer(
mpg ~ disp + (1 | cyl),
data = mtcars, refresh = 0, iter = 1000
))
r <- report_random(model)
r
summary(r)
library(brms)
model <- suppressWarnings(brm(mpg ~ disp + (1 | cyl), data = mtcars, refresh = 0, iter = 1000))
r <- report_random(model)
r
summary(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.