Learn R Programming

RBPcurve (version 1.2)

addGoodCalib: Visualizes a measure for good calibration on the RBP curve.

Description

The integral of the RBP curve is a measure for good calibration. If the sum of the two integrals (below and above the RBP curve) is close to 0, good calibration is satisfied and the prevalence is close to the average predicted probabilities.

Usage

addGoodCalib(obj, plot.values = TRUE, show.info = TRUE,
  col = grDevices::rgb(0, 0, 0, 0.25), border = NA, ...)

Arguments

obj
[RBPObj] Data container for RBP curve.
plot.values
[logical(1)] Whether the values of the corresponding measure should be added to the plot? Default is FALSE.
show.info
[logical(1)] Print more information for the respective measure on console? Default is TRUE.
col
[vector(1)] Color for filling the polygon, as in polygon. Default is “grey”.
border
[vector(1)] Color to draw the borders, as in polygon. Default is NA to omit borders.
...
[any] Passed to polygon.

Value

[invisible(NULL)].