plot.orf {orf} | R Documentation |
Plot of the Ordered Forest
Description
plot the probability distributions estimated by the Ordered Forest object of class orf
Usage
## S3 method for class 'orf'
plot(x, ...)
Arguments
x |
estimated Ordered Forest object of class |
... |
further arguments (currently ignored) |
Details
plot.orf
generates probability distributions, i.e. density plots of estimated
ordered probabilities by the Ordered Forest for each outcome class considered.
The plots effectively visualize the estimated probability density in contrast to
a real observed ordered outcome class and as such provide a visual inspection of
the overall in-sample estimation accuracy. The dashed lines locate the means of
the respective probability distributions.
Author(s)
Gabriel Okasa
Examples
# Ordered Forest
require(orf)
# load example data
data(odata)
# specify response and covariates
Y <- as.numeric(odata[, 1])
X <- as.matrix(odata[, -1])
# estimate Ordered Forest
orf_fit <- orf(X, Y)
# plot the estimated probability distributions
plot(orf_fit)
[Package orf version 0.1.4 Index]