Skip to content

CohortMethod

6.0.3Package record

Comparative Cohort Method with Large Scale Propensity and Outcome Models

0packages depend
3.9Kdownloads / year
93.5%test coverage
13/13flavors OK

Overview

About

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.

Changes in 6.0.3

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

CRAN checks
13OK
Slowest check: 15.2 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 6.0.3
READMEYes · 372 wordsVignettesYes · 3 · dynamicNEWSYes · 33% structured · mentions 6.0.3Citation fileYes · cites a publicationWebsiteYes · pkgdown
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

3.9K
CRAN downloads in the past year
Rank #5,139 · ~11/day · ~323/mo
Daily download trend is not available in this view yet.
66330 days
1.6K90 days
3.9K1 year
Compare downloads with other packages →
Also on318 r2u9 autocran

Repository

92Stars
69Forks
16Open issues
2Open PRs
18Releases
1,110Commits
27Commit identities
hades
1,110 commits · Last activity 2026-06-22 · +3.4% stars, 30d
Responsiveness
How these are sampled
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

2025-09-09 · 862026-09-28 · 92
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Governance and community (1)
PR template
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-06-22

pkgdown site last built 2026-06-19, before release 6.0.3 (2026-06-22)

Coverage (1)
Coverage reporting
Show all practicesHide 3 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

An outside contributor's pull request to this repository was written with an AI coding tool.

From outside contributors
  • Claude Code
    Pull requests: 1 from outside contributors, first on 2026-09-14, 1 from forks
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
31 external dependencies (excludes base and recommended)

Installing CohortMethod adds 70 packages (39 with compiled code, 54 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, duckdb 4.6 MB.

LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 6.0.1 (2026)
Releases (3)

Pick two releases to compare their code metrics.

  • 6.0.3Latest
    record
    2026-06-22 · current release · diff ↗
  • 6.0.2
    record
    2026-05-08 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 6.0.1
    record
    2026-03-21
  • R
    R 4.5.0 released · 2025-04-11

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CohortMethod version 6.0.3 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy