TriaLab Power Studio · Method

Two means in a matched or stratified cluster-randomised trial

Clustered & multilevel Validated 12 published examples

Sizes a cluster trial in which similar clusters are paired, or grouped into strata, before one of each pair goes to each arm. Takes the two variance components directly — how much people within a cluster differ, and how much paired clusters still differ after matching — because that second number is what matching is for and what a planner has to estimate.

Also known as: matched cluster randomised trial, matched-pair CRT, stratified cluster randomised trial, stratified CRT, pair matching, variance components, between-cluster variance.

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

  • Difference to detect (μ₁ − μ₂) (difference): a number, any finite number; default 0.2 The difference between the two group means the trial should be able to detect, in the outcome’s own units.
  • Standardised difference (δ/σ_w) (standardised_effect): a number, any finite number The difference in within-cluster standard deviations.
  • Within-cluster standard deviation (σ_w) (sd_within): a number, above 0; default 0.6928 How much participants inside one cluster differ from each other. Chow states this as a variance, so his 0.48 is entered here as √0.48 = 0.6928.
  • Between-cluster standard deviation within a pair (σ_bm) (sd_between_pair): a number, at least 0; default 0.2236 How much two matched clusters still differ after matching — the quantity matching exists to reduce, and the one the design’s cost turns on. Chow states it as a variance, so his 0.05 is entered here as √0.05 = 0.2236. Compare it with the between-cluster standard deviation an unmatched version of the same trial would carry.
  • 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 20 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 difference between the group means, in the outcome’s units or in within-cluster standard deviations.

  • Difference in means, the form’s default: The difference in the outcome’s own units. (fields difference)
  • Standardised difference: Multiplied by the within-cluster standard deviation. (fields standardised_effect)

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.4 (printed p. 344) schools paired on location, income and composition: 20 children each, difference 0.2 z-score units, within-school variance 0.48, within-pair between-school variance 0.05, 80% power => 30 pairs where Chow prints 29 Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 20; difference = 0.2; power_target = 0.8; sd_between_pair = 0.223607; sd_within = 0.69282 cluster_pairs = 30 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.05, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 5 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.388861; sd_within = 2.8 cluster_pairs = 5 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.10, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 11 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 0.777721; sd_within = 2.8 cluster_pairs = 11 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.15, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 20 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 1.166582; sd_within = 2.8 cluster_pairs = 20 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.20, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 33 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 1.555442; sd_within = 2.8 cluster_pairs = 33 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.25, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 50 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 1.944303; sd_within = 2.8 cluster_pairs = 50 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.30, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 71 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 2.333163; sd_within = 2.8 cluster_pairs = 71 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.35, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 95 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 2.722024; sd_within = 2.8 cluster_pairs = 95 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.40, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 124 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 3.110884; sd_within = 2.8 cluster_pairs = 124 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.45, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 156 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 3.499745; sd_within = 2.8 cluster_pairs = 156 ± 0
PASS 2026 chapter 491, Example 1 (printed p. 491-5) Means 8.4 against 7.1, within-cluster SD 2.8, 120 per cluster, within-pair CV 0.50, two-sided 0.05, power 0.90, with Hayes & Moulton’s two extra pairs => 191 pairs Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 120; difference = 1.3; pair_correction = hayes_moulton; power_target = 0.9; sd_between_pair = 3.888605; sd_within = 2.8 cluster_pairs = 191 ± 0
PASS 2026 chapter 491, Example 2 (printed p. 491-8) Means 4.5 against 5.7, within-cluster SDs 3.3 and 3.9, 200 per cluster, within-pair CV 0.25, two-sided 0.05, power 0.80, with Hayes & Moulton’s two extra pairs => 21 pairs (20.678) Sample size alpha = 0.05; cluster_design = matched_pair; cluster_size = 200; difference = -1.2; pair_correction = hayes_moulton; power_target = 0.8; sd_between_pair = 1.283793; sd_within = 3.612478 cluster_pairs = 21 ± 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.1 (matched cluster randomized trials, comparison of means) and §15.3 (stratified trials).
  2. NCSS, LLC. PASS 2026 documentation, chapter 491: Tests for the Matched-Pair Difference of Two Means 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 →