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.
plot_ranef(model)
model | Model fit using |
---|
A grid of normal quantile plots for the random effects.
# 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)