Computes one of the four types of residuals available for gl1ce
objects. This is a method for the function residuals() for objects
inheriting from class gl1ce
. As several types of residuals are
available for gl1ce
objects, there is an additional optional
argument type.
# S3 method for gl1ce
residuals(object,
type=c("deviance", "pearson", "working", "response"), …)
an object inheriting from class gl1ce
representing 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
simply 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.
gl1ce
for examples;
fitted.l1ce
is used for fitted values.