» Articles » PMID: 37314996

BayesGmed: An R-package for Bayesian Causal Mediation Analysis

Overview
Journal PLoS One
Date 2023 Jun 14
PMID 37314996
Authors
Affiliations
Soon will be listed here.
Abstract

Background: The past decade has seen an explosion of research in causal mediation analysis. However, most analytic tools developed so far rely on frequentist methods which may not be robust in the case of small sample sizes. In this paper, we propose a Bayesian approach for causal mediation analysis based on Bayesian g-formula, which will overcome the limitations of the frequentist methods.

Methods: We created BayesGmed, an R-package for fitting Bayesian mediation models in R. The application of the methodology (and software tool) is demonstrated by a secondary analysis of data collected as part of the MUSICIAN study, a randomised controlled trial of remotely delivered cognitive behavioural therapy (tCBT) for people with chronic pain. We tested the hypothesis that the effect of tCBT would be mediated by improvements in active coping, passive coping, fear of movement and sleep problems. We then demonstrate the use of informative priors to conduct probabilistic sensitivity analysis around violations of causal identification assumptions.

Result: The analysis of MUSICIAN data shows that tCBT has better-improved patients' self-perceived change in health status compared to treatment as usual (TAU). The adjusted log-odds of tCBT compared to TAU range from 1.491 (95% CI: 0.452-2.612) when adjusted for sleep problems to 2.264 (95% CI: 1.063-3.610) when adjusted for fear of movement. Higher scores of fear of movement (log-odds, -0.141 [95% CI: -0.245, -0.048]), passive coping (log-odds, -0.217 [95% CI: -0.351, -0.104]), and sleep problem (log-odds, -0.179 [95% CI: -0.291, -0.078]) leads to lower odds of a positive self-perceived change in health status. The result of BayesGmed, however, shows that none of the mediated effects are statistically significant. We compared BayesGmed with the mediation R- package, and the results were comparable. Finally, our sensitivity analysis using the BayesGmed tool shows that the direct and total effect of tCBT persists even for a large departure in the assumption of no unmeasured confounding.

Conclusion: This paper comprehensively overviews causal mediation analysis and provides an open-source software package to fit Bayesian causal mediation models.

Citing Articles

Mediation analysis in longitudinal study with high-dimensional methylation mediators.

Cui Y, Lin Q, Yuan X, Jiang F, Ma S, Yu Z Brief Bioinform. 2024; 25(6).

PMID: 39406521 PMC: 11479716. DOI: 10.1093/bib/bbae496.


The space between us: The effect of perceived threat on discomfort distance and perceived pleasantness of interpersonal vicarious touch.

Abra Y, Mirams L, Fairhurst M Heliyon. 2024; 10(16):e36487.

PMID: 39262966 PMC: 11388568. DOI: 10.1016/j.heliyon.2024.e36487.


Childhood obesity's effect on cognition and brain connectivity worsens with low family income.

Tomasi D, Volkow N JCI Insight. 2024; 9(16).

PMID: 38980723 PMC: 11343596. DOI: 10.1172/jci.insight.181690.


A new framework for exploratory network mediator analysis in omics data.

Cai Q, Fu Y, Lyu C, Wang Z, Rao S, Alvarez J Genome Res. 2024; 34(4):642-654.

PMID: 38719472 PMC: 11146592. DOI: 10.1101/gr.278684.123.

References
1.
Daniel R, De Stavola B, Cousens S, Vansteelandt S . Causal mediation analysis with multiple mediators. Biometrics. 2014; 71(1):1-14. PMC: 4402024. DOI: 10.1111/biom.12248. View

2.
Imai K, Keele L, Tingley D . A general approach to causal mediation analysis. Psychol Methods. 2010; 15(4):309-34. DOI: 10.1037/a0020761. View

3.
VanderWeele T, Vansteelandt S . Mediation Analysis with Multiple Mediators. Epidemiol Methods. 2015; 2(1):95-115. PMC: 4287269. DOI: 10.1515/em-2012-0010. View

4.
Miocevic M, MacKinnon D, Levy R . Power in Bayesian Mediation Analysis for Small Sample Research. Struct Equ Modeling. 2018; 24(5):666-683. PMC: 5898829. DOI: 10.1080/10705511.2017.1312407. View

5.
Baron R, Kenny D . The moderator-mediator variable distinction in social psychological research: conceptual, strategic, and statistical considerations. J Pers Soc Psychol. 1986; 51(6):1173-82. DOI: 10.1037//0022-3514.51.6.1173. View