Skip to content

swdpwr

Power Calculation for Stepped Wedge Cluster Randomized Trials

v1.11 · Oct 7, 2024 · GPL-3

Description

To meet the needs of statistical power calculation for stepped wedge cluster randomized trials, we developed this software. Different parameters can be specified by users for different scenarios, including: cross-sectional and cohort designs, binary and continuous outcomes, marginal (GEE) and conditional models (mixed effects model), three link functions (identity, log, logit links), with and without time effects (the default specification assumes no-time-effect) under exchangeable, nested exchangeable and block exchangeable correlation structures. Unequal numbers of clusters per sequence are also allowed. The methods included in this package: Zhou et al. (2020) <doi:10.1093/biostatistics/kxy031>, Li et al. (2018) <doi:10.1111/biom.12918>. Supplementary documents can be found at: <https://ysph.yale.edu/cmips/research/software/study-design-power-calculation/swdpwr/>. The Shiny app for swdpwr can be accessed at: <https://jiachenchen322.shinyapps.io/swdpwr_shinyapp/>. The package also includes functions that perform calculations for the intra-cluster correlation coefficients based on the random effects variances as input variables for continuous and binary outcomes, respectively.

Downloads

297

Last 30 days

13676th

815

Last 90 days

3K

Last year

Trend: +4.2% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies spatstat.random swdpwr

Version History

new 1.11 Mar 10, 2026
updated 1.11 ← 1.10 diff Oct 7, 2024
updated 1.10 ← 1.9 diff Sep 30, 2024
updated 1.9 ← 1.8 diff Sep 27, 2023
updated 1.8 ← 1.7 diff Sep 7, 2023
updated 1.7 ← 1.6 diff Feb 19, 2022
updated 1.6 ← 1.5 diff Oct 10, 2021
updated 1.5 ← 1.4 diff May 15, 2021
updated 1.4 ← 1.3 diff Nov 6, 2020
updated 1.3 ← 1.1 diff Oct 30, 2020
new 1.1 Oct 25, 2020