TriaLab Power Studio · Method

Two proportions in a parallel cluster-randomised trial

Clustered & multilevel Validated 28 published examples

Sizes a trial in which whole clusters — practices, wards, villages, therapists — are allocated to a group and a binary outcome is recorded for the people inside them. The intracluster correlation inflates the variance of each group proportion, and the trial solves for either the number of clusters or the number of participants in each.

Also known as: cluster randomised trial, CRT, group randomised trial, design effect, inflation factor, intracluster correlation, ICC, binary outcome, clusters.

Maturity

Validated: 28 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 — PASS ships a separate chapter for a confidence interval for the difference of two proportions in a cluster-randomized design; it is not on disk, so sizing one is not offered rather than offered unchecked.
  • Assurance: not offered — Switch on the assurance modifier: a prior on the effect turns the power into an expected power over the prior, and the size can then be solved for a target assurance (O’Hagan, Stevens & Campbell 2005).
  • Duration: not offered — The outcome is recorded at a fixed follow-up, so calendar time does not enter the power function separately.

Size axes:

  • Clusters per arm (control arm when allocation is unequal) (clusters_per_arm), 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.44; 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.07; 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; the difference follows from it and the control rate.
  • Intracluster correlation (ρ) (icc): a number, at least 0 and below 1; default 0.02; typically 0 to 0.2 (intracluster correlations in health research) The correlation between the outcomes of any two participants in the same cluster. Small values matter: at 300 per cluster an ICC of 0.02 inflates the variance sevenfold. Take it from a published table for the outcome and setting, and size the trial at the top of its plausible range.
  • Variance under the null hypothesis (variance): a choice; default unpooled Which proportions the null standard error is evaluated at, exactly as in the individually randomised kernel. Both are inflated by the same design effect, so the cluster structure does not change which to prefer.
    • unpooled Unpooled: Both standard errors from the anticipated rates — PASS chapter 230’s default, and the only form defined under a margin.
    • pooled Pooled: Critical value against the common rate the arms share under the null; the form PASS uses to reproduce Donner and Klar.

Sizes entered when another axis is solved for

  • Clusters per arm (control arm when allocation is unequal) (clusters_per_arm): a whole number, at least 1 Clusters per arm (control arm when allocation is unequal). 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, as PASS’s “Differences” input does. (fields difference)
  • Treated proportion: Enter p₁; the difference follows from it and p₂. (fields p_treatment)

Modifiers admitted

  • posterior_error: Bayesian error rates (posterior error approach)
  • frame: Hypothesis frame
  • multiplicity: Multiplicity (a family of tests)
  • fdr: False-discovery rate (many features tested at once)
  • allocation: Allocation
  • dropout: Dropout
  • nonadherence: Non-adherence
  • assurance: Assurance (prior on the design)

