Bayesian estimation of IVW and MR-Egger models for two-sample Mendelian randomization studies
AbstractWe present our package, mrbayes, for the open source software environment R. The package implements Bayesian estimation of IVW and MR-Egger models, including the radial MR-Egger model, for summary-level data Mendelian randomization analyses. We have implemented a choice of prior distributions for the model parameters, namely; weakly informative, non-informative, a joint prior for the MR-Egger model slope and intercept, and a pseudo-horseshoe prior, or the user can specify their own prior. We show how to use the package through an applied example investigating the causal effect of BMI on insulin resistance. In future work, we plan to provide functions for alternative MCMC estimation software such as Stan and OpenBugs.AvailabilityThe package is freely available, under the MIT license, on GitHub here https://github.com/okezie94/mrbayes.It can be installed in R using the following commands.There is a website of the package helpfiles at https://okezie94.github.io/mrbayes/.