TriaLab Power Studio · Method

Two Poisson rates, difference (large-sample z-test)

Counts & rates Validated Free 9 published examples

Sizes a two-group trial whose outcome is an event count per subject or per unit of follow-up, compared as a difference of Poisson rates by Mathews’s large-sample z-test or its square-root-transformed form. Machin’s person-time formula is the same test sized as a total exposure.

Also known as: Poisson rates, rate difference, person-time, person-years, incidence rate difference, count outcome, event rate, Mathews.

Maturity

Validated: 9 published examples from 3 independent publications (Machin, Campbell, Tan & Tan 2018; PASS; Rothman, Greenland & Lash 2008) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: offered.
  • 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 follow-up is entered as the exposure per subject, so calendar time is an input here rather than a quantity to solve for; lengthen the exposure and read the size.

Size axes:

  • Subjects in group 1 (control); group 2 follows the allocation (participants_per_group), 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.
  • Confidence-interval half-width (half_width_target): a number, above 0 Half the total width of the confidence interval, in the units the effect is measured in — the distance from the estimate to either limit, where the interval is symmetric about it. Used when solving for precision; ignored for every other target.

The method’s own

  • Control-group rate λ₁ (rate_control): a number, above 0; default 1; typically 0.01 to 5 (events per unit of exposure) The anticipated event rate per unit of exposure in the control group.
  • Treatment-group rate λ₂ (rate_treatment): a number, above 0; default 0.75 The anticipated event rate per unit of exposure in the treatment group.
  • Rate difference λ₂ − λ₁ (rate_difference): a number, any finite number; default -0.25 The treatment rate less the control rate — the canonical effect; a margin is entered on this scale.
  • Exposure per subject (exposure_per_participant): a number, above 0; default 1 The follow-up each subject contributes, in the units the rates are per — 1 when the rate is per subject over the study. Machin’s total person-time is the subjects times this.
  • Test statistic (test_statistic): a choice; default large_sample Mathews’s large-sample z-test on the rate difference, or its square-root transform, which approaches normality at smaller counts.
    • large_sample Large-sample z (default): The difference of rates over its standard error at the anticipated rates; appropriate when each group’s count exceeds about 30.
    • square_root Square-root transform: The difference of root rates over ½√(1/(n₁t) + 1/(n₂t)).
  • Sidedness of the equality test (tails): a choice; default two_sided Two-sided is Mathews’s and PASS’s default; a one-sided test spends alpha on the anticipated direction.
    • two_sided Two-sided: Either direction rejects.
    • one_sided One-sided: Only the anticipated direction rejects; alpha is spent on that tail.

Sizes entered when another axis is solved for

  • Subjects in group 1 (control); group 2 follows the allocation (participants_per_group): a whole number, at least 1 Subjects in group 1 (control); group 2 follows the allocation. Required when solving for power or detectable effect; produced by the solver when solving for sample size.

Ways to express an input

Effect size — The treatment rate, or its difference from the control rate.

  • Treatment rate, the form’s default: Enter the treatment group’s rate; the difference is derived. (fields rate_treatment)
  • Rate difference: The canonical scale. (fields rate_difference)

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
  • group_sequential: Group-sequential design
  • assurance: Assurance (prior on the design)

