Learn R Programming

JWileymisc (version 0.3.1)

plotDiagnosticsLMER: Plot Diagnostics for an lmer model

Description

This function creates a number of diagnostic plots from lmer models. It relies heavily on the testdistr function.

Usage

plotDiagnosticsLMER(object, plot = TRUE, ev.perc = 0.001, ask = TRUE,
  ncol = 1)

Arguments

object

A fitted model object, either of class merMod from the lme4 package or merModLmerTest from the lmerTest package.

plot

A logical value whether or not to plot the results or simply return the graaphical objects.

ev.perc

A real number between 0 and 1 indicating the proportion of the theoretical distribution beyond which values are considered extreme values (possible outliers). Defaults to .001.

ask

A logical whether to ask before changing plots. Only applies to interactive environments.

ncol

The number of columns to use for interactive plots Must be either 1 or 2. Defaults to 1.

Value

a list including plots of the residuals, residuals versus fitted values, and one list for plots of all random effects and finally a data table with any extreme values identified

Examples

Run this code
# NOT RUN {
# make me!
# }

Run the code above in your browser using DataLab