Learn R Programming

randomForestSRC (version 3.4.1)

plot.quantreg.rfsrc: Plot Quantiles from Quantile Regression Forests

Description

Plots quantiles obtained from a quantile regression forest. Additionally insets the continuous rank probability score (crps), a useful diagnostic of accuracy.

Usage

# S3 method for rfsrc
plot.quantreg(x, prbL = .25, prbU = .75,
   m.target = NULL, crps = TRUE, subset = NULL, xlab = NULL, ylab = NULL, ...)

Arguments

x

A quantile regression object returned by a call to quantreg.

prbL

Lower quantile level, typically less than 0.5.

prbU

Upper quantile level, typically greater than 0.5.

m.target

Character string specifying the target outcome for multivariate families. If not provided, a default target is selected automatically.

crps

Logical. If TRUE, calculates the continuous ranked probability score (CRPS) and adds it to the plot.

subset

Optional vector specifying a subset of the data to be plotted. Defaults to plotting all data points.

xlab

Label for the x-axis.

ylab

Label for the y-axis.

...

Additional arguments passed to or from other methods.

Author

Hemant Ishwaran and Udaya B. Kogalur

See Also

quantreg.rfsrc