Chen Jiachen, Zhou Xin, Li Fan, Spiegelman Donna
Department of Biostatistics, Yale University School of Public Health, New Haven, CT 06511, United States; Department of Biostatistics, Boston Unversity School of Public Health, Boston, MA 02118, United States.
Department of Biostatistics, Yale University School of Public Health, New Haven, CT 06511, United States.
Comput Methods Programs Biomed. 2022 Jan;213:106522. doi: 10.1016/j.cmpb.2021.106522. Epub 2021 Nov 12.
The stepped wedge cluster randomized trial is a study design increasingly used in a wide variety of settings, including public health intervention evaluations, clinical and health service research. Previous studies presenting power calculation methods for stepped wedge designs have focused on continuous outcomes and relied on normal approximations for binary outcomes. These approximations for binary outcomes may or may not be accurate, depending on whether or not the normal approximation to the binomial distribution is reasonable. Although not always accurate, such approximation methods have been widely used for binary outcomes. To improve the approximations for binary outcomes, two new methods for stepped wedge designs (SWDs) of binary outcomes have recently been published. However, these new methods have not been implemented in publicly available software. The objective of this paper is to present power calculation software for SWDs in various settings for both continuous and binary outcomes.
We have developed a SAS macro %swdpwr, an R package swdpwr and a Shiny app for power calculations in SWDs. Different scenarios including cross-sectional and cohort designs, binary and continuous outcomes, marginal and conditional models, three link functions, with and without time effects under exchangeable, nested exchangeable and block exchangeable correlation structures are accommodated in this software. Unequal numbers of clusters per sequence are also allowed. Power calculations for a closed cohort employ a block exchangeable within-cluster correlation structure that accounts for three intracluster (intraclass) correlations: the within-period, between-period, and within-individual correlations. Cross-sectional cohorts allow for nested exchangeable or exchangeable correlation structures defined by the within-period and the between-period intracluster correlations only. Our software assumes a complete design and equal cluster-period sizes. While the methods accommodate correlation structures of constant within-period intracluster correlation coefficient (ICC) as well as a different within- and between-period ICC, it does not allow the between-period ICC to decay.
swdpwr provides an efficient tool to support investigators in the design and analysis of stepped wedge cluster randomized trials. swdpwr addresses the implementation gap between newly proposed methodology and their application to obtain more accurate power calculations in SWDs.
In an effort to make computationally efficient (and non-simulation-based) power methods under both the cross-sectional and closed-cohort designs for continuous and binary outcomes more accessible, we have developed this user-friendly software. swdpwr is implemented under two platforms: SAS and R, satisfying the needs of investigators from various backgrounds. Additionally, the Shiny app enables users who are not able to use SAS or R to implement these methods online straightforwardly.
阶梯楔形整群随机试验是一种在包括公共卫生干预评估、临床和卫生服务研究等广泛场景中越来越常用的研究设计。以往介绍阶梯楔形设计功效计算方法的研究主要集中在连续型结局上,对于二分类结局则依赖正态近似法。这些二分类结局的近似法可能准确,也可能不准确,这取决于二项分布的正态近似是否合理。尽管并不总是准确,但此类近似法已广泛用于二分类结局。为改进二分类结局的近似法,最近发表了两种针对二分类结局的阶梯楔形设计(SWD)新方法。然而,这些新方法尚未在公开可用的软件中实现。本文的目的是介绍适用于各种场景下连续型和二分类结局的阶梯楔形设计的功效计算软件。
我们开发了一个SAS宏%swdpwr、一个R包swdpwr以及一个用于阶梯楔形设计功效计算的Shiny应用程序。该软件涵盖了不同的场景,包括横断面设计和队列设计、二分类和连续型结局、边际模型和条件模型、三种连接函数,以及在可交换、嵌套可交换和区组可交换相关结构下有无时间效应的情况。每个序列中不等数量的整群也是允许的。封闭队列的功效计算采用区组可交换的群内相关结构,该结构考虑了三种群内(组内)相关性:周期内相关性、周期间相关性和个体内相关性。横断面队列仅允许由周期内和周期间群内相关性定义的嵌套可交换或可交换相关结构。我们的软件假设为完全设计且群 - 周期大小相等。虽然这些方法适用于周期内群内相关系数(ICC)恒定以及周期内和周期间ICC不同的相关结构,但不允许周期间ICC衰减。
swdpwr为支持研究者进行阶梯楔形整群随机试验的设计和分析提供了一个有效的工具。swdpwr解决了新提出的方法与其应用之间的差距,以便在阶梯楔形设计中获得更准确的功效计算。
为了使横断面设计和封闭队列设计下针对连续型和二分类结局的计算高效(且基于非模拟)的功效方法更容易获取,我们开发了这款用户友好型软件。swdpwr在SAS和R两个平台上实现,满足了不同背景研究者的需求。此外,Shiny应用程序使无法使用SAS或R的用户能够直接在线实现这些方法。