Skip to contents

This function provides diagnostic plots for models fitted with galamm(). See the residuals.galamm() function for definition of the residuals being used.

Usage

# S3 method for class 'galamm'
plot(x, residuals = c("pearson", "deviance"), ...)

Arguments

x

An object of class galamm returned from galamm.

residuals

Character of length one describing the type of residuals to be returned. One of "pearson" and "deviance". Argument is case sensitive.

...

Optional arguments passed on to the plot function.

Value

A plot is displayed.

See also

residuals.galamm() for extracting residuals and plot() for the generic function.

Other summary functions: anova.galamm(), plot_smooth.galamm(), print.galamm(), print.summary.galamm(), summary.galamm()

Examples

# Linear mixed model example from lme4
data("sleepstudy", package = "lme4")
mod <- galamm(Reaction ~ Days + (Days | Subject), data = sleepstudy)

# Diagnostic plot
plot(mod)

plot(mod, residuals = "deviance")