Comparative Cohort Method with Large Scale Propensity and Outcome Models
Overview
Functions for performing comparative cohort studies in an observational database in the Observational Medical Outcomes Partnership (OMOP) Common Data Model. Can extract all necessary data from a database. This implements large-scale propensity scores (LSPS) as described in Tian et al. (2018) doi:10.1093/ije/dyy120, using a large set of covariates, including for example all drugs, diagnoses, procedures, as well as age, comorbidity indexes, etc. Large scale regularized regression is used to fit the propensity and outcome models as described in Suchard et al. (2013) doi:10.1145/2414416.2414791. Functions are included for trimming, stratifying, (variable and fixed ratio) matching and weighting by propensity scores, as well as diagnostic functions, such as propensity score distribution plots and plots showing covariate balance before and after matching and/or trimming. Supported outcome models are (conditional) logistic regression, (conditional) Poisson regression, and (stratified) Cox regression. Also included are Kaplan-Meier plots that can adjust for the stratification or matching.
Bugfixes:
1. Fixed error caused by dbplyr 2.6.0 caused sum the variable to be confused with sum the function.
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-22
Show 16 earlier changesHide 16 earlier changes
- ERROR12 OK, 1 ERROR2026-08-20
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-27
- ERROR12 OK, 1 ERROR2026-06-19
- 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-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-04-06
- ERROR13 OK, 1 ERROR2026-04-04
- OK6 OK2026-03-22
Documentation
- Help pages
- 69 (1 internal)includes a package overview page
- Examples that run
- 100%8 run in a plain check
- Exported functions with examples
- 12%
- Documented parameters
- 98%
- Return-value docs
- 88%
- Help pages citing references
- 16%
Downloads
Repository
- PRs merged (all time)
- 68%
- Median days to close, 50 most recently updated closed issues
- 246
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ohdsi/cohortmethod on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2026-06-22
pkgdown site last built 2026-06-19, before release 6.0.3 (2026-06-22)
Show all practicesHide 3 practices
An outside contributor's pull request to this repository was written with an AI coding tool.
- Claude CodePull requests: 1 from outside contributors, first on 2026-09-14, 1 from forks
Dependencies
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2026-03-21
- Total releases
- 3 / 1 yrs
- License
- Apache License 2.0 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 265 KB / 1 file
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("CohortMethod")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.3233/shti231108.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.