A comparison of computational algorithms for the Bayesian analysis of clinical trials
- PMID: 38752434
- PMCID: PMC11530324
- DOI: 10.1177/17407745241247334
A comparison of computational algorithms for the Bayesian analysis of clinical trials
Abstract
Background: Clinical trials are increasingly using Bayesian methods for their design and analysis. Inference in Bayesian trials typically uses simulation-based approaches such as Markov Chain Monte Carlo methods. Markov Chain Monte Carlo has high computational cost and can be complex to implement. The Integrated Nested Laplace Approximations algorithm provides approximate Bayesian inference without the need for computationally complex simulations, making it more efficient than Markov Chain Monte Carlo. The practical properties of Integrated Nested Laplace Approximations compared to Markov Chain Monte Carlo have not been considered for clinical trials. Using data from a published clinical trial, we aim to investigate whether Integrated Nested Laplace Approximations is a feasible and accurate alternative to Markov Chain Monte Carlo and provide practical guidance for trialists interested in Bayesian trial design.
Methods: Data from an international Bayesian multi-platform adaptive trial that compared therapeutic-dose anticoagulation with heparin to usual care in non-critically ill patients hospitalized for COVID-19 were used to fit Bayesian hierarchical generalized mixed models. Integrated Nested Laplace Approximations was compared to two Markov Chain Monte Carlo algorithms, implemented in the software JAGS and stan, using packages available in the statistical software R. Seven outcomes were analysed: organ-support free days (an ordinal outcome), five binary outcomes related to survival and length of hospital stay, and a time-to-event outcome. The posterior distributions for the treatment and sex effects and the variances for the hierarchical effects of age, site and time period were obtained. We summarized these posteriors by calculating the mean, standard deviations and the 95% equitailed credible intervals and presenting the results graphically. The computation time for each algorithm was recorded.
Results: The average overlap of the 95% credible interval for the treatment and sex effects estimated using Integrated Nested Laplace Approximations was 96% and 97.6% compared with stan, respectively. The graphical posterior densities for these effects overlapped for all three algorithms. The posterior mean for the variance of the hierarchical effects of age, site and time estimated using Integrated Nested Laplace Approximations are within the 95% credible interval estimated using Markov Chain Monte Carlo but the average overlap of the credible interval is lower, 77%, 85.6% and 91.3%, respectively, for Integrated Nested Laplace Approximations compared to stan. Integrated Nested Laplace Approximations and stan were easily implemented in clear, well-established packages in R, while JAGS required the direct specification of the model. Integrated Nested Laplace Approximations was between 85 and 269 times faster than stan and 26 and 1852 times faster than JAGS.
Conclusion: Integrated Nested Laplace Approximations could reduce the computational complexity of Bayesian analysis in clinical trials as it is easy to implement in R, substantially faster than Markov Chain Monte Carlo methods implemented in JAGS and stan, and provides near identical approximations to the posterior distributions for the treatment effect. Integrated Nested Laplace Approximations was less accurate when estimating the posterior distribution for the variance of hierarchical effects, particularly for the proportional odds model, and future work should determine if the Integrated Nested Laplace Approximations algorithm can be adjusted to improve this estimation.
Keywords: Bayesian clinical trial analysis; Integrated Nested Laplace Approximations; JAGS; Markov chain Monte Carlo; logistic regression; proportional odds model; stan; survival analysis.
Conflict of interest statement
Declaration of conflicting interestsThe author(s) declared the following potential conflicts of interest with respect to the research, authorship, and/or publication of this article: JSB is on the advisory board Advisory for Amgen and Janssen outside the submitted work. LAC holds a Heart and Stroke Foundation of Canada National New Investigator Award, and a Tier 2 research Chair in Thrombosis and Anticoagulation Safety from the University of Ottawa. LZK is a consultant for Cerus, Gamma Diagnostics and the University of Maryland. MDN is served as the Co-Chair of the ACTIV4a trial.
Figures



Similar articles
-
Designing a Bayesian adaptive clinical trial to evaluate novel mechanical ventilation strategies in acute respiratory failure using integrated nested Laplace approximations.Contemp Clin Trials. 2024 Jul;142:107560. doi: 10.1016/j.cct.2024.107560. Epub 2024 May 10. Contemp Clin Trials. 2024. PMID: 38735571
-
Network meta-analysis with integrated nested Laplace approximations.Biom J. 2015 Nov;57(6):1038-50. doi: 10.1002/bimj.201400163. Epub 2015 Sep 11. Biom J. 2015. PMID: 26360927
-
Laplacian-P-splines for Bayesian inference in the mixture cure model.Stat Med. 2022 Jun 30;41(14):2602-2626. doi: 10.1002/sim.9373. Epub 2022 Mar 14. Stat Med. 2022. PMID: 35699121 Free PMC article.
-
Scalable Bayesian phylogenetics.Philos Trans R Soc Lond B Biol Sci. 2022 Oct 10;377(1861):20210242. doi: 10.1098/rstb.2021.0242. Epub 2022 Aug 22. Philos Trans R Soc Lond B Biol Sci. 2022. PMID: 35989603 Free PMC article. Review.
-
A New Statistical Method for Designing Stepped-Wedge Cluster Trials [Internet].Washington (DC): Patient-Centered Outcomes Research Institute (PCORI); 2022 May. Washington (DC): Patient-Centered Outcomes Research Institute (PCORI); 2022 May. PMID: 39666843 Free Books & Documents. Review.
Cited by
-
Trends analysis of the global burden of hypertensive heart disease from 1990 to 2021: a population-based study.BMC Public Health. 2025 Jul 2;25(1):2233. doi: 10.1186/s12889-025-23389-6. BMC Public Health. 2025. PMID: 40604684 Free PMC article.
-
Meta-Analysis of Dietary Interventions for Enteric Methane Mitigation in Ruminants Through Methodological Advancements and Implementation Pathways.Vet Sci. 2025 Apr 16;12(4):372. doi: 10.3390/vetsci12040372. Vet Sci. 2025. PMID: 40284874 Free PMC article.
References
-
- Berry DA. Bayesian clinical trials. Nat Rev Drug Discov 2006; 5(1): 27–36. - PubMed