MVMR can be installed from the MRCIEU R-Universe with
install.packages("MVMR", repos = c("https://mrcieu.r-universe.dev", "https://cloud.r-project.org"))To install MVMR directly from the GitHub repository, first make sure you have the remotes package installed:
install.packages("remotes")Then the MVMR package can be installed using:
library(remotes)
install_github("WSpiller/MVMR", build_opts = c("--no-resave-data", "--no-manual"), build_vignettes = TRUE)To update the package just run that command again.
We have written the MVMR R package to perform multivariable Mendelian randomization analyses, including heterogeneity
statistics for assessing instrument strength and validity. The package accommodates any number of exposures greater than 1,
and is currently includes a range of functions for estimating causal effects, as well as assessing conditional instrument strength and pleiotropic bias. For a detailed description regarding each function, please install the package and input vignette("MVMR")
The corresponding paper has been published in Statistics in Medicine, and can be accessed at:
This project is licensed under GNU GPL v3.