Deviance of a Fitted Model - Generic Function
DESCRIPTION:
Returns the deviance or weighted residual sum of squares of the model.
This function is an S Version 3 generic (see Methods);
method functions can be written to handle specific
S Version 3 classes of data. Classes that already
have methods for this function include
bdGlm,
bdLm,
gam,
glm,
lm, and
tree.
USAGE:
deviance(object, ...)
REQUIRED ARGUMENTS:
- object
-
a fitted model object.
OPTIONAL ARGUMENTS:
- ...
-
methods may have additional arguments.
VALUE:
the deviance of the fitted model is returned.
DETAILS:
For
bdGlm,
gam,
glm, and
tree models, the
"deviance" is a component
of
object, in which case
deviance is a simple extractor function.
For other models, the
gaussian family is assumed and the
weighted residual sum of squares is returned.