predict.quantregRanger: quantregRanger prediction

Description Usage Arguments Value

View source: R/predict.R

Description

Predicts quantiles for a quantile regression forest trained with quantregRanger.

Usage

1
2
3
## S3 method for class 'quantregRanger'
predict(object, data = NULL, quantiles = c(0.1,
  0.5, 0.9), all = TRUE, obs = 1, ...)

Arguments

object

quantregRanger object.

data

New test data of class data.frame

quantiles

Numeric vector of quantiles that should be estimated

all

A logical value. all=TRUE uses all observations for prediction. all=FALSE uses only a certain number of observations per node for prediction (set with argument obs). The default is all=TRUE

obs

An integer number. Determines the maximal number of observations per node

...

Currently ignored. to use for prediction. The input is ignored for all=TRUE. The default is obs=1

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.


quantregRanger documentation built on May 2, 2019, 3:26 a.m.