Keywords
Bayesian Meta-Analysis, Network Meta-Analysis, Pairwise Meta-Analysis, R, Shiny, JAGS, MCMC, netmeta, meta, Open Science, Software Tool
This article is included in the RPackage gateway.
This article is included in the University College London collection.
Bayesian methods provide a flexible framework for meta-analysis, particularly for network meta-analysis (NMA), which enables simultaneous comparison of multiple interventions and robust modeling of heterogeneity. However, implementing Bayesian meta-analysis often requires advanced programming skills.
We developed BayesMetaNMA, an open-source R/Shiny application for Bayesian pairwise and network meta-analyses. The application uses rjags for Markov Chain Monte Carlo (MCMC) estimation, netmeta for network structure visualization and frequentist NMA outputs, and meta for conventional pairwise analyses. Users can select from various effect measures (standardized mean difference, mean difference, odds ratio, risk ratio, hazard ratio), set MCMC parameters, and define prior distributions. Outputs include MCMC diagnostics, posterior summaries, study-level estimates, and network-specific analyses such as ranking tables and inconsistency checks.
BayesMetaNMA produces comprehensive outputs for both pairwise and network models, including convergence diagnostics (trace, density, autocorrelation, Gelman–Rubin plots), pooled and treatment-specific effects, heterogeneity estimates, and optional meta-regression. All plots and summaries are downloadable.
BayesMetaNMA provides a user-friendly interface for applying Bayesian methods to evidence synthesis without extensive coding. By integrating established R packages in an interactive workflow, it facilitates robust Bayesian analyses for a wide range of research applications.
Bayesian Meta-Analysis, Network Meta-Analysis, Pairwise Meta-Analysis, R, Shiny, JAGS, MCMC, netmeta, meta, Open Science, Software Tool
Meta-analysis combines results from multiple studies to produce a pooled estimate of an effect, aiding evidence-based decision-making. While frequentist approaches remain common, Bayesian methods offer advantages such as incorporating prior knowledge, explicit probabilistic interpretation, and flexible modeling of complex evidence structures (Spiegelhalter et al., 2004; Dias et al., 2013).
Network meta-analysis (NMA) extends pairwise meta-analysis by synthesizing evidence from multiple interventions, even in the absence of direct head-to-head trials. Despite their benefits, Bayesian NMAs typically require coding in specialized environments such as JAGS or Stan, which can be a barrier for applied researchers.
BayesMetaNMA addresses this challenge by providing a graphical interface for Bayesian pairwise and network meta-analyses. Built with R/Shiny, it integrates Bayesian computation, network visualization, and diagnostic tools into a single interactive platform.
BayesMetaNMA is implemented in R (R Core Team, 2023) (≥4.0.0) using the Shiny framework (Chang et al., 2023) (≥1.7.0) and bs4Dash for interface design. Core dependencies include: rjags, coda, netmeta (Rücker et al., 2015), meta, igraph, ggplot2, dmetar, and grid.
Pairwise Random-Effects Model:
Study-specific effects θ_i are modeled as: y_i ~ N(θ_i, σ_i2), θ_i ~ N(μ, τ2) with priors μ ~ N(μ0, σ_μ2), τ ~ Uniform(0, τ_max).
Network Random-Effects Model:
Treatment effects μ_j are estimated relative to a reference treatment: y_i ~ N(θ_i, σ_i2), θ_i = (μ_t1[i] − μ_t2[i]) + δ_i, δ_i ~ N(0, τ2), μ_j ~ N(μ0, σ_μ2), τ ~ Uniform(0, τ_max) (Plummer, 2003).
Data are uploaded as CSV:
- Pairwise: Study, Effect, SE
- Network: Study, Treatment1, Treatment2, Effect, SE (log transformation required for OR, RR, HR)
Example datasets are provided for all supported effect measures.
1. Data & Settings: Upload dataset or load an example; choose analysis type and summary measure.
2. Priors & MCMC: Specify iterations, burn-in, and prior parameters.
3. Run Analysis: Execute Bayesian estimation via JAGS.
4. Explore Outputs: Convergence plots, forest plots, network diagrams, posterior summaries, heterogeneity estimates.
– Pairwise Meta-Analysis of SMD: Data loaded, priors specified, results examined via convergence diagnostics and posterior summaries.
– Network Meta-Analysis of logOR: Outputs include Bayesian treatment effect estimates, heterogeneity parameters, network rankings, and probability calculations.
Unified Bayesian platform for both pairwise and network analyses; comprehensive diagnostics; rich visual outputs; configurable priors and MCMC settings; open-source.
The datasets supporting the findings of this study are openly available in Zenodo at https://doi.org/10.5281/zenodo.16944163. These datasets include all values required to replicate the analyses reported in the article, including summary data, effect sizes, and variables used for pairwise and network meta-analyses. The BayesMetaNMA software is also openly available under an MIT License at https://doi.org/10.5281/zenodo.16944435.
Source code available from: https://github.com/laibakhan122/NMABayesianalltypes
Archived software available from: https://doi.org/10.5281/zenodo.16944435
License: MIT License
We thank the developers of R, JAGS, and the R packages shiny, bs4Dash, rjags, coda, ggplot2, igraph, netmeta, dmetar, grid, and meta.
Views | Downloads | |
---|---|---|
F1000Research | - | - |
PubMed Central
Data from PMC are received and updated monthly.
|
- | - |
Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list:
Sign up for content alerts and receive a weekly or monthly email with all newly published articles
Already registered? Sign in
The email address should be the one you originally registered with F1000.
You registered with F1000 via Google, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Google account password, please click here.
You registered with F1000 via Facebook, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Facebook account password, please click here.
If your email address is registered with us, we will email you instructions to reset your password.
If you think you should have received this email but it has not arrived, please check your spam filters and/or contact for further assistance.
Comments on this article Comments (0)