View source: R/S3methods_GeDSboost-GeDSgam.R
predict.GeDSboost,gam | R Documentation |
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.
## S3 method for class 'GeDSboost'
predict(object, newdata, n = 2L, ...)
## S3 method for class 'GeDSgam'
predict(object, newdata, n = 2L, ...)
object |
The |
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. |
Numeric vector of predictions (vector of means).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.