Description Usage Arguments Value Examples
Plots each random effect in the model against the normal quantiles. For linear mixed models, random effects are assumed to be normally distributed. This plot can be used to assess the validity of that assumption.
1 | plot_ranef(model)
|
model |
Model fit using |
A grid of normal quantile plots for the random effects.
1 2 3 4 5 6 | # fits a linear mixed effects model
library(lme4)
fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
# plots normal quantiles of random effects vector to assess normality
plot_ranef(fm1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.