Develop Clinical Prediction Models Using the Common Data Model
Overview
A user friendly way to create patient level prediction models using the Observational Medical Outcomes Partnership Common Data Model. Given a cohort of interest and an outcome of interest, the package can use data in the Common Data Model to build a large set of features. These features can then be used to fit a predictive model with a number of machine learning algorithms. This is further described in Reps (2017) doi:10.1093/jamia/ocy032.
New features
- Added
simulatePlpBenchmarkData()to generate semi-synthetic benchmark data from covariate profiles or fitted PLP models. - Added outcome-limited split settings for large data sets where training should use a target number of outcome-positive rows (#396).
- Added Broken Adaptive Ridge logistic regression via
setBrokenAdaptiveRidge(), including automatic ridge initialization and out-of-fold penalty selection (#673). - Added lifecycle-style custom hyperparameter generators.
- Persisted model names in the results data model for downstream viewers.
Bug fixes
- Generated iterative hard thresholding CV predictions using fitted prior variances and restored intercept fitting.
Show all changes in 6.7.0Hide the rest of the changes in 6.7.0
- Ensured Cyclops CV refits honor thread, seed, tolerance, and iteration settings (#672).
- Validated simulation outcome covariates and added support for user-supplied PLP outcome models.
- Fixed scikit-learn SVC JSON loading to restore probability prediction, preserve sparse-model predictions, support dense models, and retain all-zero columns in sparse matrices (#682).
- Defaulted missing evaluation types in
evaluatePlp(). - Corrected imputation messages for the number of missing features.
- Added the existing
diagnostic_predictors.probast_idcolumn to the results data model specification (#674).
Performance and maintenance
- Reduced hyperparameter database serialization overhead.
- Raised and tested minimum dependency versions and added an R 4.1.3 dependency floor check.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-18
- ERROR11 OK, 2 ERROR2026-10-09
- OK13 OK2026-09-29
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
Show 10 earlier changesHide 10 earlier changes
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-24
- ERROR12 OK, 1 ERROR2026-05-17
- OK13 OK2026-05-15
- ERROR12 OK, 1 ERROR2026-05-13
- OK14 OK2026-04-06
- ERROR13 OK, 1 ERROR2026-04-04
- OK14 OK2026-03-10
Documentation
- Help pages
- 139 (10 internal)includes a package overview page
- Examples that run
- 50%62 run in a plain check (7 of them under a condition) · 48 only when donttest examples are enabled (R CMD check --as-cran) · 12 never run · 1 hold no code
- Exported functions with examples
- 96%
- Documented parameters
- 95%
- Return-value docs
- 98%
- Help pages citing references
- 1%
Also includes 3 demo scripts (run with demo())
- Adding Custom Data Splitting HTML
- Adding Custom Feature Engineering Functions HTML
- Adding Custom Patient-Level Prediction Algorithms HTML
- Adding Custom Sampling HTML
- Automatically Build Multiple Patient-Level Predictive Models HTML
- Benchmark Tasks HTML
- Best Practices HTML
- Building patient-level predictive models HTML
- Clinical Models HTML
- Constrained Predictors HTML
Show 4 moreHide 4 vignettes
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 40
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
10 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ohdsi/patientlevelprediction on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2026-09-29 · The repository has a site deploy workflow
pkgdown site last built 2026-09-29
Show all practicesHide 3 practices
Dependencies
Installing PatientLevelPrediction adds 60 packages (35 with compiled code, 42 MB of source tarballs). Heaviest: stringi 11 MB, duckdb 4.6 MB, RSQLite 4.2 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 6.7.0Latest2026-09-21 · current release · diff ↗ ·
added 3 exports
createOutcomeLimitedSplitSettings, setBrokenAdaptiveRidge, simulatePlpBenchmarkData - RR 4.6.0 released · 2026-04-24
- 6.6.02026-03-09 · diff ↗ ·
added 5 exports
computeAuprc, createHyperparameterSettings, createSklearnIterativeImputer, createTuningMetric, setRidgeRegression - 6.5.12025-10-15 · diff ↗
- 6.5.02025-07-25 · diff ↗
- 6.4.12025-04-20 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 6.4.02025-02-11
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-02-11
- Total releases
- 6 / 1 yrs
- License
- Apache License 2.0 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 3.8 KB / 1 file
- Download size
- 3.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("PatientLevelPrediction")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1093/jamia/ocy032.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.