TriaLab Power Studio · Method

Two event rates in a parallel cluster-randomised trial

Clustered & multilevel Validated 3 published examples

Sizes a trial in which whole clusters — hospitals, villages, practices — are allocated to a group and events are counted over a stated amount of person-time in each. Takes the coefficient of variation of the true rates between clusters rather than an intracluster correlation, which is what the rate literature reports.

Also known as: cluster randomised trial, CRT, incidence rate, event rate, Poisson, person-years, coefficient of variation, Hayes Bennett, between-cluster variation.

Maturity

Validated: 3 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 rate difference in a cluster-randomized 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 person-time per cluster is a size axis here and can be solved for directly; a separate calendar-time target would be the same question asked twice.

Size axes:

  • Clusters per arm (control arm when allocation is unequal) (clusters_per_arm), Count
  • Person-time observed in each cluster (M) (person_years_per_cluster), Duration, in person-years

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

  • Event rate in the control clusters (λ₁) (rate_control): a number, above 0; default 0.5 Events per unit of person-time in the control arm, in the same units as the person-time below: 0.0148 events per person-year, or 4.5 per thousand patient-days with the person-time in thousands.
  • Event rate in the treated clusters (λ₂) (rate_treatment): a number, above 0; default 0.6 The rate the trial should be able to detect, in the same units.
  • Difference in rates (λ₂ − λ₁) (rate_difference): a number, any finite number Negative when the treatment lowers the rate.
  • Rate ratio (λ₂ / λ₁) (rate_ratio): a number, above 0 0.7 for a 30% reduction. The way a rate effect is usually reported.
  • Coefficient of variation of rates between clusters (k) (rate_cv): a number, at least 0; default 0.25; typically 0 to 0.6 (between-cluster variation in reported rates) The standard deviation of the true cluster rates over their mean, assumed the same in both arms. This is the rate literature’s substitute for an intracluster correlation, and it is what published cluster-trial reports quote. Values around 0.25 to 0.4 are common.
  • How the clusters were allocated (cluster_design): a choice; default unmatched Chow’s §15.2 and §15.3 use the same formula as the unmatched design with the coefficient of variation computed within a matched pair or within a stratum instead of across all clusters. That is the whole benefit of matching: it does not change the arithmetic, it lowers the number you enter below. The choice is recorded because it is a design decision a protocol has to state, and because a matched pair cannot be allocated unequally.
    • unmatched Unmatched (completely randomised): Clusters allocated at random; the variation is across all of them.
    • matched_pair Matched pairs: Similar clusters paired, one of each pair to each arm; the variation is within a pair. The size below is the number of pairs.
    • stratified Stratified: Clusters grouped into strata and allocated within them; the variation is within a stratum. Chow’s §15.3 compromise between the other two.
  • Divisor for the between-cluster variance (denominator): a choice; default hayes_bennett The two published forms of this calculation share their variance and differ only here. Subtracting one is the price of estimating the between-cluster variation from the clusters themselves, and it is worth two extra clusters per arm on Chow’s own example — not a rounding difference.
    • hayes_bennett K − 1 (Hayes and Bennett): The form PASS chapter 439 ships, and the more careful of the two.
    • chow K (Chow §15.1.3): His Equation 15.4, which his Example 15.3 works.

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.
  • Person-time observed in each cluster (M) (person_years_per_cluster): a number, at least 0; default 100 How much person-time each cluster contributes — the follow-up summed over its members. Person-time is continuous; 424.5 person-years is a design. Leave empty to solve for it; fill it in to solve for the other size instead.

Ways to express an input

Effect size — The treated rate, or the difference or ratio it implies. The variance needs both rates, so the control rate is always entered.

  • Treated rate, the form’s default: Enter λ₂ directly. (fields rate_treatment)
  • Difference in rates: λ₂ − λ₁; the treated rate follows. (fields rate_difference)
  • Rate ratio: λ₂ / λ₁; the treated rate follows. (fields rate_ratio)

Modifiers admitted

  • frame: Hypothesis frame
  • allocation: Allocation
  • nonadherence: Non-adherence

Published examples it reproduces (3)

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.6 (printed p. 347) the same HAI rates as Example 15.3 run as a crossover, within-hospital coefficient of variation 0.3, 80% power => 31 hospitals, which he also prints Sample size alpha = 0.05; cluster_design = matched_pair; denominator = chow; person_years_per_cluster = 50; power_target = 0.8; rate_control = 4.5; rate_cv = 0.3; rate_treatment = 3.6 clusters_per_arm = 31 ± 0
PASS chapter 439, Example 2 (printed p. 439-6), reproducing Hayes & Moulton 2009 p. 109 rates 0.0148 and 0.0104 per person-year, CV 0.29, 28 clusters of 424 person-years per arm => power 0.6886 Power alpha = 0.05; clusters_per_arm = 28; denominator = hayes_bennett; person_years_per_cluster = 424; rate_control = 0.0148; rate_cv = 0.29; rate_treatment = 0.0104 power = 0.6886 ± 0.00005
Chow, Shao, Wang & Lokhnygina 2017, Example 15.3 (printed p. 342) HAI rates 4.5 and 3.6 per thousand patient-days, 50 thousand patient-days per hospital, CV 0.4, 80% power => 54 hospitals per group where Chow prints 53 Sample size alpha = 0.05; denominator = chow; person_years_per_cluster = 50; power_target = 0.8; rate_control = 4.5; rate_cv = 0.4; rate_treatment = 3.6 clusters_per_arm = 54 ± 0

Sources

  1. Hayes RJ, Bennett S. Simple sample size calculation for cluster-randomized trials. Int J Epidemiol. 1999;28(2):319-326.
  2. NCSS, LLC. PASS 2026 documentation, chapter 439: Tests for the Difference Between Two Poisson Rates in a Cluster-Randomized Design. Kaysville, UT: NCSS, LLC; 2026. Example 2 reproduces Hayes & Moulton (2009), p. 109.
  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.3, comparison of incidence rates 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 →