Learn R Programming

GeDS (version 0.3.3)

deviance.GeDS: 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 GeDS
deviance(object, n = 3L, ...)

# S3 method for GeDSgam deviance(object, n = 3L, ...)

# S3 method for GeDSboost deviance(object, n = 3L, ...)

Value

A numeric value corresponding to the deviance of the selected "GeDS", "GeDSgam" or "GeDSboost" fit.

Arguments

object

The "GeDS", "GeDSgam" or "GeDSboost" class object from which the deviance should be extracted.

n

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.

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.

See Also

deviance for the standard definition; NGeDS, GGeDS, NGeDSgam, NGeDSboost for examples.