TriaLab Power Studio · Method
Log-rank test, non-proportional hazards (Lakatos)
Sizes a two-arm time-to-event trial by Lakatos’s Markov model: the control hazard, the treatment effect’s onset, losses, drop-in, non-compliance and the accrual pattern all set period by period, with period weights for the weighted log-rank statistic. Delayed and time-varying effects, switching and staggered entry, as Wu (2018) and PASS present them.
Also known as: Lakatos, Markov, non-proportional hazards, nonproportional, piecewise, delayed effect, drop-in, noncompliance, weighted log-rank, time-dependent hazard.
Maturity
Validated: 13 published examples from 3 independent publications (Lakatos 1988; PASS; Wu 2018) 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 a hazard ratio under non-proportional hazards has no single width to size to; the test is what these sources size.
- 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 study’s length is a whole number of periods with a rate for each; add periods and read the size rather than solving for a length.
Size axes:
- Participants in total, both arms (
participants_total), 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
- Study length, in whole time periods (K) (
periods): a whole number, at least 1 and at most 64; default 3 Accrual plus follow-up, in the unit every rate below is per — years for yearly hazards and yearly losses, months for monthly. Every list below has one entry per period. - Entry (
entry): a choice; defaultstaggeredWhether participants enter over an accrual period, or all at once at the start — Lakatos’s simultaneous entry, an accrual time of zero in PASS.staggeredStaggered over the accrual periods: Entry over the first periods at the pattern’s relative rates; everyone is followed to the study’s end.simultaneousEveryone at once: All enter at time zero and are followed for the whole study; the accrual periods and pattern are not used.
- Accrual, in whole periods (
accrual_periods): a whole number, at least 1 and at most 64; default 1 How many of the study’s first periods participants enter during; the rest is follow-up. Not used when everyone enters at once. - Relative entry rate in each accrual period (
accrual_pattern): one number per element, as many asaccrual_periods; default (1) How fast participants enter in each accrual period, as relative rates: all ones is uniform entry; 1, 2, 2 puts twice the rate in the second and third periods. Within a period entry is uniform. - Control hazard in each period (
hazard_control): one number per element, as many asperiods; default (0.5, 0.5, 0.5) The control arm’s hazard rate, per unit time, in each period of the study — a constant for exponential survival, or a different rate per period. From a survival proportion S over a period, the hazard is −ln S; from a median M, ln 2 / M. - Hazard ratio to detect (λ_T / λ_C), where the effect is in force (
hazard_ratio): a number, above 0; default 0.7 Treatment hazard over control hazard in a period where the onset fraction below is 1; below 1 favours the treatment. - Log hazard reduction, ln(λ_C / λ_T) = −ln HR (
log_hazard_reduction): a number, any finite number; default 0.356675 Positive favours the treatment; the scale the test lives on. - Fraction of the effect in force in each period (
effect_onset): one number per element, as many asperiods; default (1, 1, 1) The share of the log hazard ratio acting in each period: 1 everywhere is proportional hazards; 0, 1, 1, … a treatment that does nothing in the first period and works fully after; 0.5 a period at half the effect on the log scale. Any per-period hazard ratio HR_k is ln HR_k / ln HR. - Proportion of the control arm lost in each period (
loss_control): one number per element, as many asperiods; default (0, 0, 0); entered as proportion (0-1) or percent Lost to follow-up, censored, during the period — of those still on study at its start. Zero for none. - Proportion of the treatment arm lost in each period (
loss_treatment): one number per element, as many asperiods; default (0, 0, 0); entered as proportion (0-1) or percent As for the control arm. - Proportion of the control arm dropping in to the treatment in each period (
dropin): one number per element, as many asperiods; default (0, 0, 0); entered as proportion (0-1) or percent Controls who take up the treatment — or something with its effect — during the period, and are at the treatment hazard from then on while still analysed as controls (intention to treat). Zero for none. - Proportion of the treatment arm stopping the treatment in each period (
noncompliance): one number per element, as many asperiods; default (0, 0, 0); entered as proportion (0-1) or percent Treated participants who stop during the period and are at the control hazard from then on, still analysed as treated. Zero for none. - Weight of each period in the log-rank statistic (
period_weights): one number per element, as many asperiods; default (1, 1, 1) All ones is the log-rank test. A delayed effect is served by weighting the later periods more; only the weights’ proportions matter. Fleming–Harrington weights for a delayed onset have their own kernel. - Sub-intervals per period (B) (
intervals_per_period), advanced: a whole number, at least 1 and at most 1000; default 100 How finely each period is cut for the Markov chain. Wu finds 20 to 200 adequate; PASS uses 100. Lakatos’s own table used 10. - Sidedness of the equality test (
tails): a choice; defaulttwo_sidedLakatos, Wu and PASS state the two-sided test; a one-sided test spends alpha on the side that favours treatment.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 in total, both arms (
participants_total): a whole number, at least 1 Participants in total, both arms. 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 effect as a hazard ratio or its log reduction; the list below says how much of it is in force in each period.
- Hazard ratio, the form’s default: The quantity a protocol prints. (fields
hazard_ratio) - Log hazard reduction: −ln HR, the canonical scale. (fields
log_hazard_reduction)
Modifiers admitted
allocation: Allocationdropout: Dropout
Published examples it reproduces (13)
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 |
|---|---|---|---|---|
| Lakatos 1988, Biometrics 44:231-234; Wu 2018 §7.6 input 1; PASS 902 Example 2 | Hazards 1 and 0.5, two years, simultaneous entry, 3% lost, 4% non-compliance, 5% drop-in, two-sided 0.05, 90% power => 139 (root 138.26 at 100 sub-intervals; 138.57 at Wu’s 20) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.05, 0.05); effect_onset = (1, 1); entry = simultaneous; hazard_control = (1, 1); hazard_ratio = 0.5; intervals_per_period = 100; loss_control = (0.03, 0.03); loss_treatment = (0.03, 0.03); noncompliance = (0.04, 0.04); period_weights = (1, 1); periods = 2; power_target = 0.9 |
participants_total = 139 ± 0.5 |
| Wu 2018, Statistical Methods for Survival Trial Design, §7.6 input 1 (sbdv = 20) | Lakatos’s design at 20 sub-intervals a year: d = 101.43, n = 138.57 => 139 | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.05, 0.05); effect_onset = (1, 1); entry = simultaneous; hazard_control = (1, 1); hazard_ratio = 0.5; intervals_per_period = 20; loss_control = (0.03, 0.03); loss_treatment = (0.03, 0.03); noncompliance = (0.04, 0.04); period_weights = (1, 1); periods = 2; power_target = 0.9 |
participants_total = 139 ± 0.5 |
| PASS 2026 chapter 902, Example 2 (validation using Wu 2018) | Lakatos’s design at 139: PASS prints 0.90181 for 69 + 70; the even split gives 0.90150 | Power | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.05, 0.05); effect_onset = (1, 1); entry = simultaneous; hazard_control = (1, 1); hazard_ratio = 0.5; intervals_per_period = 100; loss_control = (0.03, 0.03); loss_treatment = (0.03, 0.03); noncompliance = (0.04, 0.04); participants_total = 139; period_weights = (1, 1); periods = 2 |
power = 0.90181 ± 0.0004 |
| PASS 2026 chapter 902, Example 1; PASS 879, Example 1 | S1 0.50, S2 0.65 at one year, accrual one year of three, 5% lost, 3% drop-in, 4% non-compliance, two-sided 0.05, 80% power => 226 in all (PASS splits it 113/113) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.03, 0.03, 0.03); effect_onset = (1, 1, 1); entry = staggered; hazard_control = (0.693147, 0.693147, 0.693147); hazard_ratio = 0.621488; intervals_per_period = 100; loss_control = (0.05, 0.05, 0.05); loss_treatment = (0.05, 0.05, 0.05); noncompliance = (0.04, 0.04, 0.04); period_weights = (1, 1, 1); periods = 3; power_target = 0.8 |
participants_total = 226 ± 1 |
| PASS 2026 chapter 902, Example 1; PASS 879, Example 1 | S1 0.50, S2 0.65 at one year, accrual one year of three, 5% lost, 3% drop-in, 4% non-compliance, two-sided 0.05, 90% power => 303 in all (PASS splits it 151/152) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.03, 0.03, 0.03); effect_onset = (1, 1, 1); entry = staggered; hazard_control = (0.693147, 0.693147, 0.693147); hazard_ratio = 0.621488; intervals_per_period = 100; loss_control = (0.05, 0.05, 0.05); loss_treatment = (0.05, 0.05, 0.05); noncompliance = (0.04, 0.04, 0.04); period_weights = (1, 1, 1); periods = 3; power_target = 0.9 |
participants_total = 303 ± 1 |
| PASS 2026 chapter 902, Example 1; PASS 879, Example 1 | S1 0.50, S2 0.7 at one year, accrual one year of three, 5% lost, 3% drop-in, 4% non-compliance, two-sided 0.05, 80% power => 123 in all (PASS splits it 61/62) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.03, 0.03, 0.03); effect_onset = (1, 1, 1); entry = staggered; hazard_control = (0.693147, 0.693147, 0.693147); hazard_ratio = 0.514573; intervals_per_period = 100; loss_control = (0.05, 0.05, 0.05); loss_treatment = (0.05, 0.05, 0.05); noncompliance = (0.04, 0.04, 0.04); period_weights = (1, 1, 1); periods = 3; power_target = 0.8 |
participants_total = 123 ± 1 |
| PASS 2026 chapter 902, Example 1; PASS 879, Example 1 | S1 0.50, S2 0.7 at one year, accrual one year of three, 5% lost, 3% drop-in, 4% non-compliance, two-sided 0.05, 90% power => 165 in all (PASS splits it 82/83) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.03, 0.03, 0.03); effect_onset = (1, 1, 1); entry = staggered; hazard_control = (0.693147, 0.693147, 0.693147); hazard_ratio = 0.514573; intervals_per_period = 100; loss_control = (0.05, 0.05, 0.05); loss_treatment = (0.05, 0.05, 0.05); noncompliance = (0.04, 0.04, 0.04); period_weights = (1, 1, 1); periods = 3; power_target = 0.9 |
participants_total = 165 ± 1 |
| PASS 2026 chapter 902, Example 1; PASS 879, Example 1 | S1 0.50, S2 0.75 at one year, accrual one year of three, 5% lost, 3% drop-in, 4% non-compliance, two-sided 0.05, 80% power => 75 in all (PASS splits it 37/38) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.03, 0.03, 0.03); effect_onset = (1, 1, 1); entry = staggered; hazard_control = (0.693147, 0.693147, 0.693147); hazard_ratio = 0.415037; intervals_per_period = 100; loss_control = (0.05, 0.05, 0.05); loss_treatment = (0.05, 0.05, 0.05); noncompliance = (0.04, 0.04, 0.04); period_weights = (1, 1, 1); periods = 3; power_target = 0.8 |
participants_total = 75 ± 1 |
| PASS 2026 chapter 902, Example 1; PASS 879, Example 1 | S1 0.50, S2 0.75 at one year, accrual one year of three, 5% lost, 3% drop-in, 4% non-compliance, two-sided 0.05, 90% power => 101 in all (PASS splits it 50/51) | Sample size | accrual_pattern = (1); accrual_periods = 1; alpha = 0.05; dropin = (0.03, 0.03, 0.03); effect_onset = (1, 1, 1); entry = staggered; hazard_control = (0.693147, 0.693147, 0.693147); hazard_ratio = 0.415037; intervals_per_period = 100; loss_control = (0.05, 0.05, 0.05); loss_treatment = (0.05, 0.05, 0.05); noncompliance = (0.04, 0.04, 0.04); period_weights = (1, 1, 1); periods = 3; power_target = 0.9 |
participants_total = 101 ± 1 |
| Wu 2018 §7.6 input 2 (the SHEP trial, after Lakatos 1996) | Six years in quarters, 1.6% yearly control events, HR 0.5981, losses 3% rising to 4%, non-compliance 7% then 3.5%, drop-in 9% then 4.5–6.5%, accrual 2:4:5 over 0.25, 0.25 and 1.5 years, two-sided 0.05, 90% => 4950 (his 4949.1, this chain’s 4949.3) | Sample size | accrual_pattern = (2, 4, 5, 5, 5, 5, 5, 5); accrual_periods = 8; alpha = 0.05; dropin = (0.023302, 0.023302, 0.023302, 0.023302, 0.011445, 0.011445, 0.011445, 0.011445, 0.012741, 0.012741, 0.012741, 0.012741, 0.014043, 0.014043, 0.014043, 0.014043, 0.01535, 0.01535, 0.01535, 0.01535, 0.016662, 0.016662, 0.016662, 0.016662); effect_onset = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); hazard_control = (0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032, 0.004032); hazard_ratio = 0.5981; intervals_per_period = 25; loss_control = (0.007586, 0.007586, 0.007586, 0.007586, 0.008098, 0.008098, 0.008098, 0.008098, 0.008611, 0.008611, 0.008611, 0.008611, 0.009124, 0.009124, 0.009124, 0.009124, 0.009638, 0.009638, 0.009638, 0.009638, 0.010154, 0.010154, 0.010154, 0.010154); loss_treatment = (0.007586, 0.007586, 0.007586, 0.007586, 0.008098, 0.008098, 0.008098, 0.008098, 0.008611, 0.008611, 0.008611, 0.008611, 0.009124, 0.009124, 0.009124, 0.009124, 0.009638, 0.009638, 0.009638, 0.009638, 0.010154, 0.010154, 0.010154, 0.010154); noncompliance = (0.017979, 0.017979, 0.017979, 0.017979, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867, 0.008867); period_weights = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); periods = 24; power_target = 0.9 | participants_total = 4950 ± 1 |
| Wu 2018 §7.6 input 3 (the PBC trial, Weibull control, Table 7.3) | Nine yearly control event probabilities 0.046 to 0.089 from a Weibull with median 9 and shape 1.22, HR 0.5834, uniform accrual over six years, no loss, two-sided 0.05, 90% => 532 (d = 148.6) | Sample size | accrual_pattern = (1, 1, 1, 1, 1, 1); accrual_periods = 6; alpha = 0.05; dropin = (0, 0, 0, 0, 0, 0, 0, 0, 0); effect_onset = (1, 1, 1, 1, 1, 1, 1, 1, 1); entry = staggered; hazard_control = (0.04749, 0.063142, 0.070809, 0.076287, 0.080646, 0.084295, 0.087455, 0.090253, 0.092773); hazard_ratio = 0.5834; intervals_per_period = 100; loss_control = (0, 0, 0, 0, 0, 0, 0, 0, 0); loss_treatment = (0, 0, 0, 0, 0, 0, 0, 0, 0); noncompliance = (0, 0, 0, 0, 0, 0, 0, 0, 0); period_weights = (1, 1, 1, 1, 1, 1, 1, 1, 1); periods = 9; power_target = 0.9 |
participants_total = 532 ± 0.5 |
| Wu 2018 §7.6 input 5 (the PBC trial adjusted for loss, switching, non-uniform accrual and a 1:2 allocation) | The Kaplan–Meier yearly rates, HR 0.5834, 3% lost, 5% non-compliance, 4% drop-in, accrual 1:1:1:2:2:2, control : treatment 1:2, two-sided 0.05, 90% => 1126 (d = 255) | Sample size | accrual_pattern = (1, 1, 1, 2, 2, 2); accrual_periods = 6; allocation_ratio = 2; alpha = 0.05; dropin = (0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04); effect_onset = (1, 1, 1, 1, 1, 1, 1, 1, 1); entry = staggered; hazard_control = (0.058689, 0.034519, 0.097944, 0.078026, 0.076125, 0.068686, 0.123853, 0.074637, 0.125654); hazard_ratio = 0.5834; intervals_per_period = 100; loss_control = (0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03); loss_treatment = (0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03); noncompliance = (0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05); period_weights = (1, 1, 1, 1, 1, 1, 1, 1, 1); periods = 9; power_target = 0.9 (with allocation) |
participants_total = 1126 ± 1 |
| PASS 2026 chapter 879, Example 8 (weight set W1) | Thirty months, a three-month delay then HR 0.5146, twelve months of accrual, monthly loss and switching, 1:2 allocation, two-sided 0.05, 90%, unit weights => 504 (168 + 336; the root is 502.3 and PASS rounds the control arm up) | Sample size | accrual_pattern = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); accrual_periods = 12; allocation_ratio = 2; alpha = 0.05; dropin = (0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265, 0.004265); effect_onset = (0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); entry = staggered; hazard_control = (0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881, 0.028881); hazard_ratio = 0.514588; intervals_per_period = 100; loss_control = (0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535); loss_treatment = (0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535, 0.002535); noncompliance = (0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396, 0.003396); period_weights = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); periods = 30; power_target = 0.9 (with allocation) |
participants_total = 504 ± 1.5 |
Sources
- Lakatos E. Sample sizes based on the log-rank statistic in complex clinical trials. Biometrics. 1988;44(1):229-241.
- Wu J. Statistical Methods for Survival Trial Design: With Applications to Cancer Clinical Trials Using R. Boca Raton: CRC Press; 2018. Chapter 7 and Appendix D.3.
- NCSS. PASS 2026 chapter 902, Logrank Tests with Non-Proportional Hazards (Lakatos and Wu); chapter 879, Weighted Logrank Tests with Non-Proportional Hazards (Lakatos and Wu).
- Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §7.4.
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 →