Method for the function deviance
that allows the user to
extract the value of the deviance corresponding to a selected GeDS, GeDSboost
or GeDSgam fit typically returned by NGeDS
/GGeDS
,
NGeDSgam
or NGeDSboost
.
# S3 method for GeDS
deviance(object, n = 3L, ...)# S3 method for GeDSgam
deviance(object, n = 3L, ...)
# S3 method for GeDSboost
deviance(object, n = 3L, ...)
A numeric value corresponding to the deviance of the selected
"GeDS"
, "GeDSgam"
or "GeDSboost"
fit.
The "GeDS"
, "GeDSgam"
or
"GeDSboost"
class object from which the deviance should be extracted.
Integer value (2, 3 or 4) specifying the order (\(=\) degree
\(+ 1\)) of the "GeDS"
, "GeDSgam"
or "GeDSboost"
fit
whose deviance should be extracted. By default equal to 3L
; non-integer
values will be passed to the function as.integer
.
Potentially further arguments (required by the definition of the generic function). These will be ignored, but with a warning.
This is a method for the function deviance
in the
stats package. As "GeDS"
, "GeDSgam"
and "GeDSboost"
class objects contain three different fits (linear, quadratic and cubic), it
is possible to specify the order of the GeDS fit for which the deviance is
required via the input argument n
.
deviance
for the standard definition;
NGeDS
, GGeDS
, NGeDSgam
,
NGeDSboost
for examples.