TriaLab Power Studio · Method

Two Poisson rates in a stepped-wedge cluster-randomised trial

Clustered & multilevel Validated 21 published examples

Sizes a cross-sectional stepped-wedge trial with a count outcome by Hussey & Hughes’s variance of the treatment effect, the variance of one observation taken from the rates, and the between-cluster variability as an intracluster correlation or a coefficient of variation. Solves for the clusters or the exposure per cluster per period.

Also known as: stepped wedge rates, stepped-wedge count outcome, Hemming and Girling, harms per patient-day.

Maturity

Validated: 21 published examples from 2 independent publications (Baio et al. 2015; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — A confidence interval for the treatment effect is defined — it is the same variance — but no source on disk sizes a stepped-wedge trial to one.
  • Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
  • Duration: not offered — The periods are a design parameter, not a calendar axis to solve along.

Size axes:

  • Clusters (K) (clusters), Count
  • Exposure per cluster per period (m: participants or person-time) (participants_per_cluster_period), Count

Inputs

Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.

Common to every method

  • Significance level (alpha) (alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention.
  • Target power (power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.

The method’s own

  • Control rate (λ₂) (rate_control): a number, above 0; default 0.021 The event rate under control, per unit of the exposure the per-period size counts — per patient-day if the size is patient-days.
  • Difference to detect (λ₁ − λ₂) (difference): a number, any finite number; default -0.00525 The treatment rate minus the control rate.
  • Treatment rate (λ₁) (rate_treatment): a number, above 0 The event rate under treatment.
  • Rate ratio (λ₁/λ₂) (ratio): a number, above 0; default 0.75 The treatment rate as a multiple of the control’s; 0.75 is a 25% reduction.
  • Variance of one observation (variance): a choice; default sqrt_average Which rate the Poisson variance is taken as. Hemming & Girling and Baio et al. use the squared average of the square roots.
    • sqrt_average ((√λ₁ + √λ₂)/2)²: PASS’s Method 3, Hemming & Girling’s and Baio et al.’s.
    • null Control rate, λ₂: PASS’s Method 1.
    • group_average Average rate, (λ₁ + λ₂)/2: PASS’s Method 2.
  • Intracluster correlation (ρ) (icc): a number, at least 0 and below 1; default 0.05 The share of the outcome’s variance that sits between clusters, τ²/(τ² + σ_w²). Take it from a published table for the outcome and setting.
  • Coefficient of variation of the outcome between clusters (τ/μ₂) (outcome_cov): a number, above 0 The between-cluster standard deviation of the cluster means divided by the control mean — Hussey & Hughes’s spelling for a proportion or a rate. The between-cluster variance is τ² = (COV · μ₂)².
  • The variance is (variance_is): a choice; default total Whether the variance computed from the rates is the total variance σ_y² = τ² + σ_w², from which the between-cluster part is τ² = ρσ_y², or the within-cluster variance σ_w², from which τ² = ρσ_w²/(1 − ρ). PASS offers both; Hemming & Taljaard’s examples enter the total, Hussey & Hughes’s the within.
    • total The total variance: τ² = ρσ², σ_w² = σ² − τ².
    • within The within-cluster variance: σ_w² = σ², τ² = ρσ²/(1 − ρ).
  • Number of steps (S) (steps): a whole number, at least 1 and at most 20; default 4 How many times clusters cross from control to treatment. The design has S + 1 periods, the first with every cluster under control; with K clusters, ⌊K/S⌋ cross at each step and the K − S⌊K/S⌋ left over are placed at the steps that give the most power (PASS’s balanced assignment, Hussey & Hughes’s variance).
  • Correlation over periods (correlation_structure): a choice; default exchangeable How strongly a cluster’s periods resemble one another. Hussey & Hughes assume every pair of periods is as correlated as two participants in the same period; a cluster autocorrelation below one lets the cluster drift between periods, and a decay lets the resemblance fade with the time between them. The last two need the cluster autocorrelation below.
    • exchangeable Exchangeable (Hussey & Hughes): One random cluster effect; the cluster autocorrelation is 1.
    • block_exchangeable Cluster autocorrelation (Hooper, Girling & Hemming): A cluster effect and a cluster-by-period effect: any two periods of a cluster correlated by the within-period ICC times π.
    • exponential_decay Exponential decay (Kasza et al.): Periods j apart correlated by the within-period ICC times r^j.
  • Cluster autocorrelation (π, or r per period) (cluster_autocorrelation): a number, above 0 and at most 1; default 0.8 Read unless the structure is exchangeable: the correlation between two population means of the same cluster in different periods (π), or, under the decay, in adjacent periods (r). Hemming et al. 2020 cite 0.8 to 0.9 as typical.
  • Participants over periods (cohort): a choice; default cross_sectional Whether each period samples fresh participants (repeated cross-sections) or follows the same participants from the first period to the last (a closed cohort, which needs the individual autocorrelation below).
    • cross_sectional Repeated cross-sections: New participants in every period.
    • closed_cohort Closed cohort (Hooper et al. 2016): The same m participants per cluster, measured in every period.
  • Individual autocorrelation (τ), closed cohort (individual_autocorrelation): a number, at least 0 and below 1; default 0.5 Read only for a closed cohort: the correlation between two measurements of the same participant in different periods.

Sizes entered when another axis is solved for

  • Clusters (K) (clusters): a whole number, at least 1 Clusters (K). Leave empty to solve for it; fill it in to solve for the other size instead.
  • Exposure per cluster per period (m: participants or person-time) (participants_per_cluster_period): a number, above 0; default 20 Exposure per cluster per period (m: participants or person-time). Leave empty to solve for it; fill it in to solve for the other size instead.

Ways to express an input

Effect size — The treatment rate against the control’s, as a difference, a rate or a ratio.

  • Difference in rates: λ₁ − λ₂. (fields difference)
  • Treatment rate: λ₁ itself; the difference is derived. (fields rate_treatment)
  • Rate ratio, the form’s default: λ₁/λ₂; the difference is derived. (fields ratio)

Between-cluster variability — How much the clusters differ from one another, as an intracluster correlation or as a coefficient of variation of the cluster means.

  • Intracluster correlation, the form’s default: The ICC, the share of variance between clusters. (fields icc)
  • Coefficient of variation of the outcome: τ/μ₂; converted to the ICC through the outcome’s variance. (fields outcome_cov)

Modifiers admitted

  • frame: Hypothesis frame
  • dropout: Dropout

Published examples it reproduces (21)

Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).

Source Example Solves for Inputs Published
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 200 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.66869 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 200; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.66869 ± 0.000005
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 210 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.68893 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 210; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.68893 ± 0.000005
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 220 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.70818 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 220; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.70818 ± 0.000005
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 230 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.72645 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 230; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.72645 ± 0.000005
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 240 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.74377 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 240; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.74377 ± 0.000005
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 250 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.76017 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 250; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.76017 ± 0.000005
PASS chapter 441, Example 1 (Hemming & Girling 2014 §4.4, the complete design) 20 wards, 10 steps of 2, 260 patient-days per ward per period, 0.021 harms per patient-day, a rate ratio of 0.75, ICC 0.007 => power 0.77569 Power alpha = 0.05; clusters = 20; icc = 0.007; participants_per_cluster_period = 260; rate_control = 0.021; ratio = 0.75; steps = 10; effect expressed as ratio power = 0.77569 ± 0.000005
PASS chapter 441, Example 3 (Baio et al. 2015, Table 1) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, ICC 0, 80% power => 7 clusters Sample size alpha = 0.05; icc = 0; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 7 ± 0
PASS chapter 441, Example 3 (Baio et al. 2015, Table 1) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, ICC 0.1, 80% power => 11 clusters Sample size alpha = 0.05; icc = 0.1; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 11 ± 0
PASS chapter 441, Example 3 (Baio et al. 2015, Table 1) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, ICC 0.2, 80% power => 10 clusters Sample size alpha = 0.05; icc = 0.2; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 10 ± 0
PASS chapter 441, Example 3 (Baio et al. 2015, Table 1) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, ICC 0.3, 80% power => 9 clusters Sample size alpha = 0.05; icc = 0.3; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 9 ± 0
PASS chapter 441, Example 3 (Baio et al. 2015, Table 1) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, ICC 0.4, 80% power => 8 clusters Sample size alpha = 0.05; icc = 0.4; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 8 ± 0
PASS chapter 441, Example 3 (Baio et al. 2015, Table 1) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, ICC 0.5, 80% power => 7 clusters Sample size alpha = 0.05; icc = 0.5; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 7 ± 0
Baio et al. 2015, Table 1 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the total variance, ICC 0.1, 80% power => 11 clusters Sample size alpha = 0.05; icc = 0.1; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 11 ± 0
Baio et al. 2015, Table 1 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the total variance, ICC 0.2, 80% power => 10 clusters Sample size alpha = 0.05; icc = 0.2; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 10 ± 0
Baio et al. 2015, Table 1 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the total variance, ICC 0.3, 80% power => 9 clusters Sample size alpha = 0.05; icc = 0.3; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 9 ± 0
Baio et al. 2015, Table 1 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the total variance, ICC 0.4, 80% power => 8 clusters Sample size alpha = 0.05; icc = 0.4; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; effect expressed as ratio clusters = 8 ± 0
Baio et al. 2015, Table 2 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the within-cluster variance, ICC 0.2, 80% power => 13 clusters Sample size alpha = 0.05; icc = 0.2; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; variance_is = within; effect expressed as ratio clusters = 13 ± 0
Baio et al. 2015, Table 2 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the within-cluster variance, ICC 0.3, 80% power => 13 clusters Sample size alpha = 0.05; icc = 0.3; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; variance_is = within; effect expressed as ratio clusters = 13 ± 0
Baio et al. 2015, Table 2 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the within-cluster variance, ICC 0.4, 80% power => 13 clusters Sample size alpha = 0.05; icc = 0.4; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; variance_is = within; effect expressed as ratio clusters = 13 ± 0
Baio et al. 2015, Table 2 (count outcome, analytical power based on HH) 5 steps, 20 per cluster per period, a rate of 1.5, a rate ratio of 0.8, the variance as the within-cluster variance, ICC 0.5, 80% power => 13 clusters Sample size alpha = 0.05; icc = 0.5; participants_per_cluster_period = 20; power_target = 0.8; rate_control = 1.5; ratio = 0.8; steps = 5; variance_is = within; effect expressed as ratio clusters = 13 ± 0

Sources

  1. Hussey MA, Hughes JP. Design and analysis of stepped wedge cluster randomized trials. Contemp Clin Trials. 2007;28:182-191.
  2. NCSS, LLC. PASS 2026 documentation, chapter 441: Tests for Two Poisson Rates in a Stepped-Wedge Cluster-Randomized Design. Kaysville, UT: NCSS, LLC; 2026.
  3. Hemming K, Taljaard M. Sample size calculations for stepped wedge and cluster randomised trials: a unified approach. J Clin Epidemiol. 2016;69:137-146.
  4. Hemming K, Girling A. A menu-driven facility for power and detectable-difference calculations in stepped-wedge cluster-randomized trials. Stata J. 2014;14:363-380.
  5. Baio G, Copas A, Ambler G, Hargreaves J, Beard E, Omar RZ. Sample size calculation for a stepped wedge trial. Trials. 2015;16:354.

This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →