Abstract
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.
Introduction
Clinical prediction models are widely used tools in healthcare to estimate the probability of a specific outcome for an individual patient based on their characteristics (Steyerberg, 2019). These models can inform clinical decision-making, guide treatment strategies, and improve patient outcomes. However, before a prediction model can be safely implemented in clinical practice, it must undergo rigorous external validation to assess its performance in new, independent datasets (Riley, Snell, et al., 2024). External validation is essential to assess whether the model’s predictions are accurate and reliable across different populations and settings (Ramspek et al., 2021).
Guidelines to conduct and report external validation of clinical prediction models have been published in the literature (Collins et al., 2024; Riley, Archer, et al., 2024). These guidelines emphasize the importance of methodological rigor, transparency, and reproducibility in the validation process. However, despite these recommendations, external validation is often neglected or inadequately reported in published studies. Recent studies suggest that only 13% of published prediction models undergo external validation within five years of publication (Arshi et al., 2025), risking the adoption of models that underperform in real-world clinical care. Moreover, comprehensive reviews demonstrate that numerous prediction models approved for clinical use lack any external validation evidence, and when validations are performed, reporting of essential performance measures remains incomplete (Mehta et al., 2025; Mondal et al., 2026; van Leeuwen et al., 2021). Code sharing is equally scarce: according to a recent review, only 12% of studies developing or validating prediction models aligned with the TRIPOD+AI guidelines make reproducible code publicly available (Sounack et al., 2026). This highlights the need for standardized, reproducible validation workflows that can be easily implemented across diverse clinical research teams.
The statistical evaluation of external validation results is uniform across binary prediction models, regardless of whether predicted risks originate from multivariable logistic regression, penalized regression (e.g., Lasso, Ridge), gradient-boosted decision trees (e.g., XGBoost), Random Forests, or any other analytical technique. In every case, external validation fundamentally compares observed binary events against the model’s prediction.
To support applied researchers and clinicians, we present an automated, reproducible validation workflow and methodological guide based on recent international performance evaluation guidance (Riley, Archer, et al., 2024; Van Calster et al., 2025).
TRIPOD+AI alignment and scope of the workflow
This workflow has been designed to be in accordance with the TRIPOD+AI reporting guideline for external validations (Collins et al., 2024). It specifically covers the reporting of sample size considerations (items 10 and 21), analytical methods (item 12), open science (item 18, partially) and model performance (item 23). Table 1 presents TRIPOD+AI items covered by the workflow, with additional instructions for investigators to help with complete reporting. The table also includes items closely related to the workflow that are not automated and require investigator action. We want to highlight the importance of adequate reporting and recommend that investigators follow the TRIPOD+AI checklist fully and in detail.
| TRIPOD+AI Item | Validation Requirement | Covered by Workflow? | Investigator Action Required |
|---|---|---|---|
| Items 10 & 21 | Sample size, required event counts & number of participants/events analyzed | Yes (Automated) | Automated formal sample size calculation via pmvalsampsize (Riley et al., 2021); verifies whether dataset meets target precision for O/E ratio, calibration slope, and c-statistic. By default it uses the observed prevalence and c-statistic. |
| Item 11 | Missing data handling | No | Report missingness per predictor and consider imputation before computing model predictions. When multiple imputation is used, performance should be calculated per imputation and combined using Rubin’s rules. |
| Items 12e & 23a (Metrics) | Discrimination & calibration metrics with 95% CIs | Yes (Automated) | Interpret clinical implications of AUROC, calibration intercept, calibration slope, and O/E ratio (Figure 1 and Table S1). |
| Items 12e & 23a (Utility) | Clinical utility / Net Benefit | Yes (Automated) | Prespecify clinically meaningful decision thresholds for the target clinical intervention. |
| Items 16, 20b & 20c | Participant characteristics & case-mix comparison | Partial (Validation table) | Include predictor columns in the CSV to auto-generate Table 2; manually compare case-mix and event rate against the development study. |
| Items 14 & 23a | Subgroup & fairness analyses | No (manual per subgroup) | Run the workflow separately on prespecified demographic/clinical subgroups to evaluate performance on that subgroup. |
| Items 12e & 23a (Plots) | Risk distributions, calibration plots & decision curves | Yes (Automated) | Inspect the validation panel (Figure 1). |
| Items 18c, 18e & 18f | Protocol, data sharing (synthetic data), code sharing & DOIs | Partial (Code & synthetic data) | The workflow generates a reproducible suite to be shared with the published paper. |
| TRIPOD-Cluster (Items 12d & 23b) | Multicenter / clustered validation | No | Perform the validation by cluster and then combine the performance using adequate methods (Barreñada et al., 2026; Debray et al., 2019; Wynants et al., 2018). |
Accessibility and reproducibility
The workflow is intentionally designed to minimize technical barriers. While full programmatic control is available via Quarto (including R and Python), users are not required to be advanced programmers to use the workflow. The workflow is accessible in three complementary ways:
Interactive Web Application (ShinyApp): An interactive CPM Validation Suite allowing clinicians to load their validation dataset (CSV, TSV, or RDS format), inspect all figures interactively, and download 300 DPI publication plots and summary tables without writing code (see Appendix A3 for an interface walkthrough). The app is publicly accessible at https://lasaibarrenada-cpm-validation-suite.share.connect.posit.cloud. The app only requires separate columns for outcome data and estimated probabilities. Hence, the risk of leaking privacy-sensitive data is minimal.
Quarto Notebook: A clean, downloadable notebook (
notebook_validation.qmd) that can be executed interactively with plain-language parameter options. We recommend that users download the whole repository to ensure all dependencies are available and to avoid potential issues with missing files or version mismatches.Version-Controlled Repository: A public repository (https://gitlab.kuleuven.be/sdpm/CPM_validation_workflow; frozen release archived at https://doi.org/10.5281/zenodo.24687918) containing all source code of the manuscript, notebook and app, accessible without any login. Users can fork, clone, or directly download a ZIP archive of the repository without requiring Git installation (see Appendix A2). The repository includes a
renv.lockfile to ensure consistent package versions across systems. We welcome community contributions, bug reports, and feature requests via the repository’s issue tracker.
Before starting
Several guidelines emphasize methodological rigor to avoid biased or misleading performance estimates (Moons et al., 2025). This workflow follows the TRIPOD+AI reporting guideline for external validation studies (Collins et al., 2024), which includes all items mentioned in Table 1 as well as additional items relevant for external validation in the complete checklist. Before you evaluate your model’s performance on new data, we recommend the following preparatory steps:
Pre-specify the Statistical Analysis Plan (SAP)
Prepare a Statistical Analysis Plan (SAP) outlining the validation objectives, methods, and performance measures (Lakens et al., 2024). The SAP should be finalized prior to data collection or, for retrospective validations, before data extraction (and in any case before the results are known), so that analytical choices cannot be influenced by the findings. To guarantee rigorous methodology, register the SAP in a public repository (e.g. the Open Science Framework or Zenodo).
Define the Target Population and Setting
Review the development publication to identify the intended clinical context and target population for which the model was developed. Define your validation cohort precisely through inclusion and exclusion criteria, and explicitly describe how (and why) it may differ from the development population. A validation cohort does not need to match the development population; in fact, testing in different populations is often the goal of external validation. The key is to clearly define what population your validation represents and intentionally choose a design that addresses your validation question.
The aim of validation also determines the design: validation can focus on temporal generalizability (does the model work at a later time?), geographical or domain generalizability (does it work in a different setting or patient population?), or both. Each design answers different questions and requires different validation data (de Hond et al., 2023). If your validation cohort is intentionally different from the development cohort (e.g., to test generalizability), report model performance for the overall population and, if relevant, for clinically meaningful subgroups.
Check Predictor and Outcome Definitions
Verify that your dataset contains the same predictors and outcome definitions as the original model. If there are differences, document them and consider their potential impact on model performance. If necessary, harmonize variable definitions to align with the original model’s specifications (e.g. recoding variables to match the original scale or units).
Ensure Sufficient Sample Size and Event Counts
Adequate sample size is critical to achieve acceptable precision for key validation performance measures (such as the c-statistic, calibration slope, and calibration intercept). Historical rules of thumb include minimums like 100 events and 100 non-events. Such rules are insufficient for rigorous validation (Riley et al., 2021; Riley, Snell, et al., 2024). Instead, modern methodological standards require sample size to be formally calculated to ensure acceptable precision, assurance or expected value for decision making (Riley et al., 2021; Sadatsafavi et al., 2026). This workflow uses Riley’s method as implemented in the pmvalsampsize R package to ensure target 95% confidence interval width across three core criteria: (1) precise estimation of the Observed/Expected (O/E) ratio, (2) precise estimation of the calibration slope, and (3) precise estimation of the concordance index / AUROC (Riley et al., 2021). Based on the validation dataset’s observed outcome prevalence and estimated c-statistic (or user-prespecified anticipated values via document parameters or application controls), along with the linear predictor distribution, the workflow automatically calculates the required minimum sample size and event count across all three criteria, and flags potential sample size shortfalls. When evaluated using the cohort’s own observed prevalence and c-statistic by default, this serves as a post-hoc check of whether achieved precision meets the target interval widths rather than a prospective sample size calculation. If the sample size is inadequate, investigators should consider multicenter data pooling or delaying validation until sufficient events accrue.
Transparently Address Missing Data
In complete datasets, external validation requires only pairs of observed binary outcomes and model-predicted risks. However, clinical validation cohorts frequently contain missing values in predictor variables. Investigators must decide how missing data will be addressed before generating estimated probabilities, and this decision should align with how missing data will be handled during clinical deployment.
If the model is intended for use in settings where missing predictor data will be imputed (e.g., through prior imputation or by deployment algorithms), then validation should reflect this by imputing missing data and validating across imputed datasets. If the model assumes complete data at deployment (with missing cases excluded in practice), then complete-case analysis in the validation cohort is appropriate, though this should be clearly documented and the extent of missingness reported. Each approach has different implications: imputation preserves sample size but introduces modeling assumptions, while complete-case analysis avoids imputation assumptions but can result in substantial loss of statistical precision and potential selection bias if missingness is not random (Steyerberg, 2019).
When imputation is chosen, the imputation model should include all predictors, the validation outcome, and any relevant auxiliary variables (Sisk et al., 2023). Once predictions are calculated across imputed datasets, performance metrics can be pooled across imputations. The workflow does not currently support multiple imputation and expects preprocessed, complete estimated probabilities in a single dataset; investigators must transparently document the extent of missingness, their approach to missing data, and the rationale for their chosen strategy in their validation report (TRIPOD+AI Item 11).
Extract the Complete Original Model Specification
External validation requires correct calculation of the model predictions. Consult the original publication for the full regression equation or model architecture, extracting all predictor variables, exact coefficients or weights, the model intercept or baseline hazard rates, and any variable transformations. For proprietary or incompletely disclosed models, request the full specification from the original authors or use safe validation environments such as the evaluatr R package where the evaluator can obtain model probabilities without accessing the model coefficients (Ensor et al., 2026). If the model is only available as a web calculator or app, it can be used to obtain the predictions, but make sure that these are calculated correctly and that the process is documented and reproducible.
Starting the validation
Once study preparation, predictor harmonization, and missing data handling are complete, the investigator prepares an analysis-ready dataset containing participant records and model predictions. To protect data provenance, raw source files should never be edited manually; rather, data cleaning, imputation, predictor transformations, and model risk estimation should be executed via a documented, reproducible preprocessing script.
This workflow requires an analysis-ready dataset (currently .csv, .tsv or .rds supported) containing one row per participant and at least two core columns: an observed binary outcome (coded 0/1) and an estimated probability (between 0 and 1). Estimated probabilities of exactly 0 or 1, which can occur when there is perfect separation, are moved slightly inwards (to the interval [0.0001, 0.9999]) so that their logit can be computed; values outside [0, 1] and outcomes not coded 0/1 stop the analysis with an error. External validation can also include information about subgroups or clusters (e.g. different hospitals in a multicenter study), but the workflow does not automatically deal with subgroups and the user needs to input the filtered dataset instead.
Illustrative case study
This section is not part of the validation itself but serves as an illustrative example to guide researchers on how to apply the workflow to a real clinical dataset.
GUSTO-I trial
We will use the clinical prediction model and validation setup described by Riley, Archer, et al. (2024). The case study is based on the well-known GUSTO-I (Global Utilization of Streptokinase and Tissue Plasminogen Activator for Occluded Coronary Arteries) trial, which evaluated thrombolytic treatment strategies in 40,830 patients with acute myocardial infarction (Riley, Archer, et al., 2024; Steyerberg et al., 2001; Steyerberg et al., 2004; Steyerberg, 2019).
The clinical outcome is all-cause mortality at 30 days (day30). Following Riley, Archer, et al. (2024), a multivariable logistic regression prediction model was developed using participants enrolled in the US West region (; 135 deaths, event rate 6.2%). The model specifies eight baseline clinical predictors across 10 parameter estimates:
- Age: continuous in years, entered as a centered cubic polynomial:
- Sex: binary (female vs. male)
- Hypertension (
htn): binary (history of hypertension: yes vs. no) - Killip class: 4-level categorical indicator of heart failure severity (class I [reference], II, III, or IV)
- Hypotension (
hyp): binary (systolic blood pressure : yes vs. no) - Tachycardia (
hrt): binary (heart rate : yes vs. no) - Previous myocardial infarction (
pmi): binary (yes vs. no) - ST-segment elevation leads (
ste): continuous count of ECG leads with ST elevation, centered at 3.99954:
External validation is conducted in the remaining patients from all other trial regions (2,716 deaths, observed event rate 7.0%). In accordance with TRIPOD+AI Item 20b, participant baseline characteristics for the external validation cohort are reported in Table 2, stratified by 30-day mortality status. The workflow automatically generates a similar table for any predictor columns in the validation dataset, allowing users to compare the case-mix with the development cohort. If only outcome and probability columns are provided, the workflow skips the characteristics table but still performs the full validation analysis and generates all figures and performance metrics. This validation mimics that presented in Riley, Archer, et al. (2024).
Data import and checks
The researcher imports the validation dataset, and the workflow automatically checks, before any analysis, whether the outcome and estimated probability columns are present and whether there are missing or invalid values. Rows with such values are excluded, and the user is warned that imputation should be considered. Estimated probabilities of exactly 0 or 1 are bounded away from these values so that their logit can be computed for the calibration analysis. Sample size adequacy is formally evaluated across O/E, calibration slope, and c-statistic precision criteria using the pmvalsampsize R package (Riley et al., 2021).
| Characteristic | Overall N = 38,6421 | Survived (30 days) N = 35,9261 | Died (30 days) N = 2,7161 |
|---|---|---|---|
| Age (years) | 62 (52, 70) [19, 110] | 61 (52, 69) [19, 110] | 72 (64, 78) [30, 108] |
| Sex | |||
| Male | 28,908 (75%) | 27,292 (76%) | 1,616 (59%) |
| Female | 9,734 (25%) | 8,634 (24%) | 1,100 (41%) |
| Hypertension | 14,637 (38%) | 13,360 (37%) | 1,277 (47%) |
| Killip class | |||
| I | 32,881 (85%) | 31,197 (87%) | 1,684 (62%) |
| II | 4,929 (13%) | 4,242 (12%) | 687 (25%) |
| III | 532 (1.4%) | 361 (1.0%) | 171 (6.3%) |
| IV | 300 (0.8%) | 126 (0.4%) | 174 (6.4%) |
| Hypotension | 3,167 (8.2%) | 2,590 (7.2%) | 577 (21%) |
| Tachycardia (heart rate > 100 bpm) | 12,664 (33%) | 11,354 (32%) | 1,310 (48%) |
| Previous myocardial infarction | 6,351 (16%) | 5,585 (16%) | 766 (28%) |
| Number of leads with ST elevation | 4 (3, 6) [0, 11] | 4 (3, 5) [0, 11] | 5 (3, 6) [0, 10] |
The four key performance measures
The four key performance measures used in this workflow follow the recommendations of Van Calster et al. (2025), who reviewed commonly used performance measures and recommended a small set of measures and plots as key results:
- Distribution of estimated risks: The overall performance of the model can be visualized with risk distribution plots by outcome category. According to Van Calster et al. (2025), the distribution of estimated risks by outcome reflects both discrimination and calibration, so a separate summary metric for overall performance (e.g., the Brier score, reported in Appendix Table S1) is not considered essential.
- Discrimination: The ability of the model to distinguish between participants with and without the outcome. This is quantified using the area under the receiver operating characteristic curve (AUROC).
- Calibration: The agreement between the estimated probabilities and the actual outcomes. This is best assessed through flexible calibration plots.
- Clinical Utility: The practical value of the model in clinical decision-making. This can be examined using decision-curve analysis across clinically relevant probability thresholds.
Additional performance measures can be considered depending on the context and requirements of the validation study. These four measures are also the key output of the workflow that is summarized in the validation panel (Figure 1). This panel contains all necessary information to assess the model’s performance and is suitable for inclusion in a manuscript or report. The workflow also provides each element of the validation panel as a separate figure.
The next sections describe the four key performance measures in detail, including the underlying calculations and basic interpretation. We include in the appendix the results of all validation metrics that are not essential but informative according to Van Calster et al. (2025) (Table S1).
Distribution of estimated risks
Before summarizing discrimination, we inspect histograms per outcome or side-by-side violin plots of estimated risk by outcome. The distribution of estimated risks by observed outcome is displayed in the validation panel (Figure 1, Panel A, bottom tier).
Higher levels of discrimination are reflected by separation between these distributions, although the degree of overlap should be interpreted alongside the AUROC and calibration results.
Discrimination
Discrimination is assessed with the c-statistic (concordance index), which for a binary outcome is the area under the receiver operating characteristic curve (AUROC) (Verbakel et al., 2020). We refer to it as the AUROC, accompanied by a 95% confidence interval (see Newcombe (2006) for different methods to calculate the confidence interval); here we use a logit-based confidence interval, in which the AUROC is logit-transformed, its standard error is obtained by the delta method, and the limits are back-transformed so that they remain within 0 and 1.
The AUROC here is interpreted as the probability that a randomly selected participant with the outcome has a higher estimated risk than a randomly selected participant without the outcome. An AUROC of 0.5 indicates no discrimination (equivalent to random guessing), while an AUROC of 1 indicates perfect discrimination. This example has an AUROC of 0.81 (95% CI 0.80 to 0.82). The value of the AUROC should be interpreted in the context of the clinical application, and rules of thumb for interpreting AUROC values are not universally agreed upon (de Hond et al., 2022).
The ROC curve is not recommended as a figure for model evaluation
The receiver operating characteristic (ROC) curve is a graphical representation of the model’s performance across all possible classification thresholds. It plots the true positive rate (sensitivity) against the false positive rate (1 - specificity). Van Calster et al. (2025) recommend reporting the AUROC and its confidence interval, but not the ROC curve itself, as it is not informative for model evaluation and can be misleading (Verbakel et al., 2020). If a graphical display of classification performance is desired, a classification plot showing sensitivity and specificity across risk thresholds is a more informative alternative (Verbakel et al., 2020).
Calibration
Calibration reflects the agreement between the model’s estimated probabilities and the actual observed proportion of events in the validation population (Van Calster et al., 2019). A model with excellent discrimination can nevertheless suffer from severe miscalibration, which can lead to inappropriate clinical treatment decisions. The most comprehensive calibration assessment is a flexible calibration plot, which compares observed and estimated risks across the whole range of estimated probabilities using a smooth curve. Several other measures can be presented, but they do not add much to the information in the plot (see Table S1).
A well-calibrated model has a curve that closely follows the 45-degree diagonal. Dedicated software for this assessment is available, including methods to account for clustering or to compute calibration curves for survival models in the CalibrationCurves R package.
The closer the curve is to the diagonal line, the better the calibration. If the curve is above the diagonal, the model underestimates risk; if it is below, the model overestimates risk. In the validation panel (Figure 1, Panel A), the flexible calibration curve is slightly above the diagonal for risks between 0 and 20% but below it afterwards. This means that the model is slightly underestimating risk for low-risk participants and overestimating risk for high-risk participants. We suggest limiting the x- and y-axes to the 99th percentile of estimated risk to ensure that the presented curve correctly reflects the observed data.
In our example, the calibration slope is 0.72 (95% CI 0.70 to 0.75), which, being below 1.0, indicates that risks are too extreme (spread is too high). The calibration intercept (offset model with slope fixed at 1) is 0.02 (95% CI -0.03 to 0.06) and the observed-to-expected ratio is 1.01 (95% CI 0.98 to 1.05), reflecting excellent overall agreement between average predicted risk and observed mortality in the validation population. These summary measures can be included in the calibration plot if desired for an immediate impression of key performance aspects. Note that the Wald intervals for the calibration intercept and slope are approximate and may be optimistic when event counts are near the minimum pmvalsampsize floor.
Choice of smoother
The recommendation for flexible calibration plots is to use the LOESS smoother (Steyerberg, 2019). For large datasets () such as the GUSTO-I validation cohort (), restricted cubic splines (Steyerberg, 2019) are implemented by default in CalibrationCurves (De Cock Campo, 2023).
Clinical utility
Decision Curve Analysis (DCA) evaluates the clinical utility of a prediction model by quantifying its Net Benefit across a range of clinically relevant decision threshold probabilities (Vickers et al., 2016; Vickers & Elkin, 2006). A decision threshold is the minimum estimated probability at which a clinician or patient would opt for a specific clinical action (e.g., initiating treatment or ordering an invasive diagnostic test); without a well-defined clinical intervention, a meaningful threshold cannot be established. For instance, a decision threshold of 10% implies that a patient receives the intervention if their estimated probability of the outcome is 10% or higher. The chosen threshold inherently reflects the relative clinical consequences of misclassification: the odds at the threshold, , represent the relative weight of the harm of an unnecessary intervention (false positive) compared to the harm of a missed event (false negative). A lower threshold indicates that missing a true event is far more harmful than treating someone unnecessarily.
At any given threshold , Net Benefit combines the proportion of true positives and false positives into a single metric expressed on the scale of true positives per patient: Thus, Net Benefit represents the net proportion of true-positive patients identified by using the model to guide clinical management—equivalent to the proportion of patients who would be appropriately treated without any false-positive interventions (Vickers et al., 2016).
Model-guided management is compared against two default clinical strategies: treating everyone (Treat All) and treating no one (Treat None, which has a Net Benefit of zero at all thresholds). Because clinicians and patients may weigh the harms of missed events and unnecessary interventions differently, Net Benefit is evaluated across a prespecified range of reasonable decision thresholds rather than at a single cutoff (here we display the full range for illustrative purposes; in practice, Net Benefit should only be interpreted within the prespecified clinically plausible range). When alternative risk scores or biomarkers exist, plotting their Net Benefit curves on the same axes enables direct comparison. Following current methodological recommendations, decision curves are presented without confidence intervals because uncertainty bounds around Net Benefit are not informative for choosing a clinical strategy (Vickers et al., 2023). The decision-curve analysis for the GUSTO-I validation cohort is shown in the validation panel (Figure 1, Panel B).
When the model’s Net Benefit curve lies above both the Treat All and Treat None curves across the clinically relevant threshold range, using the model to guide decisions provides higher clinical utility than either default strategy. In Figure 1 (Panel B), the GUSTO-I model’s Net Benefit curve exceeds Treat All for threshold probabilities above approximately 3% and remains above Treat None across clinically relevant thresholds (e.g., 5% to 40%), confirming that risk-stratified clinical decision-making yields positive net benefit across this range of clinically relevant decision thresholds.
Synthetic data for sharing
One issue that prevents model validators from sharing their code is knowing that the results will not be reproducible because the data cannot be shared. This is a common problem in clinical research, where patient-level data are often sensitive and cannot be shared due to privacy concerns. To address this issue, we provide a method for generating illustrative synthetic data that can be shared in place of the original records. The synthetic data are generated to closely resemble the original validation dataset in terms of key performance metrics; this similarity does not guarantee privacy, and the disclosure risk should be assessed before sharing. Another way of allowing reproducibility is to provide the scientific community only with outcomes and estimated probabilities, which are often not considered sensitive data. However, make sure that the estimated probabilities do not allow re-identification of the participants: if the model coefficients are publicly available and the probabilities are given with many decimals, it may be possible to recover the predictor values of a participant through reverse engineering. The probabilities should therefore be rounded (here to four decimals) and the disclosure risk should be assessed in the specific context.
When participant-level validation data cannot be shared, the following section creates a synthetic validation cohort using the synthpop approach (Nowok et al., 2016). The outcome is generated using classification and regression trees (CART) conditional on the synthesized estimated probability, while the estimated probability is synthesized with a rank-preserving continuous model. Non-parametric CART synthesis preserves the empirical risk distribution and non-linear calibration characteristics without imposing parametric logistic link constraints. Several synthetic candidates are generated (here 10) and the candidate closest to the observed AUROC, calibration slope and intercept, and event rate is retained. Here, the intercept is that of the logistic recalibration model outcome ~ logit(prediction) in which the slope is estimated freely (); it therefore differs from the calibration intercept reported in Section 5.3 and Table S1 (), which fixes the slope at 1 (offset model). Because the rank-preserving synthesis can reuse observed predicted values, any synthetic record whose estimated probability equals that of an observed participant is slightly perturbed on the logit scale, and it is verified that no synthetic record is identical to an observed one.
Candidate selection calculates the weighted distance between the characteristics of each candidate and the observed (target) characteristics: where indexes the four characteristics used for matching (AUROC, calibration intercept, calibration slope and event rate) and is the scaling denominator of characteristic . A separate scaling denominator is needed for each characteristic because they are measured on different numerical scales. The scaling denominators are intended to reflect substantively comparable and clinically negligible tolerance intervals across metrics operating on different numerical scales: 0.02 represents a 2-percentage-point change in bounded metrics (AUROC and overall event rate), while 0.10 represents a modest variation for regression-based calibration parameters (intercept and slope on the logit scale). In our example, the same candidate is selected under equal weights, empirical-SD weights, and analytical-SE weights.
The validation performance of the observed and synthetic companion datasets is compared graphically and numerically across all core evaluation dimensions in Figure 2, which synthesizes the flexible calibration curves (panels A and B), estimated-risk distributions (panel C), decision curves (panel D), and numerical performance metrics summary (panel E) into a single unified evaluation panel. Close agreement across all panels—reflecting the selection of the best-matching candidate out of 10—indicates that the synthetic cohort mirrors the empirical risk distribution, discrimination, non-linear calibration, and clinical utility of the observed cohort, which makes it a useful illustrative surrogate for sharing code and results.
We present the synthetic dataset to demonstrate the analysis and allow the scientific community to reproduce the results. It is not a privacy guarantee, because synthetic records can still reveal information about real participants, and it should not be presented as real participant data.
Open Science
Adherence to open-science standards requires thorough documentation even when individual patient records cannot be publicly shared:
- Study Protocol, Metadata and Data Dictionaries: Authors should publish the study protocol for data collection covering data provenance, clinical setting, eligibility criteria, exact definitions of outcomes and predictors, and measurement tools. The metadata should include a complete data dictionary with variable names, labels, units, and coding schemes for categorical variables. This information is essential for understanding the clinical context and enabling independent evaluation of the results.
- Data Availability Statements & DOIs: When depositing synthetic datasets, analysis scripts, and reproducibility packages in public open-science repositories (such as Zenodo, the Open Science Framework, or institutional dataverses), authors should register a persistent Digital Object Identifier (DOI).
Discussion
We provide a flexible, open-source workflow for external validation of binary clinical prediction models that is accessible to investigators with diverse technical backgrounds. By structuring evaluation around the four key performance pillars recommended by Van Calster et al. (2025) (risk distributions by outcome, AUROC discrimination, flexible calibration curves, and decision-curve analysis) and aligning reporting with TRIPOD+AI (Collins et al., 2024), this workflow helps prevent common pitfalls such as not reporting calibration or clinical utility.
We designed this resource to serve researchers with diverse technical expertise, including epidemiologists, clinicians, and biostatisticians, regardless of programming experience. Rather than assuming familiarity with programming languages or statistical software, the workflow is accessible across three complementary tiers: an interactive web application for point-and-click exploration, a validation notebook written in plain language for interactive execution in Python and R, and a version-controlled repository with locked package dependencies (renv) and automated continuous integration (.gitlab-ci.yml). All three tiers implement the same core analysis, and the deterministic metrics (AUROC with logit-based confidence interval, calibration intercept, calibration slope, O/E ratio and net benefit) are verified to agree within between the R and Python notebook tabs by an automated parity test (tests/parity_check.R) on a fixed 2,000-observation sample. Some outputs are intentionally not identical across tiers: bootstrap intervals use language-specific random number generators, flexible calibration curves differ in implementation (R: CalibrationCurves; Python: a hand-coded spline and LOESS), the required sample size is simulation-based in R and quadrature-based in Python, and synthetic-data generation is available only in R. On the GUSTO-I cohort, the R and Python RCS calibration curves differ by at most 0.004 across the plotted risk range (LOESS ), and the overall required sample size is identical (; Criterion 2: 4,914 in R vs. 5,079 in Python).
Furthermore, by integrating rank-preserving synthetic cohort generation (synthpop) alongside explicit guidance on data dictionaries and persistent repository DOIs, the workflow enables computational reproducibility even when patient privacy regulations prohibit sharing raw clinical records.
The automated workflow comes with some limitations. First, automated calculation of performance metrics cannot compensate for deficiencies in study design, inadequate sample size, or unrepresentative validation cohorts (Riley, Archer, et al., 2024). Rather than relying on historical rules of thumb (e.g., 100 events / 100 non-events), the workflow incorporates formal sample size calculations via the pmvalsampsize package (Riley et al., 2021) to ensure target precision across calibration and discrimination metrics; nonetheless, formal sample size planning should ideally be performed prior to study launch (Riley, Snell, et al., 2024; Sadatsafavi et al., 2026). Second, the workflow operates on complete pairs of observed outcomes and precomputed estimated probabilities (and therefore cannot detect upstream errors in how those predictions were calculated from the original model); investigators remain responsible for inspecting missing predictor values and conducting imputation prior to generating risk predictions (TRIPOD+AI Item 11), as well as comparing baseline patient characteristics and case-mix against the original development study (TRIPOD+AI Items 16, 20b, and 20c). Finally, when validation data originate from multiple hospitals or clusters, or when evaluating algorithmic fairness across sociodemographic subgroups (TRIPOD+AI Items 14 and 23a), investigators should extend the core workflow with random-effects meta-analysis, clustered calibration curves (Barreñada et al., 2026; Debray et al., 2023), or stratified subgroup evaluations.
Looking ahead, future versions of the workflow will expand its methodological scope in three primary directions. First, we plan to incorporate various missing-data handling techniques, allowing investigators to pool performance measures and flexible calibration curves across multiply imputed datasets using appropriate methods (Sisk et al., 2023). Second, we aim to introduce built-in support for clustered and multi-center validation data, implementing internal-external cross-validation, random-effects meta-analysis, and clustered flexible calibration curves to evaluate between-cluster heterogeneity (Barreñada et al., 2026; Debray et al., 2019; Debray et al., 2023). Third, we plan to extend the validation suite to other prediction settings beyond binary endpoints, most notably time-to-event (survival) outcomes as well as continuous and ordinal prediction targets. Because this initiative is developed as an open-access, community-driven resource, we actively welcome contributions, methodological extensions, and pull requests from other researchers, epidemiologists, and developers via our public repository (https://gitlab.kuleuven.be/sdpm/CPM_validation_workflow).
Reproducibility
In accordance with the Journal of Reproducible Health Sciences reproducibility-package requirements, all computational results, figures, tables, and the compiled manuscript are deterministically regenerated from a single executable source repository:
- Article type: Tutorial / Software
- Repository & bundle location: https://gitlab.kuleuven.be/sdpm/CPM_validation_workflow (publicly accessible without login; frozen release archived at https://doi.org/10.5281/zenodo.24687918; output bundle built at
manuscript/manuscript_reproducible/) - Single entry-point command:
Rscript manuscript/run_manuscript.R(executesquarto render manuscript/reproducible_workflow.qmd --cache-refreshfrom the project root to rebuild all figures, tables, synthetic surrogate data, themanuscript/manuscript_reproducible/bundle, and the HTML/PDF manuscript from scratch) - Pinned computing environment: R 4.6.1 (package versions locked in
renv.lockand restored automatically viarenv::restore(prompt = FALSE)), Python (equivalents pinned inrequirements.txt), and Quarto CLI 1.9.37 (installed separately); complete session information is reported in Appendix A4. - Determinism & seeds: All analytical performance estimators (AUROC with logit-based CI, logistic recalibration intercept/slope, and Poisson log-scale O/E ratio) are deterministic; stochastic steps employ fixed, documented random seeds (
20261008for the illustrative example data,20261016for synthetic data generation and20261029for the bootstrap in the appendix; all stored inanalysis_seeds), with bitwise reproducibility attested within the pinned container (rocker/r-ver:4.6.1).
Recognizing that clinical investigators and healthcare researchers possess varied technical backgrounds, access to the validation tools is organized into three flexible tiers:
- Interactive Web Application (Zero-Code): For non-technical users seeking immediate, code-free external validation, the CPM Validation Suite provides an interactive browser interface to upload CSV, TSV, or RDS datasets, verify column mappings, customize decision thresholds, and export publication-ready 300 DPI figures and tables without software installation. The application source code is available on GitLab (see Appendix A3 for step-by-step visual documentation).
- Direct Notebook Download: Investigators working in RStudio can download the executable Quarto document (
notebook_validation.qmd) directly from this article with a single click, or access the notebook source on GitLab, configure their local file path in the YAML header, and render the entire validation workflow locally. - Open-source GitLab Repository: For computational researchers, biostatisticians, and pipeline integration, the complete version-controlled GitLab repository is hosted publicly for cloning, adaptation, and collaborative development (see Appendix A2 for repository navigation and ZIP archive download).
The code creates a folder (manuscript/manuscript_reproducible/) that collects everything needed for manuscript transparency and reproducibility (observed estimated risks with outcomes, the synthetic companion dataset, and the figures and tables of the main validation); it is rebuilt on every run, and its structure is shown below. Instructions for running the workflow, including environment restoration, are given in the downloadable notebook.
manuscript_reproducible/
|-- data
| |-- synthetic_validation_data.csv
| +-- validation_predictions_used.csv
|-- figures
| |-- calibration_loess.png
| |-- calibration_rcs.png
| |-- decision_curve.png
| |-- risk_distribution.png
| |-- risk_distribution_violin.png
| |-- synthetic_calibration.png
| |-- synthetic_calibration_observed.png
| |-- synthetic_dca.png
| |-- synthetic_distribution.png
| |-- synthetic_panel.png
| |-- validation_panel.pdf
| +-- validation_panel.png
+-- tables
|-- calibration_results.csv
|-- cohort_summary.csv
|-- cohort_summary.html
|-- decision_curve_results.csv
|-- discrimination_results.csv
|-- performance_results.csv
|-- performance_results.html
|-- performance_results_extended.csv
|-- performance_results_extended.html
|-- predictor_summary.csv
|-- predictor_summary.html
|-- sample_size_criteria_breakdown.csv
|-- synthetic_performance_comparison.csv
|-- synthetic_performance_comparison.html
+-- validation_summary_table.csv
Disclosures
- AI use: AI tools were used to assist with code generation, refactoring, and documentation formatting. All analytical logic, statistical methods, and manuscript text were reviewed, verified, and edited by the authors, who take full responsibility for the accuracy and integrity of the work.
- Funding: LB is supported by the Research Foundation Flanders (FWO) grant 12A8F27N. The funder had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
- Competing interests: ES receives royalties from Springer for the textbook Clinical Prediction Models. ES, MvS, BVC, and LW co-authored the TRIPOD+AI (Collins et al., 2024) and performance evaluation (Van Calster et al., 2025) guidance, and BVC and LB co-developed the
CalibrationCurvesandevaluatrR packages. - Ethics approval: Not applicable (secondary methodological analysis of publicly available, de-identified clinical trial data from the GUSTO-I trial).
Data and Code Availability
- Data availability: The clinical case study uses publicly accessible de-identified trial data from the GUSTO-I trial (Steyerberg, 2019), available from the Vanderbilt Biostatistics repository and in the GitLab reproducibility bundle (validation predictions), evaluated as described by Riley, Archer, et al. (2024). In addition, an illustrative synthetic companion dataset generated with
synthpop(verified to contain no record identical to an observed one; not a privacy guarantee; synthetic validation data) is shipped directly in the bundle to demonstrate sharing of surrogate data when raw clinical records cannot be made public (TRIPOD+AI Item 18e; “data available on request” is not used). - Code availability: The executable Quarto source, single entry-point script (
manuscript/run_manuscript.R), pinned environment lockfiles (renv.lockandrequirements.txt), and the dual-language validation notebook (notebook_validation.qmd) are publicly available without login under the GNU General Public License v3.0 (GPL-3.0) in the GitLab repository (archived at https://doi.org/10.5281/zenodo.24687918). The CPM Validation Suite web application is also available online; its application source is in the repository.
References
- Arshi, B., Cowley, L. E., Rijnhart, E., Reeve, K., Smits, L. J., & Wynants, L. (2025). External validation, impact assessment and clinical utilization of clinical prediction models: a prospective cohort study. Journal of Clinical Epidemiology, 186, 111902. https://doi.org/10.1016/j.jclinepi.2025.111902 ↩
- Barreñada, L., De Cock Campo, B., Wynants, L., & Van Calster, B. (2026). Clustered flexible calibration plots for binary outcomes using random effects modeling. Research Synthesis Methods, 17(3), 567–588. https://doi.org/10.1017/rsm.2025.10046 ↩ 1 2 3
- Collins, G. S., Moons, K. G. M., Dhiman, P., Riley, R. D., Beam, A. L., Van Calster, B., Ghassemi, M., Liu, X., Reitsma, J. B., van Smeden, M., Boulesteix, A.-L., Camaradou, J. C., Celi, L. A., Denaxas, S., Denniston, A. K., Glocker, B., Golub, R. M., Harvey, H., Heinze, G., … Logullo, P. (2024). TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ, 385, e078378. https://doi.org/10.1136/bmj-2023-078378 ↩ 1 2 3 4 5
- De Cock Campo, B. (2023). Towards reliable predictive analytics: A generalized calibration framework. arXiv. https://doi.org/10.48550/arXiv.2309.08559 ↩
- de Hond, A. A. H., Shah, V. B., Kant, I. M. J., Van Calster, B., Steyerberg, E. W., & Hernandez-Boussard, T. (2023). Perspectives on validation of clinical predictive algorithms. Npj Digital Medicine, 6(1). https://doi.org/10.1038/s41746-023-00832-9 ↩
- de Hond, A. A. H., Steyerberg, E. W., & van Calster, B. (2022). Interpreting area under the receiver operating characteristic curve. The Lancet Digital Health, 4(12), e853–e855. https://doi.org/10.1016/s2589-7500(22)00188-1 ↩
- Debray, T. P. A., Collins, G. S., Riley, R. D., Snell, K. I. E., Van Calster, B., Reitsma, J. B., & Moons, K. G. M. (2023). Transparent reporting of multivariable prediction models developed or validated using clustered data: TRIPOD-Cluster checklist. BMJ, 380, e071018. https://doi.org/10.1136/bmj-2022-071018 ↩ 1 2
- Debray, T. P., Damen, J. A., Riley, R. D., Snell, K., Reitsma, J. B., Hooft, L., Collins, G. S., & Moons, K. G. (2019). A framework for meta-analysis of prediction model studies with binary and time-to-event outcomes. Statistical Methods in Medical Research, 28(9), 2768–2786. https://doi.org/10.1177/0962280218785504 ↩ 1 2
- Ensor, J., Van Calster, B., Barreñada, L., Wynants, L., & Perry, B. I. (2026). A system for independent evaluation of clinical prediction models while preserving intellectual property and data privacy. Zenodo. https://doi.org/10.5281/ZENODO.20707722 ↩
- Lakens, D., Mesquida, C., Rasti, S., & Ditroilo, M. (2024). The benefits of preregistration and Registered Reports. Evidence-Based Toxicology, 2(1). https://doi.org/10.1080/2833373x.2024.2376046 ↩
- Mehta, V., Komanduri, A., Bhadouriya, R. S., Mehta, V., Johnson, M. D., Shrestha, P., Nikolov, M., Jain, B., Shah, N., & Schulman, K. (2025). Evaluating transparency in AI/ML model characteristics for FDA-reviewed medical devices. Npj Digital Medicine, 8(1). https://doi.org/10.1038/s41746-025-02052-9 ↩
- Mondal, D., Purhonen, M., Marušić, A., & Brück, O. (2026). Availability of performance evidence of approved AI diagnostic software in pathology and hematology morphology. Npj Digital Medicine. https://doi.org/10.1038/s41746-026-03356-0 ↩
- Moons, K. G. M., Damen, J. A. A., Kaul, T., Hooft, L., Andaur Navarro, C., Dhiman, P., Beam, A. L., Van Calster, B., Celi, L. A., Denaxas, S., Denniston, A. K., Ghassemi, M., Heinze, G., Kengne, A. P., Maier-Hein, L., Liu, X., Logullo, P., McCradden, M. D., Liu, N., … van Smeden, M. (2025). PROBAST+AI: an updated quality, risk of bias, and applicability assessment tool for prediction models using regression or artificial intelligence methods. BMJ, 388, e082505. https://doi.org/10.1136/bmj-2024-082505 ↩
- Newcombe, R. G. (2006). Confidence intervals for an effect size measure based on the Mann–Whitney statistic. Part 2: asymptotic methods and evaluation. Statistics in Medicine, 25(4), 559–573. https://doi.org/10.1002/sim.2324 ↩
- Nowok, B., Raab, G. M., & Dibben, C. (2016). synthpop : Bespoke Creation of Synthetic Data in R. Journal of Statistical Software, 74(11). https://doi.org/10.18637/jss.v074.i11 ↩
- Ramspek, C. L., Jager, K. J., Dekker, F. W., Zoccali, C., & van Diepen, M. (2021). External validation of prognostic models: what, why, how, when and where? Clinical Kidney Journal, 14(1), 49–58. https://doi.org/10.1093/ckj/sfaa188 ↩
- Riley, R. D., Archer, L., Snell, K. I. E., Ensor, J., Dhiman, P., Martin, G. P., Bonnett, L. J., & Collins, G. S. (2024). Evaluation of clinical prediction models (part 2): how to undertake an external validation study. BMJ, 384, e074820. https://doi.org/10.1136/bmj-2023-074820 ↩ 1 2 3 4 5 6 7 8
- Riley, R. D., Debray, T. P. A., Collins, G. S., Archer, L., Ensor, J., van Smeden, M., & Snell, K. I. E. (2021). Minimum sample size for external validation of a clinical prediction model with a binary outcome. Statistics in Medicine, 40(19), 4230–4251. https://doi.org/10.1002/sim.9025 ↩ 1 2 3 4 5 6
- Riley, R. D., Snell, K. I. E., Archer, L., Ensor, J., Debray, T. P. A., van Calster, B., van Smeden, M., & Collins, G. S. (2024). Evaluation of clinical prediction models (part 3): calculating the sample size required for an external validation study. BMJ, 384, e074821. https://doi.org/10.1136/bmj-2023-074821 ↩ 1 2 3
- Sadatsafavi, M., Gustafson, P., Setayeshgar, S., Wynants, L., & D Riley, R. (2026). Bayesian Sample Size Calculations for External Validation Studies of Risk Prediction Models. Statistics in Medicine, 45(3-5). https://doi.org/10.1002/sim.70389 ↩ 1 2
- Sisk, R., Sperrin, M., Peek, N., van Smeden, M., & Martin, G. P. (2023). Imputation and missing indicators for handling missing data in the development and deployment of clinical prediction models: A simulation study. Statistical Methods in Medical Research, 32(8), 1461–1477. https://doi.org/10.1177/09622802231165001 ↩ 1 2
- Sounack, T., Giancotti, R., Gao, C. A., Barreñada, L., Lee, H., Lee, H.-C., Celi, L. A., Moons, K. G. M., Collins, G. S., Lindvall, C., & Pollard, T. (2026). AI-assisted scoping review of code sharing in clinical prediction model research. Nature Medicine. https://doi.org/10.1038/s41591-026-04691-1 ↩
- Steyerberg, E. W. (2019). Clinical Prediction Models: A Practical Approach to Development, Validation, and Updating. In Statistics for Biology and Health. Springer International Publishing. https://doi.org/10.1007/978-3-030-16399-0 ↩ 1 2 3 4 5 6
- Steyerberg, E. W., Borsboom, G. J. J. M., van Houwelingen, H. C., Eijkemans, M. J. C., & Habbema, J. D. F. (2004). Validation and updating of predictive logistic regression models: a study on sample size and shrinkage. Statistics in Medicine, 23(16), 2567–2586. https://doi.org/10.1002/sim.1844 ↩
- Steyerberg, E. W., Eijkemans, M. J. C., Harrell, F. E., Jr, & Habbema, J. D. F. (2001). Prognostic Modeling with Logistic Regression Analysis: In Search of a Sensible Strategy in Small Data Sets. Medical Decision Making, 21(1), 45–56. https://doi.org/10.1177/0272989x0102100106 ↩
- Van Calster, B., Collins, G. S., Vickers, A. J., Wynants, L., Kerr, K. F., Barreñada, L., Varoquaux, G., Singh, K., Moons, K. G., Hernandez-Boussard, T., Timmerman, D., McLernon, D. J., van Smeden, M., & Steyerberg, E. W. (2025). Evaluation of performance measures in predictive artificial intelligence models to support medical decisions: overview and guidance. The Lancet Digital Health, 7(12), 100916. https://doi.org/10.1016/j.landig.2025.100916 ↩ 1 2 3 4 5 6 7
- On behalf of Topic Group ‘Evaluating diagnostic tests and prediction models’ of the STRATOS initiative, Van Calster, B., McLernon, D. J., van Smeden, M., Wynants, L., & Steyerberg, E. W. (2019). Calibration: the Achilles heel of predictive analytics. BMC Medicine, 17(1). https://doi.org/10.1186/s12916-019-1466-7 ↩
- van Leeuwen, K. G., Schalekamp, S., Rutten, M. J. C. M., van Ginneken, B., & de Rooij, M. (2021). Artificial intelligence in radiology: 100 commercially available products and their scientific evidence. European Radiology, 31(6), 3797–3804. https://doi.org/10.1007/s00330-021-07892-z ↩
- Verbakel, J. Y., Steyerberg, E. W., Uno, H., De Cock, B., Wynants, L., Collins, G. S., & Van Calster, B. (2020). ROC curves for clinical prediction models part 1. ROC plots showed no added value above the AUC when evaluating the performance of clinical prediction models. Journal of Clinical Epidemiology, 126, 207–216. https://doi.org/10.1016/j.jclinepi.2020.01.028 ↩ 1 2 3
- Vickers, A. J., & Elkin, E. B. (2006). Decision Curve Analysis: A Novel Method for Evaluating Prediction Models. Medical Decision Making, 26(6), 565–574. https://doi.org/10.1177/0272989x06295361 ↩
- Vickers, A. J., Van Calster, B., & Steyerberg, E. W. (2016). Net benefit approaches to the evaluation of prediction models, molecular markers, and diagnostic tests. BMJ, i6. https://doi.org/10.1136/bmj.i6 ↩ 1 2
- Vickers, A. J., Van Calster, B., Wynants, L., & Steyerberg, E. W. (2023). Decision curve analysis: Confidence intervals and hypothesis testing for net benefit. Diagnostic and Prognostic Research, 7(1), 11. https://doi.org/10.1186/s41512-023-00148-y ↩
- Wynants, L., Riley, R. D., Timmerman, D., & Van Calster, B. (2018). Random‐effects meta‐analysis of the clinical utility of tests and prediction models. Statistics in Medicine, 37(12), 2034–2052. https://doi.org/10.1002/sim.7653 ↩
Appendix
A1 Extended Performance Evaluation
| Performance Measure | Estimate | 95% CI | Ideal Target |
|---|---|---|---|
| Discrimination | |||
| AUROC / concordance (c) statistic | 0.808 | [0.800, 0.817] | 1.000 |
|
Calibration |
|||
| Observed-to-Expected (O/E) ratio | 1.013 | [0.976, 1.052] | 1.000 |
| Calibration intercept (CAL INT) | 0.019 | [-0.026, 0.064] | 0.000 |
| Calibration slope | 0.721 | [0.695, 0.747] | 1.000 |
| Integrated Calibration Index (ICI / Eavg) | 0.019 | [0.017, 0.022] | 0.000 |
| Emax (Maximum calibration error) | 0.279 | [0.246, 0.318] | 0.000 |
| E90 (90th percentile calibration error) | 0.025 | [0.020, 0.030] | 0.000 |
| Estimated Calibration Index (ECI) | 0.109 | [0.088, 0.135] | 0.000 |
| Expected Calibration Error (ECE, 10 deciles) | 0.019 | [0.017, 0.021] | 0.000 |
|
Overall performance |
|||
| Brier score | 0.059 | [0.057, 0.061] | 0.000 |
| Scaled Brier score (IPA / BSS) | 0.102 | [0.085, 0.118] | 1.000 |
| Log-likelihood | -8278.7 | [-8524.9, -8025.8] | 0.0 |
| Log loss / cross-entropy | 0.214 | [0.208, 0.221] | 0.000 |
| McFadden R-squared | 0.158 | [0.142, 0.172] | 1.000 |
| Cox-Snell R-squared | 0.077 | [0.069, 0.084] | < 1.000 |
| Nagelkerke R-squared | 0.193 | [0.175, 0.210] | 1.000 |
|
Clinical utility |
|||
| Net benefit (threshold = 10%) | 0.025 | [0.023, 0.027] | 0.070 |
| Standardized net benefit (threshold = 10%) | 0.357 | [0.334, 0.377] | 1.000 |
| Expected cost (threshold = 10%, cost 9:1) | 0.041 | [0.039, 0.042] | 0.000 |
|
Classification (descriptive pairs: Sensitivity & Specificity and PPV & NPV should be displayed together) |
|||
| Sensitivity (threshold = 10%) | 0.567 | [0.547, 0.584] | 1.000 |
| Specificity (threshold = 10%) | 0.857 | [0.853, 0.861] | 1.000 |
| PPV (threshold = 10%) | 0.231 | [0.220, 0.241] | 1.000 |
| NPV (threshold = 10%) | 0.963 | [0.961, 0.965] | 1.000 |
A2 Navigating the Repository and Downloading Archives
The clinical prediction model validation workflow and manuscript generation pipeline are hosted in an open-access repository at https://gitlab.kuleuven.be/sdpm/CPM_validation_workflow. The repository is organized to separate user-facing external validation tools from the manuscript generation pipeline:
- User-facing validation tools (project root):
notebook_validation.qmd: Quarto validation notebook with synchronized R and Python tabs for evaluating custom prediction models on tabular data.app.R: Zero-code interactive Shiny web suite providing guided data validation, automated sample size adequacy planning, and exportable bundles.process_data/: Contains preprocessed validation cohorts and the illustrative sample dataset (validation_sample_2000.csv).
- Manuscript and reproducible case study (
manuscript/):reproducible_workflow.qmd: Quarto source for the complete peer-reviewed manuscript and GUSTO-I case study.run_manuscript.R: Execution entry point that regenerates all manuscript figures, tables, and HTML/PDF documents.
Researchers and peer reviewers can download the complete codebase without requiring Git command-line tools by clicking the Code dropdown button on the repository home page and selecting zip under Download source code (Figure S1), or via direct archive download at https://gitlab.kuleuven.be/sdpm/CPM_validation_workflow/-/archive/main/CPM_validation_workflow-main.zip.
A3 Interactive Model Validation via the CPM Validation Suite
For researchers preferring an interactive, zero-code environment, the CPM Validation Suite is deployed online at https://lasaibarrenada-cpm-validation-suite.share.connect.posit.cloud and can also be executed locally from an R terminal via shiny::runApp("app.R").
The application guides users through data upload, sample size precision planning, flexible performance evaluation, and bundle export:
- Data selection, sample size adequacy planning, and predictor distributions (Figure S2):
- Users can upload validation cohorts formatted as CSV, TSV, or RDS files, or click Load Example Dataset to evaluate the 2,000-participant GUSTO-I case study.
- Dropdown selectors confirm observed binary outcomes (
0/1) and estimated risks (0 to 1). - The application automatically benchmarks the validation sample against the three precision criteria of Riley, Snell, et al. (2024) using
pmvalsampsize, highlighting sample size adequacy for O/E ratio, calibration slope and AUROC. - Above the interactive dataset explorer, an exportable clinical predictor distribution table (matching Table 2) summarizes predictor characteristics across outcome groups with one-click CSV and HTML downloads.
- Flexible calibration and discrimination evaluation (Figure S3):
- The Calibration tab visualizes flexible calibration curves (LOESS and restricted cubic splines) with pointwise 95% confidence intervals, plotted alongside the ideal 45-degree reference line.
- Top-tier summary cards display key quantitative metrics with analytical 95% confidence intervals: AUROC, calibration intercept, calibration slope, and O/E ratio.
- The
</> Codebutton exposes executable R and Python code snippets pre-populated with active dataset parameters for transparent reporting.
- Clinical utility assessment via Decision Curve Analysis (Figure S4):
- The Decision Curves tab calculates and plots the net benefit across clinically relevant decision thresholds, comparing the model against default “treat-all” and “treat-none” policies.
- Tabular net benefit summaries can be inspected and exported directly as CSV.
- One-click reproducibility bundle export (Figure S5):
- The Reproducibility tab packages all analytical results into a downloadable
.ziparchive (validation_reproducible.zip). - The bundle contains analysis-ready datasets (
validation_predictions_used.csv), summary tables (CSV and HTML), high-resolution figures across multiple formats (PNG at 300 DPI, vector PDF, SVG, TIFF), and an R reproduction script.
- The Reproducibility tab packages all analytical results into a downloadable
A4 Computational Environment and Session Information
The following output records the R version, Quarto CLI version, operating system platform, and loaded package versions used to compile this manuscript (exact package hashes are locked in renv.lock and Python equivalents in requirements.txt):
Quarto CLI version: 1.9.37
R version 4.6.1 (2026-06-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26200)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=English_Belgium.utf8 LC_CTYPE=English_Belgium.utf8
[3] LC_MONETARY=English_Belgium.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Belgium.utf8
time zone: Europe/Brussels
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] CalibrationCurves_3.1.0 rms_8.2-1 Hmisc_5.3-1
[4] pmvalsampsize_0.1.0 dcurves_0.5.1 gt_1.4.0
[7] synthpop_1.9-3 ggplot2_4.0.3 dplyr_1.2.1
[10] pROC_1.19.1
loaded via a namespace (and not attached):
[1] splines_4.6.1 later_1.4.8
[3] tinytable_0.19.0 polspline_1.1.25
[5] tibble_3.3.1 merTools_1.0.0
[7] rpart_4.1.27 lifecycle_1.0.5
[9] Rdpack_2.6.6 gtsummary_2.6.1
[11] processx_3.10.0 globals_0.20.0
[13] Rsolnp_2.0.1 lattice_0.22-9
[15] MASS_7.3-65 backports_1.5.1
[17] magrittr_2.0.5 metafor_5.2-1
[19] sass_0.4.10 rmarkdown_2.32
[21] jquerylib_0.1.4 yaml_2.3.12
[23] httpuv_1.6.17 otel_0.2.0
[25] reticulate_1.47.0 minqa_1.2.8
[27] RColorBrewer_1.1-3 multcomp_1.4-32
[29] abind_1.4-8 purrr_1.2.2
[31] nnet_7.3-20 TH.data_1.1-5
[33] sandwich_3.1-3 lava_1.10
[35] rmutil_1.1.10 listenv_1.1.0
[37] arm_1.15-3 proto_1.0.0
[39] MatrixModels_0.5-4 parallelly_1.48.0
[41] commonmark_2.0.0 codetools_0.2-20
[43] coin_1.4-6 xml2_1.6.0
[45] tidyselect_1.2.1 shape_1.4.6.1
[47] farver_2.1.2 lme4_2.1-0
[49] broom.mixed_0.2.9.7 matrixStats_1.5.0
[51] stats4_4.6.1 mipfp_3.2.3
[53] base64enc_0.1-6 mathjaxr_2.0-0
[55] jsonlite_2.0.0 e1071_1.7-17
[57] Formula_1.2-6 survival_3.8-6
[59] iterators_1.0.14 foreach_1.5.2
[61] tools_4.6.1 cmprsk_2.2-12
[63] Rcpp_1.1.2 blme_1.0-8
[65] glue_1.8.1 prodlim_2026.03.11
[67] gridExtra_2.3.1 mgcv_1.9-4
[69] xfun_0.62 ranger_0.18.0
[71] withr_3.0.3 numDeriv_2016.8-1.1
[73] fastmap_1.2.0 boot_1.3-32
[75] metabook_0.2-0 SparseM_1.84-2
[77] litedown_0.11 digest_0.6.39
[79] truncnorm_1.0-9 R6_2.6.1
[81] mime_0.13 colorspace_2.1-4
[83] riskRegression_2026.03.11 markdown_2.1
[85] tidyr_1.3.2 generics_0.1.4
[87] renv_1.2.3 data.table_1.18.6.1
[89] class_7.3-23 htmlwidgets_1.6.4
[91] pkgconfig_2.0.3 strucchange_1.6-0
[93] gtable_0.3.6 modeltools_0.2-25
[95] party_1.3-23 S7_0.2.2
[97] furrr_0.4.0 htmltools_0.5.9
[99] broman_0.98 scales_1.4.0
[101] png_0.1-9 reformulas_0.4.4
[103] knitr_1.52 rstudioapi_0.19.0
[105] tzdb_0.5.0 coda_0.19-4.1
[107] checkmate_2.3.4 nlme_3.1-169
[109] nloptr_2.2.1 proxy_0.4-29
[111] zoo_1.9-1 cachem_1.1.0
[113] stringr_1.6.0 KernSmooth_2.23-26
[115] parallel_4.6.1 metadat_1.6-0
[117] libcoin_1.0-13 foreign_0.8-91
[119] pec_2025.06.24 pillar_1.11.1
[121] grid_4.6.1 vctrs_0.7.3
[123] promises_1.5.0 randomForest_4.7-1.2
[125] xtable_1.8-8 cluster_2.1.8.2
[127] htmlTable_2.5.0 evaluate_1.0.5
[129] readr_2.2.0 meta_8.5-0
[131] mvtnorm_1.4-2 cli_3.6.6
[133] compiler_4.6.1 rlang_1.3.0
[135] future.apply_1.21.0 labeling_0.4.3
[137] timereg_2.0.7 classInt_0.4-11
[139] RcppArmadillo_15.6.2-1 plyr_1.8.9
[141] forcats_1.0.1 fs_2.1.0
[143] stringi_1.8.9 quarto_1.5.1
[145] CompQuadForm_1.4.4 glmnet_5.2
[147] quantreg_6.1 Matrix_1.7-5
[149] mets_1.3.12 hms_1.1.4
[151] future_1.80.0 cmm_1.0
[153] shiny_1.14.0 rbibutils_2.4.1
[155] broom_1.0.13 bslib_0.12.0
Cite this article
Barreñada, L., Steyerberg, E. W., van Smeden, M., Van Calster, B., & Wynants, L. (2026). Reproducible workflow for validating a clinical prediction model in accordance with TRIPOD+AI. Journal of Reproducible Health Sciences, 1, 1. https://doi.org/10.68365/jrephealth.2026.1
Barreñada, Lasai, Ewout W. Steyerberg, Maarten van Smeden, Ben Van Calster, and Laure Wynants. 2026. “Reproducible Workflow for Validating a Clinical Prediction Model in Accordance with TRIPOD+AI.” Journal of Reproducible Health Sciences 1: 1. https://doi.org/10.68365/jrephealth.2026.1.
Barreñada L, Steyerberg EW, van Smeden M, Van Calster B, Wynants L. Reproducible workflow for validating a clinical prediction model in accordance with TRIPOD+AI. Journal of Reproducible Health Sciences. 2026;1:1. doi:10.68365/jrephealth.2026.1
Barreñada, L. et al. (2026) “Reproducible workflow for validating a clinical prediction model in accordance with TRIPOD+AI,” Journal of Reproducible Health Sciences, 1, p. 1. Available at: https://doi.org/10.68365/jrephealth.2026.1.
doi: https://doi.org/10.68365/jrephealth.2026.1
Downloads
https://doi.org/10.68365/jrephealth.2026.1 also supports content negotiation, so reference managers can fetch the citation from the DOI directly. The exports above work without it.