Learn R Programming

quantregForest (version 0.2-2)

predict.quantregForest: predict method for class quantregForest

Description

Prediction of test data with Quantile Regression Forests

Usage

## S3 method for class 'quantregForest':
predict(object, newdata = NULL, quantiles =
c(0.1, 0.5, 0.9), ...)

Arguments

object
An object of class quantregForest
newdata
A data frame or matrix containing new data. If not given, the out-of-bag prediction in object is returned
quantiles
A vector of quantiles (with numerical values in [0,1]) for which the quantile estimates should be returned
...
Further arguments (not in use in the current version)

Value

  • A matrix. The first column contains the conditional quantile estimates for the first entry in the vector quantiles, the second column contains the estimates for the second entry of quantiles and so on.

References

N. Meinshausen (2006) "Quantile Regression Forests", Journal of Machine Learning Research 7, 983-999 http://jmlr.csail.mit.edu/papers/v7/

See Also

quantregForest for fitting Quantile Regression Forests