Bayesian Summary Data Models for Mendelian Randomization Studies
Overview
Bayesian estimation of inverse variance weighted (IVW), Burgess et al. (2013) doi:10.1002/gepi.21758, and MR-Egger, Bowden et al. (2015) doi:10.1093/ije/dyv080, summary data models for Mendelian randomization analyses.
- The minimum version of R is now 4.3.0. This is required by the **distributional** package (a transitive dependency via **rstan** → **loo** → **posterior**), which uses
chooseOpsMethod()(introduced in R 4.3.0). - Fixes for segfault on macOS ARM runners on r-universe.
- Bump **roxygen2** to 8.0.0.
- Fix hardcoded 3-exposure loop in MVMR-Egger print/summary.
- Fix broken "joint" prior branch in
mvmr_egger_rjags(). - Fix sigma parameterization in
mr_radialegger_rjags(). - Fix wrong function name in Stan MVMR error messages.
- Complete the sigma < 1 warning message in egger rjags functions.
- Fix
bmi_insulincolumn count in documentation. - Fix comment typos in egger rjags functions.
- Constrain prior to 1-3 in
mvmregger.stan. - Remove no-op prior self-assignment in rjags functions.
Show all changes in 0.5.3Hide the rest of the changes in 0.5.3
- Check for rjags before class in MVMR rjags functions.
- Widen non-informative intercept prior in
mregger.stan.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-29
- ERROR12 OK, 1 ERROR2026-07-27
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 16includes a package overview page
- Examples that run
- 15%2 run in a plain check · 11 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 81%
Downloads
Repository
- PRs merged (all time)
- 85%
- Median days to close, 50 most recently updated closed issues
- 36
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/okezie94/mrbayes on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-04 · The repository has a site deploy workflow
pkgdown site last built 2026-07-08
Show all practicesHide 1 practice
Dependencies
Installing mrbayes adds 83 packages (46 with compiled code, 64 MB of source tarballs). Heaviest: BH 14 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Previously maintained by Okezie Uche-Ikonne (0.1.0 to 0.5.1).
Pick two releases to compare their code metrics.
- 0.5.3Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.5.22024-08-19 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.5.12021-10-02 · diff ↗
- 0.5.02021-09-21 · diff ↗
- 0.4.02021-07-13 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.3.02021-04-01 · diff ↗ ·
added 6 exports
mrinput_mr_format, mvmr_egger_rjags, mvmr_egger_stan, mvmr_format, mvmr_ivw_rjags, mvmr_ivw_stan - 0.2.0
- RR 4.0.0 released · 2020-04-24
- 0.1.02019-09-04
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-09-04
- Total releases
- 8 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.3.0
- Bundled data
- 15 KB / 2 files
- Download size
- 57 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mrbayes")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1093/ije/dyaa191.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.