Causal Inference Test
Overview
A likelihood-based hypothesis testing approach is implemented for assessing causal mediation. Described in Millstein, Chen, and Breton (2016), DOI:10.1093/bioinformatics/btw135, it could be used to test for mediation of a known causal association between a DNA variant, the 'instrumental variable', and a clinical outcome or phenotype by gene expression or DNA methylation, the potential mediator. Another example would be testing mediation of the effect of a drug on a clinical outcome by the molecular target. The hypothesis test generates a p-value or permutation-based FDR value with confidence intervals to quantify uncertainty in the causal inference. The outcome can be represented by either a continuous or binary variable, the potential mediator is continuous, and the instrumental variable can be continuous or binary and is not limited to a single variable but may be a design matrix representing multiple variables.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 9includes a package overview page
- Examples that run
- 100%8 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 100%
Downloads
Repository
Stars over time
Forks over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/uscbiostats/cit on 2026-10-22.
The R CMD check workflow runs on Linux
Dependencies
Installing cit adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-05-25
- RR 4.1.0 released · 2021-05-18
- archivedRemoved from CRAN2020-10-27required archived package 'RefManageR'
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
Show 20 earlier eventsHide 20 earlier events
- RR 3.0.0 released · 2013-04-03
- RR 2.15.0 released · 2012-03-30
- 2.14.12011-12-09 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.13.2
- 2.3.22024-06-28 · diff ↗
- 2.3.12021-05-25 · diff ↗
- 2.22017-12-15 · diff ↗
- 2.1
- 2.02016-03-07 · diff ↗
- 1.92016-01-10 · diff ↗
- 1.82016-01-09 · diff ↗
- 1.72015-10-28 · diff ↗
- 1.52015-10-25 · diff ↗ ·
removed 2 exports
cit, plotcitadded 6 exports
linreg, cit.cp, cit.bp, fdr.od, fdr.cit, iuq - 1.42015-03-10 · diff ↗
- 1.32014-12-10 · diff ↗
- 1.22013-12-20 · diff ↗
- 1.12011-12-10 · diff ↗
- 1.02011-09-07
- RR 2.13.0 released · 2011-04-13
Package metadata
- First published
- 2011-07-19
- Total releases
- 17 / 15 yrs
- License
- Artistic-2.0 OSI
- Minimum R
- ≥ 4.3.0
- Download size
- 28 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cit")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.