calibrationCurve: Calculate data for calibration curve, called by...

View source: R/calibration_curve.R

calibrationCurveR Documentation

Calculate data for calibration curve, called by dsCalibrationCurve

Description

This function calculates a vector of values for the calibration curve.

Usage

calibrationCurve(
  truth_name,
  prob_name,
  nbins = 10L,
  remove_critical_bins = TRUE
)

Arguments

truth_name

('character(1L)') Character containing the name of the vector of 0-1-values encoded as integer or numeric.

prob_name

('character(1L)') Character containing the name of the vector of probabilities.

nbins

('integer(1L)') Number of bins between 0 and 1 (default is 10).

remove_critical_bins

('logical(1L)') Just remove critical bins and return just bins with 'length(bin) > n_critical'.

Value

Brier score and number of values used as weights for later aggregation.

Author(s)

Daniel S.


difuture-lmu/dsBinVal documentation built on Oct. 9, 2024, 8:43 a.m.