TriaLab Power Studio · Method

Two means in a parallel cluster-randomised trial

Clustered & multilevel Validated 14 published examples

Sizes a trial in which whole clusters — practices, schools, wards, villages — are allocated to a group and a continuous outcome is measured on the people inside them. Takes the intracluster correlation and, optionally, how uneven the cluster sizes are, and 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, intracluster correlation, ICC, clusters, practices, schools, villages.

Maturity

Validated: 14 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 — A confidence interval for the difference in a cluster trial is defined — it is the same standard error — but no source on disk works an example of sizing one, so it 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 measured 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

  • Difference to detect (μ₁ − μ₂) (difference): a number, any finite number; default 1 The difference between the two group means the trial should be able to detect, in the outcome’s own units.
  • Standardised difference (δ/σ) (standardised_effect): a number, any finite number The difference in standard deviations — Cohen’s d. The standard deviation below is still required, because the design effect is computed from the cluster size and the ICC, not from the effect.
  • Standard deviation of the outcome (σ) (sd): a number, above 0; default 2 The total subject-to-subject standard deviation, between and within clusters together, assumed the same in both groups.
  • Intracluster correlation (ρ) (icc): a number, at least 0 and below 1; default 0.05; typically 0 to 0.2 (intracluster correlations in health research) The correlation between any two participants in the same cluster — the share of the outcome’s variance that sits between clusters. Small values matter: at 50 per cluster an ICC of 0.02 already doubles the variance. Take it from a published table for the outcome and setting, and size the trial at the top of its plausible range.
  • Coefficient of variation of cluster sizes (CV) (cluster_size_cv): a number, at least 0; default 0 How uneven the clusters are: the standard deviation of their sizes over their mean. Leave at 0 for equal clusters. Unequal sizes cost efficiency on top of the design effect, and 0.65 is a commonly quoted value for health-service clusters.
  • Analysis and degrees of freedom (analysis): a choice; default t_subjects What the test statistic is compared against. The cluster-level t is the honest choice when the clusters are few — it is the first of the small-sample corrections the literature recommends — and the normal approximation is the most optimistic of the three.
    • t_subjects t, subject-level degrees of freedom: K₁M₁ + K₂M₂ − 2. PASS 482’s default.
    • t_clusters t, cluster-level degrees of freedom: K₁ + K₂ − 2, the analysis of cluster summaries.
    • z Normal approximation (z): What Chow §15 uses, and what legacy tools use everywhere.

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 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 standard deviations.

  • Difference in means, the form’s default: The difference in the outcome’s own units. (fields difference)
  • Standardised difference: Cohen’s d; multiplied by the standard deviation. (fields standardised_effect)

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 (14)

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 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 5 clusters of 5 per arm, subject-level t => power 0.3908 Power alpha = 0.05; analysis = t_subjects; cluster_size = 5; cluster_size_cv = 0.65; clusters_per_arm = 5; difference = 1; icc = 0.01; sd = 2 power = 0.3908 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 5 clusters of 10 per arm, subject-level t => power 0.6439 Power alpha = 0.05; analysis = t_subjects; cluster_size = 10; cluster_size_cv = 0.65; clusters_per_arm = 5; difference = 1; icc = 0.01; sd = 2 power = 0.6439 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 10 clusters of 5 per arm, subject-level t => power 0.6714 Power alpha = 0.05; analysis = t_subjects; cluster_size = 5; cluster_size_cv = 0.65; clusters_per_arm = 10; difference = 1; icc = 0.01; sd = 2 power = 0.6714 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 10 clusters of 10 per arm, subject-level t => power 0.9115 Power alpha = 0.05; analysis = t_subjects; cluster_size = 10; cluster_size_cv = 0.65; clusters_per_arm = 10; difference = 1; icc = 0.01; sd = 2 power = 0.9115 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 15 clusters of 5 per arm, subject-level t => power 0.8399 Power alpha = 0.05; analysis = t_subjects; cluster_size = 5; cluster_size_cv = 0.65; clusters_per_arm = 15; difference = 1; icc = 0.01; sd = 2 power = 0.8399 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 15 clusters of 10 per arm, subject-level t => power 0.9822 Power alpha = 0.05; analysis = t_subjects; cluster_size = 10; cluster_size_cv = 0.65; clusters_per_arm = 15; difference = 1; icc = 0.01; sd = 2 power = 0.9822 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 20 clusters of 5 per arm, subject-level t => power 0.9274 Power alpha = 0.05; analysis = t_subjects; cluster_size = 5; cluster_size_cv = 0.65; clusters_per_arm = 20; difference = 1; icc = 0.01; sd = 2 power = 0.9274 ± 0.00005
PASS chapter 482, Example 1 (printed p. 482-4) difference 1, SD 2, ICC 0.01, CV 0.65, 20 clusters of 10 per arm, subject-level t => power 0.9969 Power alpha = 0.05; analysis = t_subjects; cluster_size = 10; cluster_size_cv = 0.65; clusters_per_arm = 20; difference = 1; icc = 0.01; sd = 2 power = 0.9969 ± 0.00005
PASS chapter 482, Example 2 (printed p. 482-6), reproducing Donner & Klar 1996 p. 436 difference 0.2, SD 1, ICC 0.001, 3 clusters of 100 per arm, cluster-level t => power 0.4301 Power alpha = 0.05; analysis = t_clusters; cluster_size = 100; cluster_size_cv = 0; clusters_per_arm = 3; difference = 0.2; icc = 0.001; sd = 1 power = 0.4301 ± 0.00005
PASS chapter 482, Example 2 (printed p. 482-6), reproducing Donner & Klar 1996 p. 436 difference 0.2, SD 1, ICC 0.001, 3 clusters of 300 per arm, cluster-level t => power 0.7924 Power alpha = 0.05; analysis = t_clusters; cluster_size = 300; cluster_size_cv = 0; clusters_per_arm = 3; difference = 0.2; icc = 0.001; sd = 1 power = 0.7924 ± 0.00005
PASS chapter 482, Example 2 (printed p. 482-6), reproducing Donner & Klar 1996 p. 436 difference 0.2, SD 1, ICC 0.001, 3 clusters of 500 per arm, cluster-level t => power 0.9091 Power alpha = 0.05; analysis = t_clusters; cluster_size = 500; cluster_size_cv = 0; clusters_per_arm = 3; difference = 0.2; icc = 0.001; sd = 1 power = 0.9091 ± 0.00005
PASS chapter 482, Example 3 (printed p. 482-7), reproducing Campbell & Walters 2014 p. 71 difference 0.3247, SD 1, ICC 0.05, clusters of 10, CV 0, 90% power => 29 clusters per arm Sample size alpha = 0.05; analysis = t_subjects; cluster_size = 10; cluster_size_cv = 0; difference = 0.3247; icc = 0.05; power_target = 0.9; sd = 1 clusters_per_arm = 29 ± 0
PASS chapter 482, Example 3 (printed p. 482-7), reproducing Campbell & Walters 2014 p. 71 difference 0.3247, SD 1, ICC 0.05, clusters of 10, CV 0.725, 90% power => 33 clusters per arm Sample size alpha = 0.05; analysis = t_subjects; cluster_size = 10; cluster_size_cv = 0.725; difference = 0.3247; icc = 0.05; power_target = 0.9; sd = 1 clusters_per_arm = 33 ± 0
Chow, Shao, Wang & Lokhnygina 2017, Example 15.1 (printed p. 340) school-level activity programme: 20 children per school, difference 0.2 z-score units, variance 0.6, ICC 0.2, 80% power by the normal approximation => 57 schools per group Sample size alpha = 0.05; analysis = z; cluster_size = 20; cluster_size_cv = 0; difference = 0.2; icc = 0.2; power_target = 0.8; sd = 0.774597 clusters_per_arm = 57 ± 0

Sources

  1. NCSS, LLC. PASS 2026 documentation, chapter 482: Tests for Two Means in a Cluster-Randomized Design. Kaysville, UT: NCSS, LLC; 2026.
  2. 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.1, comparison of means in unmatched cluster randomized trials.
  3. Donner A, Klar N. Statistical considerations in the design and analysis of community intervention trials. J Clin Epidemiol. 1996;49(4):435-439.
  4. Campbell MJ, Walters SJ. How to Design, Analyse and Report Cluster Randomised Trials in Medicine and Health Related Research. Chichester: Wiley; 2014.
  5. 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 →