TriaLab Power Studio · Method

Two proportions in a matched or stratified cluster-randomised trial

Clustered & multilevel Validated 12 published examples

Sizes a cluster trial with a binary outcome in which similar clusters are paired, or grouped into strata, before one of each pair goes to each arm. Takes the standard deviation of the cluster-level rates that remains within a pair, which is what matching is for.

Also known as: matched cluster randomised trial, matched-pair CRT, stratified cluster randomised trial, stratified CRT, pair matching, binary outcome.

Maturity

Validated: 12 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — No source on disk sizes a confidence interval for a matched cluster design, so it is not offered rather than offered unchecked.
  • 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 outcome is measured at a fixed follow-up, so calendar time does not enter the power function separately.

Size axes:

  • Matched cluster pairs (equivalently, clusters per arm) (cluster_pairs), Count
  • Average participants per cluster (cluster_size), 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-group proportion (p₂) (p_control): a number, above 0 and below 1; default 0.01; entered as proportion (0-1) or percent The proportion expected in the control clusters.
  • Difference to detect (p₁ − p₂) (difference): a number, above -1 and below 1; default -0.0025; entered as proportion (0-1) or percent The absolute difference in proportions the trial should be able to detect. Negative when the treatment lowers the rate.
  • Treatment-group proportion (p₁) (p_treatment): a number, above 0 and below 1; entered as proportion (0-1) or percent The proportion expected in the treated clusters.
  • Between-cluster standard deviation of the rates within a pair (σ_bm) (sd_between_pair): a number, at least 0 and below 1; default 0.0075; entered as proportion (0-1) or percent How much the true rates of two matched clusters still differ after matching, on the proportion scale. Chow’s Example 15.5 pairs hospitals down from a between-hospital 1% to a within-pair 0.75%, so this is entered as 0.0075. It is the quantity matching exists to reduce.
  • How the clusters were balanced before allocation (cluster_design): a choice; default matched_pair Chow’s §15.3 says a stratified design uses the matched formulas with the between-cluster variation computed within strata rather than within pairs. The arithmetic is identical; the choice is recorded because it is a design decision a protocol has to state, and because it says what the between-cluster figure below is a variation within.
    • matched_pair Matched pairs: Similar clusters paired, one of each pair to each arm.
    • stratified Stratified: Clusters grouped into strata and allocated within them.
  • Correction to the number of pairs (pair_correction): a choice; default chow Chow’s formula gives the normal-theory count. Hayes & Moulton add two pairs for the degrees of freedom the paired t-test on the cluster means uses up, and their count is the one PASS prints; under it the power at K pairs is the normal power at K − 2.
    • chow None (Chow’s count): The normal-theory count as Chow’s Equation 15.6 gives it.
    • hayes_moulton Two extra pairs (Hayes & Moulton): Two pairs added for the paired t’s degrees of freedom, as Hayes & Bennett 1999 and Hayes & Moulton 2009 recommend.

Sizes entered when another axis is solved for

  • Matched cluster pairs (equivalently, clusters per arm) (cluster_pairs): a whole number, at least 1 Matched cluster pairs (equivalently, clusters per arm). Leave empty to solve for it; fill it in to solve for the other size instead.
  • Average participants per cluster (cluster_size): a number, above 0; default 100 Average participants per cluster. 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 effect as a difference in proportions, or as the treated proportion it implies.

  • Difference in proportions, the form’s default: Enter p₁ − p₂ directly. (fields difference)
  • Treated proportion: Enter p₁; the difference follows from it and p₂. (fields p_treatment)

Modifiers admitted

  • frame: Hypothesis frame
  • dropout: Dropout
  • nonadherence: Non-adherence

Published examples it reproduces (12)

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
Chow, Shao, Wang & Lokhnygina 2017, Example 15.5 (printed p. 345) SSI rate 1% reduced to 0.75%, hospitals paired down to a within-pair rate SD of 0.75%, 2,750 procedures each, 90% power => 200 hospital pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 2750; difference = -0.0025; p_control = 0.01; power_target = 0.9; sd_between_pair = 0.0075 cluster_pairs = 200 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.05, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 4 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.035156 cluster_pairs = 4 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.10, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 6 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.070312 cluster_pairs = 6 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.15, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 8 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.105468 cluster_pairs = 8 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.20, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 12 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.140624 cluster_pairs = 12 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.25, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 17 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.17578 cluster_pairs = 17 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.30, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 23 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.210936 cluster_pairs = 23 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.35, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 30 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.246093 cluster_pairs = 30 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.40, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 38 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.281249 cluster_pairs = 38 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.45, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 47 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.316405 cluster_pairs = 47 ± 0
PASS 2026 chapter 158, Example 1 (printed p. 158-5) Proportions 0.80 against 0.58, 80 per cluster, within-pair CV 0.50, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 57 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 80; difference = -0.22; p_control = 0.8; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.351561 cluster_pairs = 57 ± 0
PASS 2026 chapter 158, Example 2 (printed p. 158-7), validating Hayes & Moulton 2009 Proportions 0.02 against 0.01, 1,000 per cluster, within-pair CV 0.25, two-sided 0.05, power 0.80, with Hayes & Moulton’s two extra pairs => 7 pairs (6.8) Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 1000; difference = -0.01; p_control = 0.02; pair_correction = hayes_moulton; power_target = 0.8; sd_between_pair = 0.003955 cluster_pairs = 7 ± 0

Sources

  1. Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §15.2.2 (matched cluster randomized trials, comparison of proportions) and §15.3 (stratified trials).
  2. NCSS, LLC. PASS 2026 documentation, chapter 158: Tests for the Matched-Pair Difference of Two Proportions in a Cluster-Randomized Design. Kaysville, UT: NCSS, LLC; 2026. Examples 1-2.

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 →