Cargando…

BayesGmed: An R-package for Bayesian causal mediation analysis

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...

Descripción completa

Detalles Bibliográficos
Autores principales: Yimer, Belay B., Lunt, Mark, Beasley, Marcus, Macfarlane, Gary J., McBeth, John
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Public Library of Science 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10266612/
https://www.ncbi.nlm.nih.gov/pubmed/37314996
http://dx.doi.org/10.1371/journal.pone.0287037
_version_ 1785058774934880256
author Yimer, Belay B.
Lunt, Mark
Beasley, Marcus
Macfarlane, Gary J.
McBeth, John
author_facet Yimer, Belay B.
Lunt, Mark
Beasley, Marcus
Macfarlane, Gary J.
McBeth, John
author_sort Yimer, Belay B.
collection PubMed
description 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.
format Online
Article
Text
id pubmed-10266612
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher Public Library of Science
record_format MEDLINE/PubMed
spelling pubmed-102666122023-06-15 BayesGmed: An R-package for Bayesian causal mediation analysis Yimer, Belay B. Lunt, Mark Beasley, Marcus Macfarlane, Gary J. McBeth, John PLoS One Research Article 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. Public Library of Science 2023-06-14 /pmc/articles/PMC10266612/ /pubmed/37314996 http://dx.doi.org/10.1371/journal.pone.0287037 Text en © 2023 Yimer et al https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
spellingShingle Research Article
Yimer, Belay B.
Lunt, Mark
Beasley, Marcus
Macfarlane, Gary J.
McBeth, John
BayesGmed: An R-package for Bayesian causal mediation analysis
title BayesGmed: An R-package for Bayesian causal mediation analysis
title_full BayesGmed: An R-package for Bayesian causal mediation analysis
title_fullStr BayesGmed: An R-package for Bayesian causal mediation analysis
title_full_unstemmed BayesGmed: An R-package for Bayesian causal mediation analysis
title_short BayesGmed: An R-package for Bayesian causal mediation analysis
title_sort bayesgmed: an r-package for bayesian causal mediation analysis
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10266612/
https://www.ncbi.nlm.nih.gov/pubmed/37314996
http://dx.doi.org/10.1371/journal.pone.0287037
work_keys_str_mv AT yimerbelayb bayesgmedanrpackageforbayesiancausalmediationanalysis
AT luntmark bayesgmedanrpackageforbayesiancausalmediationanalysis
AT beasleymarcus bayesgmedanrpackageforbayesiancausalmediationanalysis
AT macfarlanegaryj bayesgmedanrpackageforbayesiancausalmediationanalysis
AT mcbethjohn bayesgmedanrpackageforbayesiancausalmediationanalysis