View source: R/is_mixed_model.R
is_mixed_model | R Documentation |
Small helper that checks if a model is a mixed effects model, i.e. if it the model has random effects.
is_mixed_model(x)
x |
A model object. |
A logical, TRUE
if x
is a mixed model.
data(mtcars)
model <- lm(mpg ~ wt + cyl + vs, data = mtcars)
is_mixed_model(model)
data(sleepstudy, package = "lme4")
model <- lme4::lmer(Reaction ~ Days + (1 | Subject), data = sleepstudy)
is_mixed_model(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.