Learn R Programming

parboost (version 0.1.4)

predict.parboost: Generate predictions from parboost object

Description

Predict method for parboost objects

Usage

"predict"(object, newdata = NULL, type = c("response", "link"), ...)

Arguments

object
Object of class parboost
newdata
Optionally a data frame with new data to predict
type
String determining the type of prediction. The default "response" is on the scale of the response variable and "link" is on the scale of the predictors.
...
Additional parameters passed to predict.mboost.

Value

Numeric vector of fitted values

Details

If no new data is passed to predict, predict outputs the fitted values. If you pass a data frame with new values to predict, it will generate the predictions for them.

References

T. Hothorn, P. Buehlmann, T. Kneib, M. Schmid, and B. Hofner (2013). mboost: Model-Based Boosting, R package version 2.2-3, http://CRAN.R-project.org/package=mboost.