This R package contains the resources for performing a treatment pathway analysis of a study population of interest in observational databases. The package partially relies on the Observational Medical Outcomes Partnership Common Data Model (OMOP CDM), but the main parts of the package are also usable with different data formats.
Reference: Markus, A. F., Verhamme, K. M., Kors, J. A., & Rijnbeek, P. R. (2022). TreatmentPatterns: An R package to facilitate the standardized development and analysis of treatment patterns across disease domains. Computer Methods and Programs in Biomedicine, 107081.
- Extracts the necessary data from a database in OMOP CDM format or directly imports the cohorts from a csv file.
- Performs baseline characterization of the study population of interest (only for databases in OMOP CDM format).
- Treatment pathways are constructed consisting of specified events of interest (e.g. prescriptions of drugs, therapies, other treatments) for specified target cohorts (study populations of interest).
- Aggregate output statistics are generated to describe the treatment sequence observed in the study population of interest including sunburst plots, Sankey diagrams, percentage(s) of people treated (with certain treatments), treatment changes over time, average duration of event eras.
- All results can be explored in an interactive Shiny application.
Demo output: example shiny application.
Sunburst plot | Sankey diagram |
-
See the instructions here for configuring your R environment, including RTools and Java.
-
In R, use the following commands to download and install TreatmentPatterns:
install.packages("remotes")
remotes::install_github("mi-erasmusmc/TreatmentPatterns")
Available documentation includes:
- Vignette: Perform a study using the TreatmentPatterns package
- Package manual: TreatmentPatterns
We use the GitHub issue tracker for all bugs/issues/enhancements.