plot_ranef: Normal quantile plots for random effects

Description Usage Arguments Value Examples

View source: R/plot_ranef.R

Description

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.

Usage

1
plot_ranef(model)

Arguments

model

Model fit using lmer from lme4.

Value

A grid of normal quantile plots for the random effects.

Examples

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)

goodekat/redres documentation built on March 3, 2021, 10:15 a.m.