Abstract
We present our package, mrbayes, for the open source software environment R. The package implements Bayesian estimation for IVW and MR-Egger models, including the radial MR-Egger model, for summary-level data in Mendelian randomization analyses. Users have the option of fitting the models using either JAGS or Stan software packages. 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 an informative prior (pseudo-horseshoe prior), or the user can specify their own prior. Similar prior distributions are included using the Stan software with the exception of a user-defined prior. We include We show how to use the package through an applied example investigating the causal effect of BMI on acute ischemic stroke. In future work, we plan to provide functions for Multivariable MR estimation.
Competing Interest Statement
The authors have declared no competing interest.
Funding Statement
No external funding was reported
Author Declarations
All relevant ethical guidelines have been followed and any necessary IRB and/or ethics committee approvals have been obtained.
Not Applicable
All necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.
Not Applicable
Any clinical trials involved have been registered with an ICMJE-approved registry such as ClinicalTrials.gov and the trial ID is included in the manuscript.
Not Applicable
I have followed all appropriate research reporting guidelines and uploaded the relevant Equator, ICMJE or other checklist(s) as supplementary files, if applicable.
Yes
Footnotes
Main and Supplementary documents were revised. The authors' affiliations were updated.
Data Availability
Publicly available summary level data