Method document
Achieved power for a stepped-wedge trial (proportions)
Calculates the power of a cross-sectional stepped-wedge cluster trial with a binary outcome, from the number of clusters, steps, cluster size, intracluster correlation, and the two proportions.
https://statwisely.com/methods/power-stepped-wedge-proportions/
When to use it
- Assess a rollout with a yes/no outcome in which every cluster starts on control and crosses to the intervention at a randomised time.
Not for
- The binary outcome is analysed on the risk-difference scale with a normal approximation; very small or large proportions need more care.
Notation
- Clusters, a multiple of the number of steps.
- Steps; there are S + 1 periods.
- Measurements per cluster in each period.
- Intracluster correlation.
- Total variance of one measurement.
- Proportions under intervention and control; σ² = p̄(1 − p̄).
Formulas
GLS variance of the treatment effect
Each period has its own term, so the secular trend is adjusted for rather than assumed away [1, 2].
Normal power
With few clusters this can overstate power; the planned small-sample analysis should inform the design.
Parameters
Number of clusters
Values: A multiple of the steps
Clusters split equally across the steps, one group switching at each.
Steps
Values: Integer, at least 1
Times at which a group of clusters crosses to the intervention.
Measurements per cluster per period
Values: Positive
A fresh sample in each period (cross-sectional design).
Intracluster correlation
Values: Between 0 and 1
From earlier cluster data on the same outcome.
Proportion under intervention
Values: Between 0 and 1
Expected proportion once a cluster has crossed over.
Proportion under control
Values: Between 0 and 1
Expected proportion before crossover.
Significance level
Values: Between 0 and 1
The type I error rate for the specified test.
Test direction
Values: 1 or 2
One-sided tests use the upper rejection tail. Two-sided tests split α equally between both tails.
Assumptions
- A fresh sample in every period, equal cluster-period sizes, and a constant intracluster correlation over time.
- One-sided tests use the upper rejection tail. Two-sided tests split α equally between both tails.
Worked examples
A worked input set
With 8 clusters over 4 steps, 20 measurements per cluster-period, ρ = 0.05, and proportions of 0.30 and 0.45 at α = 0.05: σ² = 0.375 × 0.625 = 0.234.
Sample size: 8
Open this example in the calculatorValidation
- At the size the stepped-wedge calculator returns, this power reaches that calculator’s target, and one fewer falls short; it is checked against an independent calculation in R.
How to cite
StatWisely. Achieved power for a stepped-wedge trial (proportions). Method document, engine version 1.0.0, reviewed 2026-10-03. https://statwisely.com/methods/power-stepped-wedge-proportions/
Cite the original references for the formulas your design uses as well.
References
- 1.Hussey MA, Hughes JP. Design and analysis of stepped wedge cluster randomized trials. Contemporary Clinical Trials. 2007;28(2):182–191.
- 2.Hemming K, Haines TP, Chilton PJ, Girling AJ, Lilford RJ. The stepped wedge cluster randomised trial: rationale, design, analysis, and reporting. BMJ. 2015;350:h391.