TriaLab Power Studio · Method
One proportion against a reference value (z-test)
Tests whether the response rate of a single group differs from a fixed reference value, by the normal approximation to the binomial. The standard error can be set at the null value (the score form) or at the anticipated rate (the Wald form), with or without a continuity correction.
Also known as: single proportion, one-sample proportion, response rate, binomial z-test, score test, Wald test, historical control rate, single-arm.
Maturity
Validated: 7 published examples from 4 independent publications (Chow, Shao, Wang & Lokhnygina 2017; Iglesies-Grau et al., BMJ Open 2023; Machin, Campbell, Tan & Tan 2018; PASS) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: offered.
- 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 — This design has no time axis: each participant’s response is assessed once, so calendar time does not enter the power function.
Size axes:
- Participants (
participants), 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; entered as proportion (0-1) or percent 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
- Reference proportion (p₀) (
p_reference): a number, above 0 and below 1; default 0.3; entered as proportion (0-1) or percent The fixed rate the group’s rate is compared with — a historical control rate, a regulatory threshold, or the standard therapy’s response rate. - Difference to detect (p − p₀) (
difference): a number, above -1 and below 1; default 0.2; entered as proportion (0-1) or percent The anticipated true rate minus the reference rate; positive means the group does better than the reference. Under a margin frame this is the assumed true difference, which is often zero. - Anticipated proportion (p) (
p_treatment): a number, above 0 and below 1; entered as proportion (0-1) or percent The true response rate the group is expected to have. - Variance under the null hypothesis (
variance): a choice; defaultnullA proportion’s variance depends on the proportion, so the standard error the critical value is set against can be taken at the null value (the score form, which Machin, Fleiss and PASS use) or at the anticipated proportions (the Wald form, which Chow’s chapter 4 uses). The two differ by a few participants; the score form is the default because it is the test most software runs.nullAt the null value (score): Critical value against p₀(1 − p₀)/n, power against p(1 − p)/n — Machin’s Equation 3.6, PASS’s z-test using S(P0). Under the precision target this form inverts to the Wilson score interval.alternativeAt the anticipated proportions (Wald): Both against p(1 − p)/n — Chow’s Equation 4.2. Under the precision target this form inverts to the simple asymptotic (Wald) interval.
- Continuity correction (
continuity_correction): a choice; defaultnoneWhether the analysis will subtract 1/(2n) from the observed difference before referring it to the normal, as the corrected test does to approximate the exact binomial test. Under the precision target it selects the continuity-corrected form of the interval.noneNone: The plain z-test or chi-square test.yatesYates’s correction: The corrected test, which approximates the exact test and asks for more participants.
- Sidedness of the equality test (
tails): a choice; defaulttwo_sidedChow’s equality test is two-sided; Machin recommends one-sided when the reference rate is known with certainty, and his examples are. Ignored under a margin frame, which is one-sided by construction.two_sidedTwo-sided: Either direction rejects.one_sidedOne-sided: Only the anticipated direction rejects; alpha is spent on that tail.
Sizes entered when another axis is solved for
- Participants (
participants): a whole number, at least 1 Participants. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Effect size — How far the group’s true rate is from the reference, entered as the difference or as the rate itself.
- Difference from the reference, the form’s default: p − p₀, in proportion units — the quantity a margin is stated on. (fields
difference) - Anticipated proportion: Enter the rate itself; the difference is derived. (fields
p_treatment)
Modifiers admitted
frame: Hypothesis framemultiplicity: Multiplicity (a family of tests)fdr: False-discovery rate (many features tested at once)dropout: Dropoutgroup_sequential: Group-sequential design
Published examples it reproduces (7)
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, §4.1.4.1 (Equation 4.2) | p 0.50 against p₀ 0.30, two-sided alpha 0.05, power 0.80 => 49 on the page with z₀.₈ = 0.84; 49.06 with the exact quantile, so 50 here | Sample size | alpha = 0.05; difference = 0.2; p_reference = 0.3; power_target = 0.8; variance = alternative |
participants = 49 ± 1 |
| Chow, Shao, Wang & Lokhnygina 2017, §4.1.4.2 (Equation 4.3) | p 0.50 against p₀ 0.30 with a non-inferiority margin of 0.10, one-sided alpha 0.05, power 0.80 => 18 | Sample size | alpha = 0.05; difference = 0.2; frame = non_inferiority; margin = 0.1; p_reference = 0.3; power_target = 0.8; variance = alternative (with frame) |
participants = 18 ± 0 |
| Machin, Campbell, Tan & Tan 2018, §3.5 Example 3.7 (Equation 3.6) | infection rate 0.05 against a known 0.10, one-sided alpha 0.05, power 0.90 => 238.84 on the page, printed as 240; 239 here | Sample size | alpha = 0.05; difference = -0.05; p_reference = 0.1; power_target = 0.9; tails = one_sided |
participants = 240 ± 1 |
| Machin, Campbell, Tan & Tan 2018, §3.5 Example 3.8 (Equation 3.6) | hypotension 0.40 against a baseline 0.60, one-sided alpha 0.05, power 0.80 => 37.10, printed as 38 | Sample size | alpha = 0.05; difference = -0.2; p_reference = 0.6; power_target = 0.8; tails = one_sided |
participants = 38 ± 0 |
| PASS chapter 115, Example 3 (printed p. 115-9), after Newcombe 1998a pp. 860–861 | proportion 0.034483, score interval with continuity correction, two-sided 95%, width 0.1945 (half-width 0.09725) => 29 | Precision | alpha = 0.05; continuity_correction = yates; half_width_target = 0.09725; p_treatment = 0.034483; variance = null; effect expressed as proportion |
participants = 29 ± 0 |
| Iglesies-Grau et al., BMJ Open 2023;13:e073763 (DIABEPIC-1), sample-size paragraph | completion rate 0.70 estimated to within ±18.0 percentage points by a two-sided 95% simple asymptotic interval => 25 (36 enrolled at 30% loss) | Precision | alpha = 0.05; continuity_correction = none; half_width_target = 0.18; p_treatment = 0.7; variance = alternative; effect expressed as proportion |
participants = 25 ± 0 |
| Iglesies-Grau et al., BMJ Open 2023;13:e073763 (DIABEPIC-1), sample-size paragraph | compliance rate 0.80 estimated to within ±15.7 percentage points by a two-sided 95% simple asymptotic interval => 25 | Precision | alpha = 0.05; continuity_correction = none; half_width_target = 0.157; p_treatment = 0.8; variance = alternative; effect expressed as proportion |
participants = 25 ± 0 |
Sources
- Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §4.1, Equations 4.2-4.4.
- Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §3.3, Equation 3.6.
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 →