predict.GeDSboost,gam {GeDS}R Documentation

Predict method for GeDSboost, GeDSgam

Description

This method computes predictions from GeDSboost and GeDSgam objects. It is designed to be user-friendly and accommodate different orders of the GeDSboost or GeDSgam fits.

Usage

## S3 method for class 'GeDSboost'
predict(object, newdata, n = 2L, ...)

## S3 method for class 'GeDSgam'
predict(object, newdata, n = 2L, ...)

Arguments

object

The GeDSboost-class or GeDSgam-class object.

newdata

An optional data frame for prediction.

n

The order of the GeDS fit (2 for linear, 3 for quadratic, and 4 for cubic). Default is 2.

...

potentially further arguments.

Value

Numeric vector of predictions (vector of means).


[Package GeDS version 0.2.2 Index]