Self-Controlled Cohort Population-Level Estimation
Overview
Estimates incidence rate ratios by comparing time exposed with time unexposed among an exposed cohort using self-controlled cohort methodology as described in Ryan et al. (2013) doi:10.1002/pds.3457. Functions used for empirical calibration of effect estimates, confidence intervals, and p-values are included to control for residual bias.
Changes:
- Performance: MDRR, pre-exposure gain, event-dependent observation, and EASE diagnostics now use batched SQL reads and ParallelLogger-based parallelism, and no longer materialize full result sets in memory.
- Study diagnostics are now configurable via Strategus through
createRunSelfControlledCohortArgs()(runDiagnostics,diagnostics,diagnosticThresholds). - Added a
CohortGeneratordependency;execute()now validates that all requested exposure/outcome cohorts were generated (present in the cohort checksum table).
Bug Fixes:
- Fixed a bug where exposure-based negative controls (
controlType = "exposure") were treated as outcomes, contaminatingoutcome_cohort_idin results. - Fixed
scc_outcome_exposureto reflect the full input exposure-outcome list (rather than only pairs with results) and to correctly accumulatescc_resultacross all calibration groups/batches. scc_result,scc_stat,scc_diagnostics_summary, andscc_outcome_exposureare now always exported (as empty files when an analysis yields no effect estimates), so the export folder and manifest stay consistent.scc_outcome_exposureno longer emits exposure-outcome pairs with missing cohort IDs, which previously violated the NOT NULL primary key constraints on results upload.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-18
- ERROR10 OK, 3 ERROR2026-10-09
- OK13 OK2026-09-29
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
Show 4 earlier changesHide 4 earlier changes
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-29
- ERROR12 OK, 1 ERROR2026-06-27
- OK7 OK2026-06-18
Documentation
- Help pages
- 28 (2 internal)includes a package overview page
- Examples that run
- 0%26 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 11%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 18
- Median days to close, 50 most recently updated closed PRs
- 5
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ohdsi/selfcontrolledcohort on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows
Show all practicesHide 3 practices
Dependencies
Installing SelfControlledCohort adds 70 packages (37 with compiled code, 49 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, duckdb 4.6 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 2.1.0Latest
- 2.0.02026-06-17
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-17
- Total releases
- 2 / 1 yrs
- License
- Apache License 2.0 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 231 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("SelfControlledCohort")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.