predict.erboost {erboost} | R Documentation |
Predict method for erboost Model Fits
Description
Predicted values based on an ER-Boost Expectile regression model object
Usage
## S3 method for class 'erboost'
predict(object,
newdata,
n.trees,
single.tree=FALSE,
...)
Arguments
object |
Object of class inheriting from ( |
newdata |
Data frame of observations for which to make predictions |
n.trees |
Number of trees used in the prediction. |
single.tree |
If |
... |
further arguments passed to or from other methods |
Details
predict.erboost
produces predicted values for each observation in newdata
using the the first n.trees
iterations of the boosting sequence. If n.trees
is a vector than the result is a matrix with each column representing the predictions from erboost models with n.trees[1]
iterations, n.trees[2]
iterations, and so on.
The predictions from erboost
do not include the offset term. The user may add the value of the offset to the predicted value if desired.
If object
was fit using erboost.fit
there will be no
Terms
component. Therefore, the user has greater responsibility to make
sure that newdata
is of the same format (order and number of variables)
as the one originally used to fit the model.
Value
Returns a vector of predictions. By default the predictions are on the scale of f(x).
Author(s)
Yi Yang yiyang@umn.edu and Hui Zou hzou@stat.umn.edu