predict.GeDSboost_GeDSgam: Predict method for GeDSboost, GeDSgam

View source: R/S3methods_GeDSboost-GeDSgam.R

predict.GeDSboost,gamR 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).


alattuada/GeDS documentation built on April 26, 2024, 11:36 a.m.