临床试验贝叶斯分析的计算算法比较。
A comparison of computational algorithms for the Bayesian analysis of clinical trials.
机构信息
The Hospital for Sick Children, Toronto, ON, Canada.
New York University, New York, NY, USA.
出版信息
Clin Trials. 2024 Dec;21(6):689-700. doi: 10.1177/17407745241247334. Epub 2024 May 16.
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.
背景
临床试验越来越多地使用贝叶斯方法进行设计和分析。贝叶斯试验中的推断通常使用基于模拟的方法,如马尔可夫链蒙特卡罗方法。马尔可夫链蒙特卡罗方法计算成本高,实施复杂。集成嵌套拉普拉斯近似算法提供了无需复杂计算模拟的近似贝叶斯推断,比马尔可夫链蒙特卡罗方法更有效。对于临床试验,尚未考虑集成嵌套拉普拉斯近似算法相对于马尔可夫链蒙特卡罗方法的实际性质。使用已发表临床试验的数据,我们旨在研究集成嵌套拉普拉斯近似算法是否是马尔可夫链蒙特卡罗方法的可行且准确替代方法,并为对贝叶斯试验设计感兴趣的试验人员提供实用指南。
方法
使用来自国际贝叶斯多平台自适应试验的数据,该试验比较了 COVID-19 住院非危重症患者的治疗剂量抗凝与肝素治疗的效果,以拟合贝叶斯层次广义混合模型。使用 JAGS 和 stan 软件中的两种马尔可夫链蒙特卡罗算法,以及 R 统计软件中可用的软件包,比较了集成嵌套拉普拉斯近似算法。分析了七个结果:器官支持无天数(有序结果)、与生存和住院时间相关的五个二元结果,以及一个时间到事件结果。获得了治疗和性别效果的后验分布以及年龄、地点和时间段的分层效果的方差。我们通过计算平均值、标准差和 95%等置信区间来总结这些后验,并以图形方式呈现结果。记录了每种算法的计算时间。
结果
使用集成嵌套拉普拉斯近似算法估计的治疗和性别效果的 95%置信区间的平均重叠率分别为 96%和 97.6%,与 stan 相比。所有三种算法的这些效果的图形后密度重叠。使用集成嵌套拉普拉斯近似算法估计的年龄、地点和时间分层效果方差的后验均值在使用马尔可夫链蒙特卡罗算法估计的 95%置信区间内,但可信区间的平均重叠率较低,分别为 77%、85.6%和 91.3%,与 stan 相比,集成嵌套拉普拉斯近似算法。集成嵌套拉普拉斯近似算法和 stan 可以在 R 中易于实现清晰、成熟的软件包中轻松实现,而 JAGS 需要直接指定模型。集成嵌套拉普拉斯近似算法比 stan 快 85 到 269 倍,比 JAGS 快 26 到 1852 倍。
结论
集成嵌套拉普拉斯近似算法可以降低临床试验中贝叶斯分析的计算复杂性,因为它易于在 R 中实现,比 JAGS 和 stan 中的马尔可夫链蒙特卡罗方法快得多,并且为治疗效果的后验分布提供了几乎相同的近似值。当估计分层效果方差的后验分布时,特别是对于比例优势模型,集成嵌套拉普拉斯近似算法的准确性较低,未来的工作应确定是否可以调整集成嵌套拉普拉斯近似算法以提高这种估计。