View source: R/plot.CV.SuperLearner.R
plot.CV.SuperLearner | R Documentation |
The function plots the V-fold cross-validated risk estimates for the super learner, the discrete super learner and each algorithm in the library. By default the estimates will be sorted and include an asymptotic 95% confidence interval.
## S3 method for class 'CV.SuperLearner'
plot(x, package = "ggplot2", constant = qnorm(0.975), sort = TRUE, ...)
x |
The output from |
package |
Either "ggplot2" or "lattice". The package selected must be available. |
constant |
A numeric value. The confidence interval is defined as p +/- constant * se, where p is the point estimate and se is the standard error. The default is the quantile of the standard normal corresponding to a 95% CI. |
sort |
Logical. Should the rows in the plot be sorted from the smallest to the largest point estimate. If FALSE, then the order is super learner, discrete super learner, then the estimators in |
... |
Additional arguments for |
see summary.CV.SuperLearner for details on how the estimates are computed
Returns the plot (either a ggplot2 object (class ggplot
) or a lattice object (class trellis
))
Eric C Polley epolley@uchicago.edu
summary.CV.SuperLearner
and CV.SuperLearner
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.