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.5)CIVMR_0.0.1.zip(r-4.4)CIVMR_0.0.1.zip(r-4.3)
CIVMR_0.0.1.tgz(r-4.4-any)CIVMR_0.0.1.tgz(r-4.3-any)
CIVMR_0.0.1.tar.gz(r-4.5-noble)CIVMR_0.0.1.tar.gz(r-4.4-noble)
CIVMR_0.0.1.tgz(r-4.4-emscripten)CIVMR_0.0.1.tgz(r-4.3-emscripten)
CIVMR.pdf |CIVMR.html
CIVMR/json (API)

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

Peer review:

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

Datasets:

On CRAN:

1.70 score 1 stars 15 exports 0 dependencies

Last updated 4 years agofrom:972613ed33. Checks:ERROR: 7. Indexed: no.

TargetResultDate
Doc / VignettesFAILDec 03 2024
R-4.5-winERRORDec 03 2024
R-4.5-linuxERRORDec 03 2024
R-4.4-winERRORDec 03 2024
R-4.4-macERRORDec 03 2024
R-4.3-winERRORDec 03 2024
R-4.3-macERRORDec 03 2024

Exports:alleleboot_CIVCIVcv_CIVIV_reductionLA_decompositionlmplmPvaluepcc_IVrm_outlier_IVsmooth_CIVsmooth_L0_lambdaSNP_reductionsolve_pccTSLS_IV

Dependencies: