Related Experiment Video
Updated: Jul 26, 2025

A Pathway Association Study Tool for GWAS Analyses of Metabolic Pathway Information
Published on: July 1, 2020
BayesGmed: An R-package for Bayesian causal mediation analysis
Belay B Yimer1, Mark Lunt1, Marcus Beasley2
1Centre for Epidemiology Versus Arthritis, University of Manchester, Manchester, United Kingdom.
This study introduces BayesGmed, a Bayesian approach for causal mediation analysis, offering a robust alternative to frequentist methods, especially for small sample sizes. The new R-package demonstrates its utility in analyzing chronic pain treatment, showing treatment effects persist despite non-significant mediated pathways.
Area of Science:
- Causal Inference
- Bayesian Statistics
- Health Services Research
Background:
- Causal mediation analysis has seen significant growth, but existing frequentist tools may lack robustness with small sample sizes.
- A Bayesian approach offers a more stable alternative for analyzing mediation effects.
Purpose of the Study:
- To introduce BayesGmed, an R-package for Bayesian causal mediation analysis using the Bayesian g-formula.
- To demonstrate the application of this new methodology in analyzing a randomized controlled trial for chronic pain.
Main Methods:
- Developed BayesGmed, an R-package implementing Bayesian causal mediation models.
- Applied the package to secondary data from the MUSICIAN study, a trial of remotely delivered cognitive behavioural therapy (tCBT).
- Utilized informative priors for probabilistic sensitivity analysis regarding causal identification assumptions.
Main Results:
- tCBT improved self-perceived health status compared to treatment as usual (TAU).
- Fear of movement, passive coping, and sleep problems were associated with lower odds of positive health change.
- BayesGmed indicated no statistically significant mediated effects, though results were comparable to existing R packages.
- Sensitivity analysis confirmed the persistence of direct and total effects of tCBT even with potential unmeasured confounding.
Conclusions:
- BayesGmed provides a valuable open-source tool for Bayesian causal mediation analysis.
- The study highlights the importance of considering Bayesian methods for robust mediation analysis, particularly in clinical research.
- The findings underscore the complex interplay of factors influencing treatment outcomes in chronic pain management.
More Related Videos
Related Concept Videos
Friedman Two-way Analysis of Variance by Ranks
Statistical Methods to Analyze Parametric Data: ANOVA
One-way ANOVA is applied when a single independent variable or factor is scrutinized. It compares...
Regression Analysis
In regression analysis, a regression equation is determined based on the line of best fit– a line that best fits the data points plotted in a graph. This line is also called the regression line. The algebraic equation for the regression line is called the regression equation. It is represented as:
Two-Way ANOVA
The two-way ANOVA analysis initially begins by stating the null hypothesis that there is an interaction effect between the two factors of a dataset. This effect can be visualized using line segments formed by joining the...
Statistical Hypothesis Testing
Statistical significance measures the probability that an observed result occurred by chance. If this probability, known as...
One-Way ANOVA

