plot.CV.twostageSL: Graphical Display Of The V-Fold CV Risk Estimates

Description Usage Arguments Details Value Author(s) See Also

View source: R/plot.CV.twostageSL.R

Description

The function plots the V-fold cross-validated risk estimates for the two stage super learner, the standard super learner, the discrete super learner and each algorithm in the library. By default the estimates will be sorted and include an asymptotic 95

Usage

1
2
## S3 method for class 'CV.twostageSL'
plot(x, package = "ggplot2", constant = qnorm(0.975), sort = TRUE, ...)

Arguments

x

The output from CV.twostageSL.

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 two stage super learner, discrete super learner, then the estimators in library.2stage and library.1stage and the last is standard super learner.

...

Additional arguments for summary.CV.twostageSL

Details

see summary.CV.twostageSL for details on how the estimates are computed

Value

Returns the plot (either a ggplot2 object (class ggplot) or a lattice object (class trellis))

Author(s)

Ziyue Wu

See Also

summary.CV.twostageSL and CV.twostageSL


wuziyueemory/twostageSL documentation built on Oct. 19, 2020, 3:45 p.m.