swCRTdesign: An R Package for Stepped Wedge Trial Design and Analysis

Emily C Voldal,Navneet R Hakhu,Fan Xia,Patrick J Heagerty,James P Hughes,Emily C. Voldal,Navneet R. Hakhu,Patrick J. Heagerty,James P. Hughes
DOI: https://doi.org/10.1016/j.cmpb.2020.105514
IF: 6.1
2020-11-01
Computer Methods and Programs in Biomedicine
Abstract:<h3 class="u-h4 u-margin-m-top u-margin-xs-bottom">Background and objective</h3><p>Stepped wedge trials (SWTs) are a type of cluster-randomized trial that are commonly used to evaluate health care interventions. Most SWT-related software packages have restrictive assumptions about the study design and correlation structure of the data. The objective of this paper is to present a package and corresponding web-based graphical user interface (GUI) that provide researchers with another, more flexible option for SWT design and analysis.</p><h3 class="u-h4 u-margin-m-top u-margin-xs-bottom">Methods</h3><p>We developed an R package swCRTdesign ('stepped wedge Cluster Randomized Trial design'), which uses a random effects model to account for correlation in the data induced by a SWT design. Possible sources of correlation include clusters, time within clusters, and treatment within clusters.</p><h3 class="u-h4 u-margin-m-top u-margin-xs-bottom">Results</h3><p>swCRTdesign allows a user to calculate power, simulate SWT data to streamline simulation studies (e.g. to estimate power), and create descriptive summaries and plots. Additionally, a GUI, developed using shiny, is available to calculate power and create power curves and design plots.</p><h3 class="u-h4 u-margin-m-top u-margin-xs-bottom">Conclusions</h3><p>The swCRTdesign package accommodates a wide variety of SWT designs, and makes it easy to account for some sources of correlation which are not found in other packages. The user-friendly web-based GUI makes some swCRTdesign features accessible to researchers not familiar with R. These two resources will make appropriately complex SWT calculations more accessible to scientists from a wide variety of backgrounds.</p>
engineering, biomedical,computer science, interdisciplinary applications,medical informatics, theory & methods
What problem does this paper attempt to address?