Published examples it reproduces (28)

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 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 10 clusters of 10 per arm, unpooled z => power 0.14998 Power alpha = 0.05; cluster_size = 10; clusters_per_arm = 10; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.14998 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 10 clusters of 20 per arm, unpooled z => power 0.2233 Power alpha = 0.05; cluster_size = 20; clusters_per_arm = 10; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.2233 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 10 clusters of 30 per arm, unpooled z => power 0.27777 Power alpha = 0.05; cluster_size = 30; clusters_per_arm = 10; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.27777 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 10 clusters of 40 per arm, unpooled z => power 0.3193 Power alpha = 0.05; cluster_size = 40; clusters_per_arm = 10; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.3193 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 10 clusters of 50 per arm, unpooled z => power 0.35181 Power alpha = 0.05; cluster_size = 50; clusters_per_arm = 10; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.35181 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 15 clusters of 10 per arm, unpooled z => power 0.20158 Power alpha = 0.05; cluster_size = 10; clusters_per_arm = 15; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.20158 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 15 clusters of 20 per arm, unpooled z => power 0.31063 Power alpha = 0.05; cluster_size = 20; clusters_per_arm = 15; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.31063 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 15 clusters of 30 per arm, unpooled z => power 0.3887 Power alpha = 0.05; cluster_size = 30; clusters_per_arm = 15; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.3887 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 15 clusters of 40 per arm, unpooled z => power 0.44611 Power alpha = 0.05; cluster_size = 40; clusters_per_arm = 15; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.44611 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 15 clusters of 50 per arm, unpooled z => power 0.48963 Power alpha = 0.05; cluster_size = 50; clusters_per_arm = 15; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.48963 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 20 clusters of 10 per arm, unpooled z => power 0.25316 Power alpha = 0.05; cluster_size = 10; clusters_per_arm = 20; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.25316 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 20 clusters of 20 per arm, unpooled z => power 0.39437 Power alpha = 0.05; cluster_size = 20; clusters_per_arm = 20; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.39437 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 20 clusters of 30 per arm, unpooled z => power 0.49061 Power alpha = 0.05; cluster_size = 30; clusters_per_arm = 20; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.49061 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 20 clusters of 40 per arm, unpooled z => power 0.55827 Power alpha = 0.05; cluster_size = 40; clusters_per_arm = 20; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.55827 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 20 clusters of 50 per arm, unpooled z => power 0.60761 Power alpha = 0.05; cluster_size = 50; clusters_per_arm = 20; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.60761 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 25 clusters of 10 per arm, unpooled z => power 0.30407 Power alpha = 0.05; cluster_size = 10; clusters_per_arm = 25; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.30407 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 25 clusters of 20 per arm, unpooled z => power 0.47271 Power alpha = 0.05; cluster_size = 20; clusters_per_arm = 25; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.47271 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 25 clusters of 30 per arm, unpooled z => power 0.58119 Power alpha = 0.05; cluster_size = 30; clusters_per_arm = 25; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.58119 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 25 clusters of 40 per arm, unpooled z => power 0.65365 Power alpha = 0.05; cluster_size = 40; clusters_per_arm = 25; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.65365 ± 0.000005
PASS chapter 230, Example 1 (printed p. 230-4) p2 0.44, difference 0.07, ICC 0.02, 25 clusters of 50 per arm, unpooled z => power 0.70424 Power alpha = 0.05; cluster_size = 50; clusters_per_arm = 25; difference = 0.07; icc = 0.02; p_control = 0.44; variance = unpooled power = 0.70424 ± 0.000005
PASS chapter 230, Example 2 (printed p. 230-6) p2 0.44, difference 0.07, ICC 0.02, 25 clusters per arm, 90% power => 281 participants per cluster Sample size alpha = 0.05; clusters_per_arm = 25; difference = 0.07; icc = 0.02; p_control = 0.44; power_target = 0.9; variance = unpooled cluster_size = 281 ± 0
PASS chapter 230, Example 3 (printed p. 230-7) p2 0.44, difference 0.07, ICC 0.01, clusters of 300, 90% power => 15 clusters per arm Sample size alpha = 0.05; cluster_size = 300; difference = 0.07; icc = 0.01; p_control = 0.44; power_target = 0.9; variance = unpooled clusters_per_arm = 15 ± 0
PASS chapter 230, Example 3 (printed p. 230-7) p2 0.44, difference 0.07, ICC 0.015, clusters of 300, 90% power => 20 clusters per arm Sample size alpha = 0.05; cluster_size = 300; difference = 0.07; icc = 0.015; p_control = 0.44; power_target = 0.9; variance = unpooled clusters_per_arm = 20 ± 0
PASS chapter 230, Example 3 (printed p. 230-7) p2 0.44, difference 0.07, ICC 0.02, clusters of 300, 90% power => 25 clusters per arm Sample size alpha = 0.05; cluster_size = 300; difference = 0.07; icc = 0.02; p_control = 0.44; power_target = 0.9; variance = unpooled clusters_per_arm = 25 ± 0
PASS chapter 230, Example 3 (printed p. 230-7) p2 0.44, difference 0.07, ICC 0.025, clusters of 300, 90% power => 31 clusters per arm Sample size alpha = 0.05; cluster_size = 300; difference = 0.07; icc = 0.025; p_control = 0.44; power_target = 0.9; variance = unpooled clusters_per_arm = 31 ± 0
PASS chapter 230, Example 3 (printed p. 230-7) p2 0.44, difference 0.07, ICC 0.03, clusters of 300, 90% power => 36 clusters per arm Sample size alpha = 0.05; cluster_size = 300; difference = 0.07; icc = 0.03; p_control = 0.44; power_target = 0.9; variance = unpooled clusters_per_arm = 36 ± 0
PASS chapter 230, Example 4 (printed p. 230-8), reproducing Donner & Klar 2000 p. 63 p2 0.06, difference −0.02, ICC 0.01, clusters of 100, 80% power by the pooled z => 38 clusters per arm Sample size alpha = 0.05; cluster_size = 100; difference = -0.02; icc = 0.01; p_control = 0.06; power_target = 0.8; variance = pooled clusters_per_arm = 38 ± 0
Chow, Shao, Wang & Lokhnygina 2017, Example 15.2 (printed p. 341) SSI rate 1% reduced to 0.75%, ICC 0.01, 2,750 procedures per hospital, 90% power => 303 hospitals per group where Chow prints approximately 302 Sample size alpha = 0.05; cluster_size = 2750; difference = -0.0025; icc = 0.01; p_control = 0.01; power_target = 0.9; variance = unpooled clusters_per_arm = 303 ± 0

Sources

  1. NCSS, LLC. PASS 2026 documentation, chapter 230: Tests for Two Proportions in a Cluster-Randomized Design. Kaysville, UT: NCSS, LLC; 2026.
  2. Donner A, Klar N. Design and Analysis of Cluster Randomization Trials in Health Research. London: Arnold; 2000.
  3. Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §15.1.2, comparison of proportions in unmatched cluster randomized trials.
  4. Hemming K, Kasza J, Hooper R, Forbes A, Taljaard M. A tutorial on sample size calculation for multiple-period cluster randomized parallel, cross-over and stepped-wedge trials using the Shiny CRT Calculator. Int J Epidemiol. 2020;49(3):979-995. Small-sample corrections, for a trial with few clusters.

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 →