swCRTdesign: An RPackage 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, Fan Xia, Patrick J Heagerty, James P Hughes

Abstract

Background and objective: 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.

Methods: We developed an Rpackage 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.

Results: 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.

Conclusions: 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.

Keywords: Cluster randomized trial; R; Shiny; Stepped wedge trial.

Conflict of interest statement

Declaration of Competing Interest The authors have declared no conflict of interest.

Copyright © 2020 Elsevier B.V. All rights reserved.

Figures

Figure 1:
Figure 1:
The design of the EPT trial with 4 sequences in which all sequences start in the control group. In each sequence, there are 6 independent clusters, separated by dotted lines.
Figure 2:
Figure 2:
Plot created using swPlot for the Gaussian example.
Figure 3:
Figure 3:
Power calculations for the Gaussian example, done in the web-based GUI. Inputs for all the arguments were entered using the sliders in the left-hand column. The range and appearance of the plot were changed in the "Customize plots" tab.

References

    1. Barker D, McElduff P, D’Este C, Campbell M (2016). "Stepped Wedge Cluster Randomised Trials: A Review of the Statistical Methodology Used and Available." BioMed Central Medical Research Methodology, 16(69). doi:10.1186/s12874-016-0176-5.
    1. Hughes JP, Granston TS, Heagerty PJ (2015). "Current Issues in the Design and Analysis of Stepped Wedge Trials." Contemporary Clinical Trials, 45, 55–60. doi:10.1016/j.cct.2015.07.006.
    1. R Core Team (2019). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. . 29 December 2019.
    1. Hughes J, Hakhu NR, Voldal E (2019). swCRTdesign: Stepped Wedge Cluster Randomized Trial (SW CRT) Design. R package version 3.1, . 29 December 2019.
    1. Golden MR, Kerani RP, Stenger M, Hughes JP, Aubin M, Malinski C, Holmes KK (2015). "Uptake and Population-Level Impact of Expedited Partner Therapy (EPT) on Chlamydia trachomatis and Neisseria gonorrhoeae: The Washington State Community-Level Randomized Trial of EPT." Public Library of Science Medicine, 12(1). doi:10.1371/journal.pmed.1001777.
    1. Hussey MA, Hughes JP (2007). "Design and Analysis of Stepped Wedge Cluster Randomized Trials." Contemporary Clinical Trials, 28, 182–191. doi:10.1016/j.cct.2006.05.007.
    1. Baio G, Copas A, Ambler G, Hargreaves J, Beard E, Omar RZ (2015). "Sample Size Calculation for a Stepped Wedge Trial." Trials, 16(354). doi:10.1186/s13063-015-0840-9.
    1. Woertman W, de Hoop E, Moerbeek M, Zuidema S, Gerritsen D, Teerenstra S (2013). "Stepped Wedge Designs Could Reduce the Required Sample Size in Cluster Randomized Trials." Journal of Clinical Epidemiology, 66(7), 752–758. doi:10.1016/j.jclinepi.2013.01.009.
    1. Trutschel D, Treutler H (2017). samplingDataCRT: Sampling Data Within Different Study Designs for Cluster Randomized Trials. R package version 1.0, . 29 December 2019.
    1. Baio G, Leech R (2019). SWSamp. R package version 0.3.1, . 29 December 2019.
    1. Hemming K, Kasza J, Hooper R, Forbes A, Taljaard M (under review). "A Tutorial on Sample Size Calculation for Multiple-Period Cluster Randomised Parallel, Cross-Over, and Stepped Wedge Trials Using the shiny CRT Calculator." Journal of Clinical Epidemiology.
    1. Hooper R, Teerenstra S, de Hoop E, Eldridge S (2016). "Sample Size Calculation for Stepped Wedge and Other Longitudinal Cluster Randomised Trials." Statistics in Medicine, 35, 4718–4728. doi:10.1002/sim.7028.
    1. Hemming K, Taljaard M, McKenzie JE, Hooper R, Copas A, Thompson JA, Dixon-Woods M, Aldcroft A, Doussau A, Grayling M, Kristunas C, Goldstein CE, Campbell MK, Girling A, Eldridge S, Campbell MJ, Lilford RJ, Weijer C, Forbes AB, Grimshaw JM (2018). "Reporting of Stepped Wedge Cluster Randomised Trials: Extension of the CONSORT 2010 Statement with Explanation and Elaboration." British Medical Journal, 363(k1614). doi: 10.1136/bmj.k1614.
    1. Chang W, Cheng J, Allaire J, Xie Y, McPherson J (2019). shiny: Web Application Framework for R. R package version 1.3.2, . 29 December 2019.
    1. Wickham H (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. ISBN 978-3-319-24277-4. . 29 December 2019.

Source: PubMed

3
Abonnere