Learn R Programming

RVAideMemoire (version 0.9-11)

plotresid: Simple analysis of model residuals

Description

Plot residuals of a model against fitted values and a QQplot of these residuals. Optionally, a Shapiro-Wilk's test can be performed on residuals. The function deals with lm (including glm and glm.nb), mer, glmmadmb, nls, survreg and least.rect models. Quantile residuals (function qresiduals(),package statmod) are used for glm.nb models and for glm models with a poisson, quasipoisson, binomial or quasibinomial family.

Usage

plotresid(model, shapiro = FALSE)

Arguments

model
lm, mer, glmmadmb, nls, survreg or least.rect model.
shapiro
logical. If TRUE a Shapiro-Wilk's test is performed on residuals.

See Also

lm, glm, glm.nb, lmer, glmer, nls, survreg, least.rect, qresiduals, qqnorm