• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

swdpwr:用于阶梯楔形整群随机试验功效计算的SAS宏和R包。

swdpwr: A SAS macro and an R package for power calculations in stepped wedge cluster randomized trials.

作者信息

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.

DOI:10.1016/j.cmpb.2021.106522
PMID:34818620
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC8665077/
Abstract

BACKGROUND AND OBJECTIVE

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.

METHODS

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.

RESULTS

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.

CONCLUSIONS

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.

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/e2f3/8665077/f1a9974bc35f/nihms-1756196-f0001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/e2f3/8665077/f1a9974bc35f/nihms-1756196-f0001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/e2f3/8665077/f1a9974bc35f/nihms-1756196-f0001.jpg
摘要

背景与目的

阶梯楔形整群随机试验是一种在包括公共卫生干预评估、临床和卫生服务研究等广泛场景中越来越常用的研究设计。以往介绍阶梯楔形设计功效计算方法的研究主要集中在连续型结局上,对于二分类结局则依赖正态近似法。这些二分类结局的近似法可能准确,也可能不准确,这取决于二项分布的正态近似是否合理。尽管并不总是准确,但此类近似法已广泛用于二分类结局。为改进二分类结局的近似法,最近发表了两种针对二分类结局的阶梯楔形设计(SWD)新方法。然而,这些新方法尚未在公开可用的软件中实现。本文的目的是介绍适用于各种场景下连续型和二分类结局的阶梯楔形设计的功效计算软件。

方法

我们开发了一个SAS宏%swdpwr、一个R包swdpwr以及一个用于阶梯楔形设计功效计算的Shiny应用程序。该软件涵盖了不同的场景,包括横断面设计和队列设计、二分类和连续型结局、边际模型和条件模型、三种连接函数,以及在可交换、嵌套可交换和区组可交换相关结构下有无时间效应的情况。每个序列中不等数量的整群也是允许的。封闭队列的功效计算采用区组可交换的群内相关结构,该结构考虑了三种群内(组内)相关性:周期内相关性、周期间相关性和个体内相关性。横断面队列仅允许由周期内和周期间群内相关性定义的嵌套可交换或可交换相关结构。我们的软件假设为完全设计且群 - 周期大小相等。虽然这些方法适用于周期内群内相关系数(ICC)恒定以及周期内和周期间ICC不同的相关结构,但不允许周期间ICC衰减。

结果

swdpwr为支持研究者进行阶梯楔形整群随机试验的设计和分析提供了一个有效的工具。swdpwr解决了新提出的方法与其应用之间的差距,以便在阶梯楔形设计中获得更准确的功效计算。

结论

为了使横断面设计和封闭队列设计下针对连续型和二分类结局的计算高效(且基于非模拟)的功效方法更容易获取,我们开发了这款用户友好型软件。swdpwr在SAS和R两个平台上实现,满足了不同背景研究者的需求。此外,Shiny应用程序使无法使用SAS或R的用户能够直接在线实现这些方法。

相似文献

