RiskStratifiedEstimation is an R package for implementing risk stratified analyses for the assessment of treatment effect heterogeneity in an observational database in the OMOP Common Data Model. The package combines functionality of PatientLevelPrediction and CohortMethod R packages.
The framework is applied in 5 steps:
- Definition of the research problem: Requires the definition of (at least) three cohorts. The treatment cohort with instructions on which patients are to be considered as receiving the treatment of interest; the comparator cohort with instructions on which patients are to be considered as receiving the comparator treatment; one (or more) outcome cohort(s) with instructions on which patients are to be considered as having the outcome(s) of interest.
- Database identification: Databases mapped to OMOP-CDM on which the cohort definitions will be applied in order to generate the study population.
- Prediction: Develop one (or more) prediction model(s) on the outcome(s) of interest on the pooled treatment and comparator cohorts in each database.
- Estimation: Run diagnostincs and derive estimates of both relative and absolute treatment effects within strata of predicted risk.
- Presentation of results: Plot relative and absolute treatment effect estimates derived on all databases and summarize.
- Extracts the necessary data from a database in OMOP Common Data Model format.
- Uses a large set of covariates for the prediction, the propensity and the outcome model, including for example all drugs, diagnoses, procedures, as well as age, comorbidity indexes, etc.
- Imports functionality from PatientLevelPrediction package for the development of prediction models for risk stratification.
- Large scale regularized regression to fit the propensity and outcome models.
- Includes diagnostic functions for the prediction process, including calibration plots and ROC curves demostrating the performance of the developed prediction models in sub-populations of interest.
- Includes diagnostic functions for the estimation process, including propensity score distribution plots and plots showing covariate balance before and after performing a propensity score-based analysis.
RiskStratifiedEstimation is being developed in R.
Requires R (version 3.1.0 or higher). Installation on Windows requires RTools. Libraries used in RiskStratifiedEstimation require Java.
- Cyclops
- DatabaseConnector
- SqlRender
- FeatureExtraction
- ParallelLogger
- CohortMethod
- PatientLevelPrediction
- EmpiricalCalibration
- On Windows, make sure RTools is installed.
- The DatabaseConnector and SqlRender packages require Java. Java can be downloaded from http://www.java.com. Once Java is installed, ensure that Java is being pathed correctly. Under environment variables in the control panel, ensure that the jvm.dll file is added correctly to the path.
- In R, use the following commands to download and install RiskStratifiedEstimation:
install.packages("remotes")
remotes::install_github("OHDSI/RiskStratifiedEstimation")
- Vignette: Study example
- Package manual: RiskStratifiedEstimation.pdf
- Developer questions/comments/feedback: OHDSI Forum
- We use the GitHub issue tracker for all bugs/issues/enhancements
RiskStratifiedEstimation is licensed under Apache License 2.0
RiskStratifiedEstimation is being developed in R Studio.
RiskStratifiedEstimation is still in beta phase.