Published examples it reproduces (9)

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 436, Example 1 (printed p. 436-3) Control rate 1, treatment rate 1.1, two-sided 0.05, 90% power, equal groups => 2207 per group Sample size alpha = 0.05; power_target = 0.9; rate_control = 1; rate_treatment = 1.1; effect expressed as rate_treatment participants_per_group = 2207 ± 0
PASS chapter 436, Example 1 (printed p. 436-3) Control rate 1, treatment rate 1.2, two-sided 0.05, 90% power, equal groups => 578 per group Sample size alpha = 0.05; power_target = 0.9; rate_control = 1; rate_treatment = 1.2; effect expressed as rate_treatment participants_per_group = 578 ± 0
PASS chapter 436, Example 1 (printed p. 436-3) Control rate 1, treatment rate 1.3, two-sided 0.05, 90% power, equal groups => 269 per group Sample size alpha = 0.05; power_target = 0.9; rate_control = 1; rate_treatment = 1.3; effect expressed as rate_treatment participants_per_group = 269 ± 0
PASS chapter 436, Example 1 (printed p. 436-3) Control rate 1, treatment rate 1.4, two-sided 0.05, 90% power, equal groups => 158 per group Sample size alpha = 0.05; power_target = 0.9; rate_control = 1; rate_treatment = 1.4; effect expressed as rate_treatment participants_per_group = 158 ± 0
PASS chapter 436, Example 2, validating Mathews 2010 p. 126 (printed p. 436-6) Rates 10 and 15, 8 control and 6 treatment subjects, one-sided 0.05 => power 0.82566 Power allocation_ratio = 0.75; alpha = 0.05; participants_per_group = 8; rate_control = 10; rate_treatment = 15; tails = one_sided; effect expressed as rate_treatment (with allocation) power = 0.82566 ± 0.000006
Machin, Campbell, Tan & Tan 2018, Example 6.1 (printed p. 88) Failure rates 0.23 and 0.1725 per person-year, three years of follow-up each, two-sided 0.05, 90% power => 427 per group (2558.32 person-years in all) Sample size alpha = 0.05; exposure_per_participant = 3; power_target = 0.9; rate_control = 0.23; rate_treatment = 0.1725; effect expressed as rate_treatment participants_per_group = 427 ± 0
PASS 2026 chapter 755, Example 2 (validation by hand) one-sided large-sample z at 0.025, 500 per group, λ₁ over {0.98, 1.00, 1.02} with {0.3, 0.4, 0.3}, λ₂ over {1.12, 1.20, 1.28} with {0.2, 0.6, 0.2} => assurance 0.79613 Power alpha = 0.025; direction = lower_better; effect_prior = custom; effect_prior_points = 3; effect_prior_probabilities = (0.3, 0.4, 0.3); effect_prior_values = (0.98, 1, 1.02); exposure_per_participant = 1; frame = superiority_margin; margin = 0; nuisance_a = rate_control; nuisance_a_prior = custom; nuisance_a_prior_points = 3; nuisance_a_prior_probabilities = (0.2, 0.6, 0.2); nuisance_a_prior_values = (1.12, 1.2, 1.28); participants_per_group = 500; rate_control = 1.2; rate_treatment = 1; effect expressed as rate_treatment (with frame, assurance) assurance = 0.79613 ± 0.00001
Rothman, Greenland & Lash 2008, chapter 14, Table 14-2 (printed p. 239) 41 cases in 28,010 person-years against 15 in 19,017, two-sided 0.9 Wald interval for the rate difference => half-width 0.000504 Power allocation_ratio = 1.472893; alpha = 0.1; half_width_target = 0.0001; participants_per_group = 19017; rate_control = 0.000789; rate_treatment = 0.001464; effect expressed as rate_treatment (with allocation) half_width = 0.000504 ± 0.000003
Rothman, Greenland & Lash 2008, chapter 14, Table 14-2 (printed p. 239) 41 cases in 28,010 person-years against 15 in 19,017, two-sided 0.95 Wald interval for the rate difference => half-width 0.0006 Power allocation_ratio = 1.472893; alpha = 0.05; half_width_target = 0.0001; participants_per_group = 19017; rate_control = 0.000789; rate_treatment = 0.001464; effect expressed as rate_treatment (with allocation) half_width = 0.0006 ± 0

Sources

  1. NCSS, LLC. PASS 2026 documentation, chapter 436: Tests for the Difference Between Two Poisson Rates. Kaysville, UT: NCSS, LLC; 2026.
  2. Mathews P. Sample Size Calculations: Practical Methods for Engineers and Scientists. Fairport Harbor: Mathews Malnar and Bailey; 2010.
  3. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §6.2, Equation 6.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 →