1
swdpwr: A SAS macro and an R package for power calculations in stepped wedge cluster randomized trials.swdpwr:用于阶梯楔形整群随机试验功效计算的SAS宏和R包。
Comput Methods Programs Biomed. 2022 Jan;213:106522. doi: 10.1016/j.cmpb.2021.106522. Epub 2021 Nov 12.
2
3
Power calculation for analyses of cross-sectional stepped-wedge cluster randomized trials with binary outcomes via generalized estimating equations.利用广义估计方程对二分类结局的截面式分段-整群随机试验进行分析时的功效计算。
Stat Med. 2021 Dec 20;40(29):6674-6688. doi: 10.1002/sim.9205. Epub 2021 Sep 23.
4
Power and sample size calculations for cluster randomized trials with binary outcomes when intracluster correlation coefficients vary by treatment arm.当各处理组间的组内相关系数不同时,二分类结局的群组随机试验的功效和样本量计算。
Clin Trials. 2022 Feb;19(1):42-51. doi: 10.1177/17407745211059845. Epub 2021 Dec 8.
5
CRTpowerdist: An R package to calculate attained power and construct the power distribution for cross-sectional stepped-wedge and parallel cluster randomized trials.CRTpowerdist:一个用于计算获得的功效并为横截面阶乘楔形和平行群组随机试验构建功效分布的 R 包。
Comput Methods Programs Biomed. 2021 Sep;208:106255. doi: 10.1016/j.cmpb.2021.106255. Epub 2021 Jun 25.
6
Sample size determination for GEE analyses of stepped wedge cluster randomized trials.阶梯楔形整群随机试验广义估计方程分析的样本量确定
Biometrics. 2018 Dec;74(4):1450-1458. doi: 10.1111/biom.12918. Epub 2018 Jun 19.
7
Sample size calculation for stepped-wedge cluster-randomized trials with more than two levels of clustering.两水平以上整群随机试验的样本量计算。
Clin Trials. 2019 Jun;16(3):225-236. doi: 10.1177/1740774519829053. Epub 2019 Apr 24.
8
Relative efficiency of unequal cluster sizes in stepped wedge and other trial designs under longitudinal or cross-sectional sampling.纵向或横截面抽样下不等群集大小在阶梯楔形和其他试验设计中的相对效率。
Stat Med. 2018 Dec 30;37(30):4652-4664. doi: 10.1002/sim.7943. Epub 2018 Sep 12.
9
The impact of varying cluster size in cross-sectional stepped-wedge cluster randomised trials.不同聚类大小对横向阶段-推移群组随机试验的影响。
BMC Med Res Methodol. 2019 Jun 14;19(1):123. doi: 10.1186/s12874-019-0760-6.
10
Sample size considerations for stepped wedge designs with subclusters.具有亚群组的阶乘楔形设计的样本量考虑。
Biometrics. 2023 Mar;79(1):98-112. doi: 10.1111/biom.13596. Epub 2021 Nov 16.

引用本文的文献

1
Implementation strategies to integrate HIV and hypertension care in Kampala and Wakiso districts, Uganda: study protocol for a stepped wedge cluster randomized trial (PULESA-Uganda).乌干达坎帕拉和瓦基索区整合艾滋病毒与高血压护理的实施策略:阶梯式楔形整群随机试验(PULESA-乌干达)的研究方案
BMC Health Serv Res. 2025 Aug 11;25(1):1060. doi: 10.1186/s12913-025-13281-9.
2
Estimates of intra-cluster correlation coefficients from 2018 USA Medicare data to inform the design of cluster randomized trials in Alzheimer's and related dementias.利用 2018 年美国医疗保险数据估算组内相关系数,为阿尔茨海默病和相关痴呆症的群组随机试验设计提供信息。
Trials. 2024 Oct 30;25(1):732. doi: 10.1186/s13063-024-08404-2.
3

本文引用的文献

