Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis
Overview
Computes the posterior model probabilities for standard meta-analysis models (null model vs. alternative model assuming either fixed- or random-effects, respectively). These posterior probabilities are used to estimate the overall mean effect size as the weighted average of the mean effect size estimates of the random- and fixed-effect model as proposed by Gronau, Van Erp, Heck, Cesario, Jonas, & Wagenmakers (2017, doi:10.1080/23743603.2017.1326760). The user can define a wide range of non-informative or informative priors for the mean effect size and the heterogeneity coefficient. Moreover, using pre-compiled Stan models, meta-analysis with continuous and discrete moderators with Jeffreys-Zellner-Siow (JZS) priors can be fitted and tested. This allows to compute Bayes factors and perform Bayesian model averaging across random- and fixed-effects meta-analysis with and without moderators. For a primer on Bayesian model-averaged meta-analysis, see Gronau, Heck, Berkhout, Haaf, & Wagenmakers (2021, doi:10.1177/25152459211031256).
- Updated syntax for Stan arrays (thanks to @andrjohns)
- Dependency on newest version of rstan (>= 2.26.0)
- Updated references for tutorials on meta-analysis with model averaging
- Bug fixes for passing of arguments in plot_forest() (#23 and #24)
From NEWS 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
- 21includes a package overview page
- Examples that run
- 63%10 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 86%
- Documented parameters
- 93%
- Return-value docs
- 21%
- Help pages citing references
- 38%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 45
- 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
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/danheck/metabma on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-07-22 · The repository has a site deploy workflow
Dependencies
Installing metaBMA adds 56 packages (25 with compiled code, 59 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.6.9Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.6.7
- 0.6.62021-01-08 · diff ↗
- 0.6.52020-10-29 · diff ↗
- 0.6.32020-06-02 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.6.22019-09-16 · diff ↗
- 0.6.12019-07-10 · diff ↗ ·
removed 5 exports
dtriangular, dtruncnorm, predictive, rtriangular, rtruncnormadded 2 exports
meta_ordered, predicted_bf - RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2017-07-26
- Total releases
- 9 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 2.2 KB / 3 files
- Download size
- 164 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("metaBMA")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.