Compute Residuals for `gl1ce' Objects
Computes one of the four types of residuals available for
objects. This is a method for the function residuals() for objects
inheriting from class
gl1ce. As several types of residuals are
gl1ce objects, there is an additional optional
# S3 method for gl1ce residuals(object, type=c("deviance", "pearson", "working", "response"), …)
an object inheriting from class
gl1cerepresenting a fitted model.
type of residuals, with choices "deviance", "pearson", "working" or "response"; the first is the default.
possibly further arguments (none at the moment).
A numeric vector of residuals. See Statistical Models in S for detailed
definitions of each type of residual. The sum of squared deviance residuals
add up to the deviance. The pearson residuals are standardized residuals on
the scale of the response. The working residuals reside on the
object, and are the residuals from the final fit. The response residuals are
y - fitted(object). The
summary() method for
gl1ce objects produces deviance residuals. The residuals
component of a
gl1ce object contains the working residuals.
Chambers, J.M., and Hastie, T.J. (1991). Statistical Models in S, pp. 204--206.