1
Impact of unequal cluster sizes for GEE analyses of stepped wedge cluster randomized trials with binary outcomes.不均衡群组大小对二分类结局的分步楔形群组随机试验的广义估计方程分析的影响。
Biom J. 2022 Mar;64(3):419-439. doi: 10.1002/bimj.202100112. Epub 2021 Oct 1.
2
CRTpowerdist: An R package to calculate attained power and construct the power distribution for cross-sectional stepped-wedge and parallel cluster randomized trials.CRTpowerdist:一个用于计算获得的功效并为横截面阶乘楔形和平行群组随机试验构建功效分布的 R 包。
Comput Methods Programs Biomed. 2021 Sep;208:106255. doi: 10.1016/j.cmpb.2021.106255. Epub 2021 Jun 25.
3
Maintaining the validity of inference from linear mixed models in stepped-wedge cluster randomized trials under misspecified random-effects structures.
在随机效应结构指定不当的阶段式楔形群组随机试验中,维持线性混合模型推论的有效性。
Stat Methods Med Res. 2024 Sep;33(9):1497-1516. doi: 10.1177/09622802241248382. Epub 2024 May 29.
4
Challenges in Evaluating a Community-Level Intervention to Address Root Causes of Youth Violence.评估以解决青年暴力根本原因的社区层面干预措施所面临的挑战。
Prev Sci. 2024 Jul;25(5):774-785. doi: 10.1007/s11121-024-01678-7. Epub 2024 May 11.
5
Reconsidering stepped wedge cluster randomized trial designs with implementation periods: Fewer sequences or the parallel-group design with baseline and implementation periods are potentially more efficient.重新考虑具有实施阶段的阶梯型楔形集群随机试验设计:减少序列或具有基线和实施阶段的平行组设计可能更有效。
Clin Trials. 2024 Dec;21(6):710-722. doi: 10.1177/17407745241244790. Epub 2024 Apr 22.
6
Power calculation for detecting interaction effect in cross-sectional stepped-wedge cluster randomized trials: an important tool for disparity research.横断面阶梯楔形整群随机试验中检测交互作用效应的功效计算:差异研究的重要工具。
BMC Med Res Methodol. 2024 Mar 2;24(1):57. doi: 10.1186/s12874-024-02162-0.
7
Estimating intra-cluster correlation coefficients for planning longitudinal cluster randomized trials: a tutorial.估算纵向群组随机试验的群组内相关系数:教程。
Int J Epidemiol. 2023 Oct 5;52(5):1634-1647. doi: 10.1093/ije/dyad062.
8
power swgee: GEE-based power calculations in stepped wedge cluster randomized trials.功效计算:阶梯楔形整群随机试验中基于广义估计方程的功效计算
Stata J. 2022 Dec;22(4):811-841. doi: 10.1177/1536867x221140953. Epub 2023 Jan 5.
9
A general method for calculating power for GEE analysis of complete and incomplete stepped wedge cluster randomized trials.一种用于计算完全和不完全阶段式群组随机试验的 GEE 分析的功效的通用方法。
Stat Methods Med Res. 2023 Jan;32(1):71-87. doi: 10.1177/09622802221129861. Epub 2022 Oct 17.
10
Sample size calculators for planning stepped-wedge cluster randomized trials: a review and comparison.用于规划阶乘簇随机对照试验的样本量计算器:综述与比较。
Int J Epidemiol. 2022 Dec 13;51(6):2000-2013. doi: 10.1093/ije/dyac123.
Mixed-effects models for the design and analysis of stepped wedge cluster randomized trials: An overview.
混合效应模型在阶梯式楔形群随机临床试验设计和分析中的应用概述。
Stat Methods Med Res. 2021 Feb;30(2):612-639. doi: 10.1177/0962280220932962. Epub 2020 Jul 6.
4
A tutorial on sample size calculation for multiple-period cluster randomized parallel, cross-over and stepped-wedge trials using the Shiny CRT Calculator.使用 Shiny CRT Calculator 进行多周期群组随机平行、交叉和阶跃楔形试验的样本量计算教程。
Int J Epidemiol. 2020 Jun 1;49(3):979-995. doi: 10.1093/ije/dyz237.
5
Design and analysis considerations for cohort stepped wedge cluster randomized trials with a decay correlation structure.具有衰减相关结构的队列逐步楔形整群随机试验的设计与分析考量
Stat Med. 2020 Feb 20;39(4):438-455. doi: 10.1002/sim.8415. Epub 2019 Dec 4.
6
Introducing the new CONSORT extension for stepped-wedge cluster randomised trials.介绍用于阶梯楔形整群随机试验的新CONSORT扩展。
Trials. 2019 Jan 18;20(1):68. doi: 10.1186/s13063-018-3116-3.
7
A maximum likelihood approach to power calculations for stepped wedge designs of binary outcomes.最大似然法在二分类结局的阶乘楔形设计中的功效计算。
Biostatistics. 2020 Jan 1;21(1):102-121. doi: 10.1093/biostatistics/kxy031.
8
Sample size determination for GEE analyses of stepped wedge cluster randomized trials.阶梯楔形整群随机试验广义估计方程分析的样本量确定
Biometrics. 2018 Dec;74(4):1450-1458. doi: 10.1111/biom.12918. Epub 2018 Jun 19.
9
"Cross-sectional" stepped wedge designs always reduce the required sample size when there is no time effect.当不存在时间效应时,“横断面”阶梯楔形设计总能减少所需样本量。
J Clin Epidemiol. 2017 Mar;83:108-109. doi: 10.1016/j.jclinepi.2016.12.011. Epub 2017 Jan 16.
10
Institutionalizing postpartum intrauterine device (IUD) services in Sri Lanka, Tanzania, and Nepal: study protocol for a cluster-randomized stepped-wedge trial.在斯里兰卡、坦桑尼亚和尼泊尔将产后宫内节育器(IUD)服务制度化:一项整群随机阶梯式楔形试验的研究方案
BMC Pregnancy Childbirth. 2016 Nov 21;16(1):362. doi: 10.1186/s12884-016-1160-0.