deviance.GeDS {GeDS} | R Documentation |
Deviance Method for GeDS, GeDSgam, GeDSboost
Description
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
.
Usage
## S3 method for class 'GeDS'
deviance(object, n = 3L, ...)
## S3 method for class 'GeDSgam'
deviance(object, n = 3L, ...)
## S3 method for class 'GeDSboost'
deviance(object, n = 3L, ...)
Arguments
object |
The |
n |
Integer value (2, 3 or 4) specifying the order ( |
... |
Potentially further arguments (required by the definition of the generic function). These will be ignored, but with a warning. |
Details
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
.
Value
A numeric value corresponding to the deviance of the selected
"GeDS"
, "GeDSgam"
or "GeDSboost"
fit.
See Also
deviance
for the standard definition;
NGeDS
, GGeDS
, NGeDSgam
,
NGeDSboost
for examples.