Package: CIVMR 0.0.1

Lai Jiang

CIVMR: Constrained Instrumental Variables in Mendelian Randomization with Pleiotropy

In Mendelian randomization (MR), genetic variants are used to construct instrumental variables that then enable inference about the causal relationship between a phenotype of interest and a response or disease outcome. However, valid MR inference requires several assumptions, including the assumption that the genetic variants only influence the response through the phenotype of interest.Pleiotropy occurs when a genetic variant has an effect on more than one different phenotypes, and therefore a pleiotropic genetic variant may be an invalid instrumental variable.Hence, a naive method for constructing an instrumental variables may lead to biased estimation of the association between the phenotype and the response. Here, we encode a new and intuitive method (Constrained Instrumental Variable method [CIV]) to construct valid instrumental variables and perform adjusted causal effect estimation when pleiotropic exists, focusing particularly on the situation where pleiotropic phenotypes have been measured. Our approach is theoretically guaranteed to perform an automatic and valid selection of genetic variants when building the instrumental variable. We also provide details of the features of many existing methods, together with a comparison of their performance in a large series of simulations. CIV performs robustly across many different pleiotropic violations of the MR assumptions.

Authors:Lai Jiang [aut, cre]

CIVMR_0.0.1.tar.gz
CIVMR_0.0.1.zip(r-4.7)CIVMR_0.0.1.zip(r-4.6)CIVMR_0.0.1.zip(r-4.5)
CIVMR_0.0.1.tgz(r-4.6-any)CIVMR_0.0.1.tgz(r-4.5-any)
CIVMR_0.0.1.tar.gz(r-4.7-any)CIVMR_0.0.1.tar.gz(r-4.6-any)
CIVMR_0.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
CIVMR/json (API)

# Install 'CIVMR' in R:
install.packages('CIVMR', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/remlapmot/civmr/issues

Datasets:

On CRAN:

Conda:

2.70 score 15 exports 0 dependencies

Last updated from:44661fac3a (on suggestions). Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK200
source / vignettesOK289
linux-release-x86_64OK198
macos-release-arm64OK173
macos-oldrel-arm64OK153
windows-develOK153
windows-releaseOK140
windows-oldrelOK328
wasm-releaseOK118

Exports:alleleboot_CIVCIVcv_CIVIV_reductionLA_decompositionlmplmPvaluepcc_IVrm_outlier_IVsmooth_CIVsmooth_L0_lambdaSNP_reductionsolve_pccTSLS_IV

Dependencies:

Package 'CIVMR'

Rendered fromCIVMR.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2026-03-15
Started: 2017-09-11