Bayesian Summary Data Models for Mendelian Randomization Studies

Bayesian estimation of inverse variance weighted (IVW), Burgess et al. (2013) , and MR-Egger, Bowden et al. (2015) , summary data models for Mendelian randomization analyses.


mrbayes

R-CMD-check Coverage status CRAN status RStudio_CRAN_mirror_downloads_badge r-universe

Bayesian implementation of IVW and MR-Egger models.

Installation instructions

Install the CRAN version with the following code:

install.packages("mrbayes")

Or install the development version from r-universe with

install.packages("mrbayes", repos = c("https://mrcieu.r-universe.dev", "https://cloud.r-project.org"))

or from GitHub with:

# install.packages("remotes") # uncomment if remotes not installed
remotes::install_github("okezie94/mrbayes")

Installing JAGS to use the JAGS functions

The functions which use JAGS require that the JAGS software is installed.

On macOS the easiest way to install JAGS is through Homebrew with

brew install pkg-config
brew install jags

Alternatively, JAGS installation files for Windows and macOS are available from https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/, and further info can be found on the JAGS website https://mcmc-jags.sourceforge.io/.

In R you can then install rjags from source

install.packages("rjags", type = "source")

Package website

The helpfiles are shown on the package website at: https://okezie94.github.io/mrbayes/.

Authors

Okezie Uche-Ikonne, Frank Dondelinger, and Tom Palmer

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mrbayes")

0.5.3 by Tom Palmer, 3 months ago


https://github.com/okezie94/mrbayes, https://okezie94.github.io/mrbayes/, https://mrcieu.r-universe.dev/mrbayes


Report a bug at https://github.com/okezie94/mrbayes/issues


Browse source code at https://github.com/cran/mrbayes


Authors: Okezie Uche-Ikonne [aut] (ORCID: , Frank Dondelinger [aut] (ORCID: , Tom Palmer [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports DescTools, methods, Rcpp, RcppParallel, rstan, rstantools

Suggests MendelianRandomization, rjags, testthat

Linking to BH, Rcpp, RcppEigen, RcppParallel, rstan, StanHeaders

System requirements: GNU make


See at CRAN