ici: Calculate the integrated calibration index (ICI) for...

View source: R/ici.r

iciR Documentation

Calculate the integrated calibration index (ICI) for predicted probabilities against a binary outcome. Based on Austin PC, Steyerberg EW. The Integrated Calibration Index (ICI) and related metrics for quantifying the calibration of logistic regression models. Statistics in Medicine. 2019;1–15. https://doi.org/10.1002/sim.8281

Description

Calculate the integrated calibration index (ICI) for predicted probabilities against a binary outcome. Based on Austin PC, Steyerberg EW. The Integrated Calibration Index (ICI) and related metrics for quantifying the calibration of logistic regression models. Statistics in Medicine. 2019;1–15. https://doi.org/10.1002/sim.8281

Usage

ici(preds, obs)

Arguments

preds

A vector of predicted probabilities.

obs

A vector containing the observed binary outcomes (0 or 1).

Value

The integrated calibration index (ICI)

Examples

# Generate some predictions
predictions <- runif(1000)
# Generate some binary outcomes
observations <- sample(0:1, size = 1000, replace = TRUE)
# Calculate the Integrated Calibration Index
ici(predictions, observations)

gweissman/gmish documentation built on Sept. 3, 2024, 11:39 p.m.