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)

Arguments

model

Model fit using lmer from lme4.

Value

A grid of normal quantile plots for the random effects.

Examples

# 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)