TriaLab Power Studio · Method
Weighted log-rank test with a delayed treatment effect (Hasegawa)
Sizes a two-arm time-to-event trial whose treatment takes time to work — exponential control survival, the treatment at the control hazard until a delayed-onset time and at a lower hazard after it — analysed by the weighted log-rank test with Fleming–Harrington G(ρ, γ) weights, which the log-rank is at ρ = γ = 0. Hasegawa’s recursion after Lakatos, or the same trial simulated.
Also known as: Fleming-Harrington, Fleming–Harrington, delayed onset, delayed effect, late separation, cancer vaccine, immunotherapy, weighted logrank, Hasegawa, G(0,1), non-proportional hazards.
Maturity
Validated: 19 published examples from 2 independent publications (Hasegawa 2014; PASS) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — Under a delayed effect there is no single hazard ratio to put an interval around; the test is what the 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 follow-up is entered here; lengthen it and read the size. A calendar axis for this model is a later addition.
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
- Control hazard rate (λ) (
hazard_control): a number, above 0; default 0.3 The control arm’s constant hazard per unit time — and the treatment arm’s until the delayed-onset time. - Control median survival time (
median_control): a number, above 0; default 2.310491 λ = ln 2 / median, in the same time unit as the accrual, follow-up and delay. - Control proportion surviving at time τ (
survival_control): a number, above 0 and below 1; default 0.740818; entered as proportion (0-1) or percent λ = −ln S / τ. - Time τ at which the proportion surviving is stated (
survival_time): a number, above 0; default 1 Same unit as the other times; used by the proportion-surviving spelling only. - Hazard ratio after the delay (ψ = λ_T / λ_C) (
hazard_ratio): a number, above 0; default 0.6 The treatment arm’s hazard over the control’s once the treatment works; below 1 favours the treatment. - Log hazard reduction after the delay, −ln ψ (
log_hazard_reduction): a number, any finite number; default 0.510826 Positive favours the treatment; the scale the test lives on. - Treatment median survival time (
median_treatment): a number, above 0; default 3.850818 Hasegawa’s spelling: with a control median m_C and a delay T_ε, the hazard ratio after the delay is (m_C − T_ε)/(m_T − T_ε), which needs m_T above the delay. - Delayed-onset time (T_ε) (
delay): a number, at least 0; default 0 How long after randomisation the treatment starts to work; its hazard is the control’s until then. Zero for an immediate, proportional effect. - Accrual period (T_a) (
accrual_duration): a number, at least 0; default 2 Participants enter uniformly over it; the same time unit as the hazard. - Follow-up after accrual (T_f) (
follow_up_duration): a number, at least 0; default 2 The analysis is at T_a + T_f; the last participant in is followed for T_f. - Fleming–Harrington ρ (exponent on Ŝ) (
fh_rho): a number, at least 0; default 0 The weight is Ŝ(t)^ρ (1 − Ŝ(t))^γ. ρ = γ = 0 is the log-rank test; ρ = 1, γ = 0 weights early differences. - Fleming–Harrington γ (exponent on 1 − Ŝ) (
fh_gamma): a number, at least 0; default 1 γ = 1 with ρ = 0 weights late differences, which is what a delayed effect leaves; Hasegawa’s §5 finds the best γ grows with the delay. - Sub-intervals per unit time (b) (
intervals_per_unit), advanced: a whole number, at least 1 and at most 10000; default 30 How finely the study is cut for the recursion: Hasegawa uses 30 for monthly data, PASS 360 for yearly. - Route (
route): a choice; defaultformulaHasegawa’s recursion, or the same trial drawn and analysed by the weighted log-rank test as many times as the replication budget allows, with the power’s Monte Carlo standard error beside it. The simulation solves for the sample size and the power only.formulaFormula (Hasegawa 2014): The recursion; every target.simulationSimulation of the weighted log-rank test: The trial drawn and tested; the replication budget and the seed are set in the calculation’s simulation settings.
- Sidedness of the equality test (
tails): a choice; defaulttwo_sidedHasegawa states the one-sided test at 2.5%; PASS the two-sided at 5%.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
Control survival — The control arm’s exponential survival, as a hazard, a median or a proportion surviving at a time.
- Hazard rate, the form’s default: λ directly. (fields
hazard_control) - Median survival: ln 2 / λ. (fields
median_control) - Proportion surviving at τ: e^{−λτ}. (fields
survival_control,survival_time)
Effect size — The effect once the treatment works: a hazard ratio, its log reduction, or the treatment median it implies.
- Hazard ratio, the form’s default: The quantity a protocol prints. (fields
hazard_ratio) - Log hazard reduction: −ln ψ, the canonical scale. (fields
log_hazard_reduction) - Treatment median: ψ = (m_C − T_ε)/(m_T − T_ε). (fields
median_treatment)
Modifiers admitted
allocation: Allocationdropout: Dropout
Published examples it reproduces (19)
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 |
|---|---|---|---|---|
| Hasegawa 2014, Pharm Stat 13:130-131 (§4, the sipuleucel-T example) | Medians 21.7 and 25.8 months with a six-month delay (HR 0.79 after it), accrual 48 and follow-up 18 months, 2:1, one-sided 0.025, 90%, G(0, 1) => 1974 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 6; fh_gamma = 1; fh_rho = 0; follow_up_duration = 18; intervals_per_unit = 30; median_control = 21.7; median_treatment = 25.8; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 1974 ± 1 |
| Hasegawa 2014, Pharm Stat 13:130-131 (§4, the sipuleucel-T example) | Medians 21.7 and 25.8 months with a six-month delay (HR 0.79 after it), accrual 48 and follow-up 18 months, 2:1, one-sided 0.025, 90%, G(1, 1) => 1833 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 6; fh_gamma = 1; fh_rho = 1; follow_up_duration = 18; intervals_per_unit = 30; median_control = 21.7; median_treatment = 25.8; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 1833 ± 1 |
| Hasegawa 2014, Pharm Stat 13:130-131 (§4, the sipuleucel-T example) | Medians 21.7 and 25.8 months with a six-month delay (HR 0.79 after it), accrual 48 and follow-up 18 months, 2:1, one-sided 0.025, 90%, the log-rank test => 2325 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 6; fh_gamma = 0; fh_rho = 0; follow_up_duration = 18; intervals_per_unit = 30; median_control = 21.7; median_treatment = 25.8; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 2325 ± 1 |
| Hasegawa 2014, Pharm Stat 13:132 (§5.1, Figure 3) | Medians 20 and 26 months, a delay of 0 months, G(0, 0), 2:1, one-sided 0.025, 90% => 969 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 0; fh_gamma = 0; fh_rho = 0; follow_up_duration = 18; intervals_per_unit = 30; median_control = 20; median_treatment = 26; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 969 ± 1 |
| Hasegawa 2014, Pharm Stat 13:132 (§5.1, Figure 3) | Medians 20 and 26 months, a delay of 3 months, G(0, 0.3), 2:1, one-sided 0.025, 90% => 912 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 3; fh_gamma = 0.3; fh_rho = 0; follow_up_duration = 18; intervals_per_unit = 30; median_control = 20; median_treatment = 26; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 912 ± 1 |
| Hasegawa 2014, Pharm Stat 13:132 (§5.1, Figure 3) | Medians 20 and 26 months, a delay of 6 months, G(0, 0.6), 2:1, one-sided 0.025, 90% => 801 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 6; fh_gamma = 0.6; fh_rho = 0; follow_up_duration = 18; intervals_per_unit = 30; median_control = 20; median_treatment = 26; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 801 ± 1 |
| Hasegawa 2014, Pharm Stat 13:132 (§5.1, Figure 3) | Medians 20 and 26 months, a delay of 9 months, G(0, 0.9), 2:1, one-sided 0.025, 90% => 660 | Sample size | accrual_duration = 48; allocation_ratio = 2; alpha = 0.025; delay = 9; fh_gamma = 0.9; fh_rho = 0; follow_up_duration = 18; intervals_per_unit = 30; median_control = 20; median_treatment = 26; power_target = 0.9; tails = one_sided; baseline expressed as median; effect expressed as median_treatment (with allocation) |
participants_total = 660 ± 1 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.2, accrual 3, follow-up 2, G(0, 1), two-sided 0.05, 105 per group => power 0.90144 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.2; fh_gamma = 1; fh_rho = 0; follow_up_duration = 2; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 210 | power = 0.90144 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.25, accrual 3, follow-up 2, G(0, 1), two-sided 0.05, 106 per group => power 0.90085 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.25; fh_gamma = 1; fh_rho = 0; follow_up_duration = 2; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 212 | power = 0.90085 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.3, accrual 3, follow-up 2, G(0, 1), two-sided 0.05, 108 per group => power 0.90212 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.3; fh_gamma = 1; fh_rho = 0; follow_up_duration = 2; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 216 | power = 0.90212 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.2, accrual 3, follow-up 3, G(0, 1), two-sided 0.05, 89 per group => power 0.90269 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.2; fh_gamma = 1; fh_rho = 0; follow_up_duration = 3; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 178 | power = 0.90269 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.25, accrual 3, follow-up 3, G(0, 1), two-sided 0.05, 89 per group => power 0.90006 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.25; fh_gamma = 1; fh_rho = 0; follow_up_duration = 3; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 178 | power = 0.90006 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.3, accrual 3, follow-up 3, G(0, 1), two-sided 0.05, 90 per group => power 0.90001 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.3; fh_gamma = 1; fh_rho = 0; follow_up_duration = 3; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 180 | power = 0.90001 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.2, accrual 3, follow-up 4, G(0, 1), two-sided 0.05, 79 per group => power 0.90104 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.2; fh_gamma = 1; fh_rho = 0; follow_up_duration = 4; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 158 | power = 0.90104 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.25, accrual 3, follow-up 4, G(0, 1), two-sided 0.05, 80 per group => power 0.90231 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.25; fh_gamma = 1; fh_rho = 0; follow_up_duration = 4; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 160 | power = 0.90231 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.3, accrual 3, follow-up 4, G(0, 1), two-sided 0.05, 81 per group => power 0.90305 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.3; fh_gamma = 1; fh_rho = 0; follow_up_duration = 4; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 162 | power = 0.90305 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.2, accrual 3, follow-up 5, G(0, 1), two-sided 0.05, 73 per group => power 0.90101 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.2; fh_gamma = 1; fh_rho = 0; follow_up_duration = 5; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 146 | power = 0.90101 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.25, accrual 3, follow-up 5, G(0, 1), two-sided 0.05, 74 per group => power 0.90278 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.25; fh_gamma = 1; fh_rho = 0; follow_up_duration = 5; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 148 | power = 0.90278 ± 0.0001 |
| PASS 2026 chapter 878, Example 1 | λ 0.34657, HR 0.5 after a delay of 0.3, accrual 3, follow-up 5, G(0, 1), two-sided 0.05, 74 per group => power 0.9003 | Power | accrual_duration = 3; alpha = 0.05; delay = 0.3; fh_gamma = 1; fh_rho = 0; follow_up_duration = 5; hazard_control = 0.34657; hazard_ratio = 0.5; intervals_per_unit = 360; participants_total = 148 | power = 0.9003 ± 0.0001 |
Sources
- Hasegawa T. Sample size determination for the weighted log-rank test with the Fleming-Harrington class of weights in cancer vaccine studies. Pharm Stat. 2014;13(2):128-135.
- NCSS, LLC. PASS 2026 documentation, chapter 878: Weighted Logrank Tests with Fleming-Harrington Weights Allowing Delayed Onset (Hasegawa). Kaysville, UT: NCSS, LLC; 2026.
- Lakatos E. Sample sizes based on the log-rank statistic in complex clinical trials. Biometrics. 1988;44(1):229-241.
- Fleming TR, Harrington DP. Counting Processes and Survival Analysis. New York: Wiley; 1991.
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 →