Package: cumulcalib 0.1.0

Mohsen Sadatsafavi

cumulcalib: Cumulative Calibration Assessment for Prediction Models

Tools for visualization of, and inference on, the calibration of prediction models on the cumulative domain. This provides a method for evaluating calibration of risk prediction models without having to group the data or use tuning parameters (e.g., loess bandwidth). This package implements the methodology described in Sadatsafavi and Petkau (2024) <doi:10.1002/sim.10138>. The core of the package is cumulcalib(), which takes in vectors of binary responses and predicted risks. The package also implements non-parametric assessment of the calibration of individualized treatment effect (ITE) models using data from a randomized trial, via cumulcalibITE(), as described in Sadatsafavi et al. (2025) <doi:10.48550/arXiv.2512.08140>. The plot() and summary() methods are implemented for the results returned by cumulcalib() and cumulcalibITE().

Authors:Mohsen Sadatsafavi [aut, cre]

cumulcalib_0.1.0.tar.gz
cumulcalib_0.1.0.zip(r-4.7-any)cumulcalib_0.1.0.zip(r-4.6-any)cumulcalib_0.1.0.zip(r-4.5-any)
cumulcalib_0.1.0.tgz(r-4.6-any)cumulcalib_0.1.0.tgz(r-4.5-any)
cumulcalib_0.1.0.tar.gz(r-4.7-any)cumulcalib_0.1.0.tar.gz(r-4.6-any)
cumulcalib_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
cumulcalib/json (API)

# Install 'cumulcalib' in R:
install.packages('cumulcalib', repos = c('https://resplab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/resplab/cumulcalib/issues

On CRAN:

Conda:

4.78 score 3 stars 9 scripts 320 downloads 8 exports 0 dependencies

Last updated from:2c15778196. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK138
source / vignettesOK197
linux-release-x86_64OK191
macos-release-arm64OK112
macos-oldrel-arm64OK103
windows-devel-x86_64OK75
windows-release-x86_64OK84
windows-oldrel-x86_64OK89
wasm-releaseOK106

Exports:cumulcalibcumulcalibITEpKolmogorovpMAD_BMpMAD_BM_cqKolmogorovqMAD_BMqMAD_BM_c

Dependencies:

A tutorial on the cumulative calibration assessment and the cumulcalib package
Introduction | Setup: A running example based on GUSTO data | Objective assessment of calibration on the cumulative domain | Using cumulcalib package for calibration assessment | Graphical assessment of calibration using cumulcalib package | How do different forms of miscalibrations look on the cumulative calibration plot? | A model that underestimates the risk | A model that overestimates the risk | Over-fittedd model

Last update: 2026-07-24
Started: 2024-06-05

Assessing moderate calibration of individualized treatment effects with cumulcalibITE
Introduction | Two approaches: conditional and marginal | Setup: an ITE model based on the GUSTO data | Assessing moderate calibration: the marginal approach | Visual assessment | The conditional approach

Last update: 2026-07-24
Started: 2026-07-24