plot.rtModCVCalibration | R Documentation |
rtModCVCalibration
objectPlot Calibration plots and Brier score boxplots for rtModCVCalibration
object
## S3 method for class 'rtModCVCalibration'
plot(
x,
what = c("calibration", "brier"),
type = c("aggregate.all", "aggregate.by.resample"),
bin.method = c("quantile", "equidistant"),
filename = NULL,
...
)
x |
|
what |
Character: "calibration" or "brier" |
type |
Character: "aggregate.all" or "aggregate.by.resample" |
bin.method |
Character: "quantile" or "equidistant" |
filename |
Character: Path to save plot as pdf |
... |
Additional arguments |
For calibration plots, type = "aggregate.all"
is likely the more informative one.
It shows calibrations curves before and after calibration by aggregating across all
outer test sets. The type = "aggregate.by.resample"
option shows the calibration
curves after calibration for each outer resample.
For Brier boxplots, type = "aggregate.all"
shows 1 score per outer resample prior
to calibration and multiple (equal n.resamples used in calibrate_cv) brier scores
per outer resample after calibration. This is for diagnostic purposes mainly.
For presentation, the type = "aggregate.by.resample"
option shows the mean Brier
score per outer resample prior to calibration and after calibration and makes more
sense. The uncalibrated estimates could be resampled using the calibration model
resamples to produce a more comparable boxplot of Brier scores when using the
type = "aggregate.all"
option, but that seems artifactual.
More options are certainly possibly, e.g. an "aggregate.none" that would show all calibration resamples for all outer ersamples, and can be added in the future if needed.
plotly object
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.