Description
Power Calculation for Stepped Wedge Designs
Description
Tools for power and sample size calculation as well as design diagnostics for longitudinal mixed model settings, with a focus on stepped wedge designs. All calculations are oracle estimates i.e. assume random effect variances to be known (or guessed) in advance. The method is introduced in Hussey and Hughes (2007) <doi:10.1016/j.cct.2006.05.007>, extensions are discussed in Li et al. (2020) <doi:10.1177/0962280220932962>.
README.md
SteppedPower
- Power Calculation for Stepped Wedge Designs
SteppedPower offers tools for power and sample size calculation as well as design diagnostics for longitudinal mixed model settings, with a focus on stepped wedge designs. All calculations are oracle estimates i.e. assume random effect variances to be known (or guessed) in advance.
Installation
Install from CRAN with install.packages("SteppedPower")
. Current version on CRAN is 0.3.2.
To install the latest stable version typedevtools::install_github("PMildenb/SteppedPower", build_vignettes=TRUE)
The development version with the most recent changes can be installed with devtools::install_github("PMildenb/SteppedPower", ref='devel', build_vignettes=TRUE)
Vignette
The vignette can be viewed with vignette("Getting_Started", package="SteppedPower")