Learn R Programming

⚠️There's a newer version (0.2.0) of this package.Take me there.

Calibration Curves for Clinical Prediction Models

A clinical prediction model should produce calibrated risk predictions, which means the predicted probabilities should align with observed probabilities. There are various ways of assessing calibration (this paper covers calibration in more detail). pmcalibration implements calibration curves for binary and (right censored) time-to-event outcomes and calculates metrics used to assess the correspondence between predicted and observed outcome probabilities (the 'integrated calibration index' or $ICI$, aka $E_{avg}$, as well as $E_{50}$, $E_{90}$, and $E_{max}$).

A goal of pmcalibration is to implement a range of methods for estimating a smooth relationship between predicted and observed probabilities and to provide confidence intervals for calibration metrics (via bootstrapping or simulation based inference).

To install:

install.packages("pmcalibration")

To install development version:

devtools::install_github("https://github.com/stephenrho/pmcalibration")

Copy Link

Version

Install

install.packages('pmcalibration')

Monthly Downloads

334

Version

0.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stephen Rhodes

Last Published

September 6th, 2023

Functions in pmcalibration (0.1.0)

logit

Logit transformation
pmcalibration-package

pmcalibration: Calibration Curves for Clinical Prediction Models
glm_cal

fits a calibration curve via glm or Cox proportional hazards model
summary.logistic_cal

Summarize a logistic_cal object
summary.pmcalibration

Summarize a pmcalibration object
print.logistic_calsummary

Print a logistic_cal summary
invlogit

Inverse logit transformation
predict_lowess

Get predictions from loewss fit
print.pmcalibrationsummary

Print summary of pmcalibration object
print.logistic_cal

Print a logistic_cal object
sim_dat

Simulate a binary outcome with either a quadratic relationship or interaction
loess_cal

calibration curve via loess
logistic_cal

Run logistic calibration
pmcalibration

Create a calibration curve
print.pmcalibration

print a pmcalibration object
gam_cal

fits a calibration curve via gam
boot

Bootstrap resample a calibration curve object
simb

Simulation based inference with a calibration curve object
reg_spline_X

Make a design matrix for regression spline
cal_metrics

Calculate calibration metrics from calibration curve
get_cc

Extract plot data from pmcalibration object
run_boots

Wrapper to run bootstrap resamples using parallel
lowess_cal

calibration curve via lowess
plot.pmcalibration

Plot a calibration curve (pmcalibration object)