coef.GeDSboost,gam {GeDS}R Documentation

Coef method for GeDSboost, GeDSgam

Description

Methods for the functions coef and coefficients that allow to extract the estimated coefficients of GeDSboost-Class or GeDSgam-Class object.

Usage

## S3 method for class 'GeDSboost'
coef(object, n = 3L, ...)

## S3 method for class 'GeDSboost'
coefficients(object, n = 3L, ...)

## S3 method for class 'GeDSgam'
coef(object, n = 3L, ...)

## S3 method for class 'GeDSgam'
coefficients(object, n = 3L, ...)

Arguments

object

the GeDSboost-class or GeDSgam-Class object from which the coefficients should be extracted.

n

integer value (2, 3 or 4) specifying the order (= degree + 1) of the FGB-GeDS/GAM-GeDS fit whose coefficients should be extracted. If n = 2L piecewise polynomial coefficients of the univariate GeDS base-learners are provided. In the case of bivariate GeDS base learners and class(object) == "GeDSboost", the B-spline coefficients for each iteration where a particular base-learner was selected are provided. In the case of bivariate base learners and class(object) == "GeDSgam", the final local-scoring B-spline coefficients for each base-learner are provided. If n = 3L or n = 4L B-spline coefficients are provided. By default n is 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). They will be ignored, but with a warning.

Value

A named vector containing the required coefficients of the fitted multivariate predictor model.

See Also

coef for the standard definition; NGeDSboost and NGeDSgam for examples.


[Package GeDS version 0.2.3 Index]