TriaLab Power Studio · Method
Cox regression with covariate adjustment (Wald test of one coefficient)
Sizes a survival study analysed by Cox regression, testing one covariate’s coefficient while adjusting for others. The price of adjustment is one number: the R-squared of that covariate on the rest, which inflates the trial by 1/(1 - R-squared).
Also known as: Cox regression, proportional hazards regression, covariate adjustment, adjusted hazard ratio, multivariable survival, Hsieh and Lavori, continuous covariate survival.
Maturity
Validated: 23 published examples from 3 independent publications (Hsieh & Lavori 2000; PASS; Schoenfeld 1983) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — Sizing to the width of a confidence interval for the coefficient is a different calculation from sizing to this test, and no source on disk gives it for an adjusted Cox model.
- 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 — This formula has no time axis at all: the event rate stands for the whole of accrual, follow-up and censoring, which is why PASS notes that the number of censored observations does not enter it. Size the duration with the exponential log-rank kernel and bring its event probability here.
Size axes:
- Participants (of whom the event rate says how many have the event) (
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.
The method’s own
- Hazard ratio per unit of the covariate (
hazard_ratio): a number, above 0; default 1.5 The multiplicative change in the hazard for a one-unit increase in the covariate. 1 is no effect; 1.5 raises the hazard by half. For a binary covariate this is the treatment’s hazard ratio. - Log hazard ratio per unit of the covariate (B) (
log_hazard_ratio), advanced: a number, any finite number The change in the log hazard for a one-unit increase in the covariate of interest, with the others held constant — the coefficient the test is about. Its sign does not matter to the power. - Standard deviation of the covariate (σ) (
covariate_sd): a number, above 0; default 0.5 How much the covariate of interest varies across subjects. The effect is stated per unit of it, so the two are read together: a coefficient of 0.2 on a covariate with σ = 1.2 is the same information as 0.24 on a standardised one. - Share of subjects in one group of a binary covariate (
covariate_share): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent For a binary covariate — a treatment arm, a sex, an exposure — the proportion in one of its two groups; the standard deviation follows as √(p(1 − p)). Equal groups give 0.5, which is the most informative split and the one that makes this the log-rank test. - Proportion of subjects who have the event (P) (
event_rate): a number, above 0 and below 1; default 0.7; typically 0.2 to 0.95 (below about 0.2 the trial becomes very large); entered as proportion (0-1) or percent The share of the whole study expected to have the event by the end. Only this enters the calculation — how many are censored, and when, does not. - R² of the covariate on the other covariates (
r_squared): a number, at least 0 and below 1; default 0; typically 0 to 0.5 (0 only when the covariates are unrelated) How well the other covariates in the model predict the one being tested. 0 means adjustment is free; 0.5 doubles the trial. Estimate it by regressing the covariate of interest on the others in an existing cohort — this is the number covariate adjustment actually costs, and leaving it at 0 is the optimistic choice, not the safe one. - Sidedness of the equality test (
tails): a choice; defaulttwo_sidedPASS’s Example 1 is two-sided and its two validation examples are one-sided. Two-sided spends α/2 on each side.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 (of whom the event rate says how many have the event) (
participants): a whole number, at least 1 Participants (of whom the event rate says how many have the event). 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 covariate’s effect as a hazard ratio, or as its logarithm — the scale the coefficient is estimated on.
- Hazard ratio, the form’s default: The clinical quantity. (fields
hazard_ratio) - Log hazard ratio: The coefficient itself; PASS and Hsieh & Lavori state B this way. (fields
log_hazard_ratio)
Covariate of interest — How much the covariate varies: its standard deviation, or — if it is binary — the share of subjects in one of its groups.
- Standard deviation, the form’s default: For a continuous covariate, or any covariate whose spread you know. (fields
covariate_sd) - Binary — share in one group: σ = √(p(1 − p)); 0.5 gives σ = 0.5. (fields
covariate_share)
Modifiers admitted
posterior_error: Bayesian error rates (posterior error approach)multiplicity: Multiplicity (a family of tests)fdr: False-discovery rate (many features tested at once)dropout: Dropoutgroup_sequential: Group-sequential designassurance: Assurance (prior on the design)
Published examples it reproduces (23)
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 850, Example 1 (printed p. 850-4) | coefficient 0.2 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 45 participants => power 0.22959 (PASS’s one-tail figure; the far tail this engine keeps is 1e-3 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.2; participants = 45; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.22959 ± 0.001 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.2 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 85 participants => power 0.38837 (PASS’s one-tail figure; the far tail this engine keeps is 2e-4 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.2; participants = 85; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.38837 ± 0.0002 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.2 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 125 participants => power 0.52908 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.2; participants = 125; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.52908 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.2 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 165 participants => power 0.64643 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.2; participants = 165; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.64643 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.2 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 205 participants => power 0.74004 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.2; participants = 205; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.74004 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.2 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 245 participants => power 0.81223 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.2; participants = 245; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.81223 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.3 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 45 participants => power 0.44815 (PASS’s one-tail figure; the far tail this engine keeps is 1e-4 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.3; participants = 45; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.44815 ± 0.0001 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.3 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 85 participants => power 0.71043 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.3; participants = 85; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.71043 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.3 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 125 participants => power 0.86202 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.3; participants = 125; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.86202 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.3 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 165 participants => power 0.93865 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.3; participants = 165; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.93865 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.3 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 205 participants => power 0.97412 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.3; participants = 205; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.97412 ± 0.00005 |
| PASS chapter 850, Example 1 (printed p. 850-4) | coefficient 0.3 on a covariate of SD 1.2, event rate 0.70, R² 0.18, two-sided alpha 0.05, 245 participants => power 0.98953 (PASS’s one-tail figure; the far tail this engine keeps is 5e-5 or less here) | Power | alpha = 0.05; covariate_sd = 1.2; event_rate = 0.7; log_hazard_ratio = 0.3; participants = 245; r_squared = 0.18; effect expressed as log_hazard_ratio |
power = 0.98953 ± 0.00005 |
| PASS chapter 850, Example 2 (printed p. 850-7), from Hsieh & Lavori (2000) | B 1.0 on a covariate of SD 0.3126, event rate 0.738, R² 0.1837, one-sided alpha 0.05, power 0.80 => 106, where Hsieh & Lavori print 107 by adjusting for P and R² in two steps | Sample size | alpha = 0.05; covariate_sd = 0.3126; event_rate = 0.738; log_hazard_ratio = 1; power_target = 0.8; r_squared = 0.1837; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 106 ± 0 |
| PASS chapter 850, Example 2 (printed p. 850-8), from Hsieh & Lavori (2000) | the same design with R² 0 and every subject having the event => 64, which Hsieh & Lavori also print — the step before their rounding diverges | Sample size | alpha = 0.05; covariate_sd = 0.3126; event_rate = 1; log_hazard_ratio = 1; power_target = 0.8; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 64 ± 0 |
| PASS chapter 850, Example 3 (printed p. 850-9), from Schoenfeld (1983) p. 502 | a binary covariate at an even split, hazard ratio 1.5, event rate 0.71, one-sided alpha 0.05, power 0.80 => 212, which Schoenfeld also prints | Sample size | alpha = 0.05; covariate_sd = 0.5; event_rate = 0.71; log_hazard_ratio = 0.4055; power_target = 0.8; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 212 ± 0 |
| Hsieh & Lavori 2000, Example (printed p. 557) | LOGBUN, σ 0.3126, log hazard ratio 1, no other covariates, one-sided 5%, power 80% => 64 deaths (participants when every one has the event) | Sample size | alpha = 0.05; covariate_sd = 0.3126; event_rate = 1; log_hazard_ratio = 1; power_target = 0.8; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 64 ± 0 |
| Hsieh & Lavori 2000, Table 1 (printed p. 555) | a covariate of variance 1, log hazard ratio 0.2 per unit, death rate 1.0, one-sided 5%, power 0.9 => 215 deaths and participants | Sample size | alpha = 0.05; covariate_sd = 1; event_rate = 1; log_hazard_ratio = 0.2; power_target = 0.9; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 215 ± 0 |
| Hsieh & Lavori 2000, Table 1 (printed p. 555) | a covariate of variance 1, log hazard ratio 0.35 per unit, death rate 1.0, one-sided 5%, power 0.8 => 51 deaths and participants | Sample size | alpha = 0.05; covariate_sd = 1; event_rate = 1; log_hazard_ratio = 0.35; power_target = 0.8; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 51 ± 0 |
| Hsieh & Lavori 2000, Table 1 (printed p. 555) | a covariate of variance 1, log hazard ratio 0.35 per unit, death rate 1.0, one-sided 5%, power 0.9 => 70 deaths and participants | Sample size | alpha = 0.05; covariate_sd = 1; event_rate = 1; log_hazard_ratio = 0.35; power_target = 0.9; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 70 ± 0 |
| Hsieh & Lavori 2000, Table 1 (printed p. 555) | a covariate of variance 1, log hazard ratio 0.35 per unit, death rate 1.0, one-sided 5%, power 0.95 => 89 deaths and participants | Sample size | alpha = 0.05; covariate_sd = 1; event_rate = 1; log_hazard_ratio = 0.35; power_target = 0.95; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 89 ± 0 |
| Hsieh & Lavori 2000, Table 1 (printed p. 555) | a covariate of variance 1, log hazard ratio 0.5 per unit, death rate 1.0, one-sided 5%, power 0.8 => 25 deaths and participants | Sample size | alpha = 0.05; covariate_sd = 1; event_rate = 1; log_hazard_ratio = 0.5; power_target = 0.8; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 25 ± 0 |
| Hsieh & Lavori 2000, Table 1 (printed p. 555) | a covariate of variance 1, log hazard ratio 0.5 per unit, death rate 1.0, one-sided 5%, power 0.95 => 44 deaths and participants | Sample size | alpha = 0.05; covariate_sd = 1; event_rate = 1; log_hazard_ratio = 0.5; power_target = 0.95; r_squared = 0; tails = one_sided; effect expressed as log_hazard_ratio |
participants = 44 ± 0 |
| Schoenfeld 1983, §4 Example (printed p. 502) | treatment split evenly, hazard ratio 1.5, proportion dying 0.71, one-sided 5%, power 80% => 212 patients | Sample size | alpha = 0.05; covariate_share = 0.5; event_rate = 0.71; hazard_ratio = 1.5; power_target = 0.8; r_squared = 0; tails = one_sided; covariate expressed as binary; effect expressed as hazard_ratio |
participants = 212 ± 0 |
Sources
- NCSS, LLC. PASS 2026 documentation, chapter 850: Cox Regression. Kaysville, UT: NCSS, LLC; 2026.
- Hsieh FY, Lavori PW. Sample-size calculations for the Cox proportional hazards regression model with nonbinary covariates. Control Clin Trials. 2000;21(6):552-560.
- Schoenfeld DA. Sample-size formula for the proportional-hazards regression model. Biometrics. 1983;39(2):499-503.
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 →