Hostname: page-component-77f85d65b8-g4pgd Total loading time: 0 Render date: 2026-03-30T04:18:10.937Z Has data issue: false hasContentIssue false

A practical guide to adopting Bayesian analyses in clinical research

Published online by Cambridge University Press:  07 December 2023

Lauren B. Gunn-Sandell*
Affiliation:
Department of Biostatistics and Informatics, Colorado School of Public Health, Aurora, CO, USA Center for Innovative Design and Analysis, Colorado School of Public Health and University of Colorado School of Medicine, Aurora, CO, USA
Edward J. Bedrick
Affiliation:
Department of Epidemiology and Biostatistics, University of Arizona, Tuscon, AZ, USA
Jacob L. Hutchins
Affiliation:
Department of Anesthesiology, University of Minnesota, Minneapolis, MN, USA
Aaron A. Berg
Affiliation:
Department of Anesthesiology, University of Minnesota, Minneapolis, MN, USA
Alexander M. Kaizer
Affiliation:
Department of Biostatistics and Informatics, Colorado School of Public Health, Aurora, CO, USA Center for Innovative Design and Analysis, Colorado School of Public Health and University of Colorado School of Medicine, Aurora, CO, USA
Nichole E. Carlson
Affiliation:
Department of Biostatistics and Informatics, Colorado School of Public Health, Aurora, CO, USA Center for Innovative Design and Analysis, Colorado School of Public Health and University of Colorado School of Medicine, Aurora, CO, USA
*
Corresponding author: L. Gunn-Sandell, MPH; Email: lauren.gunn-sandell@cuanschutz.edu
Rights & Permissions [Opens in a new window]

Abstract

Background:

Bayesian statistical approaches are extensively used in new statistical methods but have not been adopted at the same rate in clinical and translational (C&T) research. The goal of this paper is to accelerate the transition of new methods into practice by improving the C&T researcher’s ability to gain confidence in interpreting and implementing Bayesian analyses.

Methods:

We developed a Bayesian data analysis plan and implemented that plan for a two-arm clinical trial comparing the effectiveness of a new opioid in reducing time to discharge from the post-operative anesthesia unit and nerve block usage in surgery. Through this application, we offer a brief tutorial on Bayesian methods and exhibit how to apply four Bayesian statistical packages from STATA, SAS, and RStan to conduct linear and logistic regression analyses in clinical research.

Results:

The analysis results in our application were robust to statistical package and consistent across a wide range of prior distributions. STATA was the most approachable package for linear regression but was more limited in the models that could be fitted and easily summarized. SAS and R offered more straightforward documentation and data management for the posteriors. They also offered direct programming of the likelihood making them more easily extendable to complex problems.

Conclusion:

Bayesian analysis is now accessible to a broad range of data analysts and should be considered in more C&T research analyses. This will allow C&T research teams the ability to adopt and interpret Bayesian methodology in more complex problems where Bayesian approaches are often needed.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press on behalf of The Association for Clinical and Translational Science
Figure 0

Table 1. Glossary of terms

Figure 1

Figure 1. Panel A). The four priors on the treatment effect in the linear regression. The black solid line is the vague prior and shows an even weight for the largest range of the values. The gray dashed line is the “pseudo” vague prior, which has more weight around zero over a fairly large range of treatment effect values (but does not cover the range of values consistent with distribution of the outcome and thus, informative for the intercept). The red medium dashed line is the skeptical prior with much more weight centered around small treatment effects and the blue dotted line is the optimistic prior with nearly all its weight on treatment effects less than zero. Panels B and C). The linear regression coefficient values of the treatment group of the prior (green solid line), likelihood (solid blue), and posterior (orange dashed). Panel B plots values from the vague prior scenario showing that this prior specification does not pull the coefficient from the likelihood, as the two density curves are nearly identical. Panel C plots the informative prior scenario showing that an informative prior can influence the posterior from the likelihood, and the posterior is a combination of the prior and likelihood curves.

Figure 2

Figure 2. Diagnostic plots for various scenarios. The left panel indicates convergence is likely and the right where convergence is less likely and the MCMC algorithm is modified. The top figure in each panel is a trace plot. The bottom-left figure is an autocorrelation plot, and the bottom-right figure is a posterior density plot. These were generated by SAS PROC MCMC. Similar graphics are available for the other software.

Figure 3

Table 2. Statistical components to include in a Bayesian data analysis plan

Figure 4

Table 3. Specified priors

Figure 5

Figure 3. A comparison of crude (panel A) and adjusted (panel B) treatment effects across different software programs. Circle is the MLE and 95% confidence interval. Triangle is the posterior mean and 95% HDP CrI. Logistic regression results are odds ratios. Linear regression vague prior ∼N (0, 10,000); logistic regression vague prior ∼N (0, 10); MLE = maximum likelihood estimate.

Figure 6

Figure 4. A comparison of posterior mean and 95% credible intervals (CrI) for the three software programs (R, SAS PROC MCMC, and STATA) for the crude linear regression (panel A) and crude logistic regression (panel B). Dashed reference lines reflect the parameter estimates generated from MLE frequentist models. The intercept parameter was specified with priors of ∼N (0, 10,000) [linear regression] and ∼N (0, 10) [logistic regression] within both skeptical and informative scenarios; otherwise, the intercept prior was specified the same as the main effect.

Supplementary material: File

Gunn-Sandell et al. supplementary material
Download undefined(File)
File 7.9 MB