Reproducible workflow for validating a clinical prediction model in accordance with TRIPOD+AI
Before a prediction model can be safely used in clinical practice, it requires external validation. However, external validation is often neglected, and when performed, key performance measures are frequently missing. To facilitate rigorous and accessible evaluation, we present a reproducible workflow and methodological guide for validating binary clinical prediction models. The workflow can be used in three ways depending on the user's preference: (1) as an interactive Shiny web application, (2) as an executable Quarto notebook (R and Python), and (3) as a version-controlled repository that allows contributions and extensions. The workflow accepts a dataset containing observed binary outcomes and model-predicted risks, performs automated input and sample size checks, and executes the four core validation pillars recommended in a recent overview: (1) visualization of estimated-risk distributions by outcome, (2) discrimination (AUROC), (3) calibration (flexible calibration plot), and (4) clinical utility (decision-curve analysis). The workflow exports summary tables and publication-ready figures. For settings where raw patient data cannot be shared due to privacy regulations, the workflow can also generate an illustrative synthetic dataset with the synthpop R package to replicate key validation statistics. The workflow is illustrated using the GUSTO-I trial and is designed in accordance with the TRIPOD+AI reporting guideline for external validation of clinical prediction models.
Authors
- Lasai Barreñada (ORCID: https://orcid.org/0000-0001-8020-0210)
- Maarten van Smeden (ORCID: https://orcid.org/0000-0002-5529-1541)
- Laure Wynants (ORCID: https://orcid.org/0000-0002-3037-122X)
- Ben Van Calster (ORCID: https://orcid.org/0000-0003-1613-7450)
- Ewout Willem Steyerberg (ORCID: https://orcid.org/0000-0002-7787-0122)
Institutions
- University Medical Center Utrecht (NL)
- Maastricht University (NL)
- Care and Public Health Research Institute (NL)
- KU Leuven (BE)
Publication Details
- Published
- 2026-12-03
- DOI
- https://doi.org/10.68365/jrephealth.2026.1
- Primary Topic
- Statistical Methods in Epidemiology
- Type
- article
- Field-Weighted Citation Impact
- 0.00