Learn R Programming

galamm (version 0.3.0)

plot.galamm: Diagnostic plots for galamm objects

Description

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 galamm
plot(x, residuals = c("pearson", "deviance"), ...)

Value

A plot is displayed.

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.

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

Run this code
# 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")

Run the code above in your browser using DataLab