plot.orf | R Documentation |
plot the probability distributions estimated by the Ordered Forest object of class orf
## S3 method for class 'orf' plot(x, ...)
x |
estimated Ordered Forest object of class |
... |
further arguments (currently ignored) |
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.
Gabriel Okasa
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.