Bayesian implementation of IVW and MR-Egger models.
Install the CRAN version with 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")
Using 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")
The helpfiles are shown on the package website at: https://okezie94.github.io/mrbayes/.
Okezie Uche-Ikonne, Frank Dondelinger, and Tom Palmer
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.