Skip to content

cit

Causal Inference Test

v2.3.2 · Jun 28, 2024 · Artistic-2.0

Description

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.

Downloads

CRAN

325

Last 30 days

12095th

909

Last 90 days

3.9K

Last year

Trend: +23.6% (30d vs prior 30d)

r2u CRAN

43

Last 30 days

135

Last 90 days

417

Last year

Trend: -29.5% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING r-devel-linux-x86_64-debian-gcc

Rd \usage sections

Fatal error: cannot create 'R_TempDir'
Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
See chapter ‘Writing R documentation files’ in the ‘Writing R
Extensions’ manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Version History

15 tracked
new 2.3.2 Mar 10, 2026
updated 2.3.2 ← 2.3.1 diff Jun 27, 2024
updated 2.3.1 ← 2.2 diff May 24, 2021
updated 2.2 ← 2.1 diff Dec 14, 2017
updated 2.1 ← 2.0 diff Nov 14, 2016
updated 2.0 ← 1.9 diff Mar 6, 2016
updated 1.9 ← 1.8 diff Jan 9, 2016
updated 1.8 ← 1.7 diff Jan 8, 2016
updated 1.7 ← 1.5 diff Oct 27, 2015
updated 1.5 ← 1.4 diff Oct 24, 2015
updated 1.4 ← 1.3 diff Mar 9, 2015
updated 1.3 ← 1.2 diff Dec 9, 2014
updated 1.2 ← 1.1 diff Dec 19, 2013
updated 1.1 ← 1.0 diff Dec 9, 2011
new 1.0 Sep 6, 2011