forked from darwin-eu-dev/TreatmentPatterns
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
63 lines (46 loc) · 2.71 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# TreatmentPatterns
<!-- badges: start -->
[![Lifecycle:stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/darwin-eu-dev/TreatmentPatterns/actions/workflows/R-CMD-check.yaml/badge.svg?branch=dev)](https://github.com/darwin-eu-dev/TreatmentPatterns/actions/workflows/R-CMD-check.yaml)
[![CRAN](https://www.r-pkg.org/badges/version/TreatmentPatterns)](https://CRAN.R-project.org/package=TreatmentPatterns)
[![Codecov test coverage](https://codecov.io/gh/darwin-eu-dev/TreatmentPatterns/branch/master/graph/badge.svg)](https://app.codecov.io/gh/darwin-eu-dev/TreatmentPatterns?branch=master)
<!-- badges: end -->
[_Markus A, Verhamme K, Kors J, Rijnbeek P (2022). “TreatmentPatterns: An R package to facilitate the standardized development and analysis of treatment patterns across disease domains.” Computer Methods and Programs in Biomedicine._](https://doi.org/10.1016/j.cmpb.2022.107081)
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.
## Features
- Compatible with JSON, SQL, or [`CapR`](https://ohdsi.github.io/Capr/) cohorts.
- Compatible with [`DatabaseConnector`](https://ohdsi.github.io/DatabaseConnector/), [`CohortGenerator`](https://ohdsi.github.io/CohortGenerator/), and [`CDMConnector`](https://darwin-eu.github.io/CDMConnector/).
- Stratification by **age**, **sex**, and **index year**.
- Treatment type agnostic.
- Full control over treatment pathway definition:
1. Duration of treatments
2. Overlap of treatments
3. Gaps between treatments
- Intermediate patient level results can be reviewed, aggregate data can be shared.
- Easily integrate Sankey diagrams and sunburst plots (`htmlWidget`) into ShinyApps or web-pages.
## Installation
You can install the most recently released CRAN version of TreatmentPatterns with:
``` r
install.packages("TreatmentPatterns")
```
Or from GitHub with:
``` r
remotes::install_github("darwin-eu-dev/TreatmentPatterns")
```
You can install the development version of TreatmentPatterns from [GitHub](https://github.com/) with:
``` r
install.packages("remotes")
remotes::install_github("darwin-eu-dev/TreatmentPatterns@dev")
```