calibrationCurve: Calculate data for calibration curve

View source: R/calibration_curve.R

calibrationCurveR Documentation

Calculate data for calibration curve

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/dsROCGLM documentation built on March 24, 2024, 1:07 p.m.