Concept Architecture
Weighted Log-Rank
A weighted log-rank test compares time-to-event experience between groups by summing observed-minus-expected event differences at successive event times, with specified weights. The weights determine whether earlier or later risk-set differences contribute more to the test. This can improve sensitivity to an anticipated pattern such as delayed treatment benefit, but the test by itself neither estimates the size of that benefit nor identifies the date at which it begins.
What is compared at each event time?
At event time , let and be the numbers at risk immediately before that time in groups 1 and 0. Let and be their event counts, and define and . Under equal event experience at that risk set, the expected group-1 event count is .
The weighted score is
The sign depends on which arm is labeled group 1: if the event is undesirable, a negative score means fewer observed events in group 1 than expected at the times receiving weight. A positive score does not by itself measure a hazard ratio. When all , this is the ordinary log-rank score. A common large-sample comparison uses and a specified one- or two-sided reference distribution; the variance must match the same weights and risk-set construction.
With a tied event count and a standard hypergeometric risk-set calculation, the variance contribution is
for risk sets with and relevant events. With one event at a time, the unweighted contribution reduces to . Software may use different tie handling or variance conventions; the implementation should be stated. These formulas describe an unstratified two-group illustration, with censoring and entry handled correctly in each risk set.
How the weights choose the time emphasis
One widely used family is Fleming–Harrington, with nonnegative parameters and and pooled Kaplan–Meier survival just before event time :
Using the pooled estimate and its pre-event value avoids defining the current event's weight from the post-event drop at that same time. The relative weights, rather than their absolute scale, drive the standardized score: multiplying every weight by the same positive constant scales both and equally.
| Weight choice | Relative emphasis | Example of a planned question |
|---|---|---|
| Equal weight per event-time score | Is there an overall risk-set difference under a standard log-rank comparison? | |
| Earlier events receive greater weight as pooled survival falls | Is an early difference anticipated? | |
| Later events receive greater weight after pooled survival has fallen | Is a delayed difference anticipated? | |
| Intermediate times can receive greatest weight | Is a middle-period difference anticipated? |
“Later” describes relative emphasis among observed event times, not a separate test restricted to a prespecified late window. A late-weighted score still uses the risk-set history and does not estimate survival only after a chosen date. Sparse late risk sets can make a late-emphasis analysis unstable despite their larger nominal weights.
Worked example with three event times
Consider a teaching dataset with five people initially at risk in each arm, one event at each of three distinct times, and no censoring or delayed entry before these events. Group 1 has an event at times 1 and 3, while group 0 has an event at time 2. Use Fleming–Harrington , so the weight is one minus pooled survival immediately before the event.
| Event time | At risk, group 1 / group 0 | Events, group 1 / total | Weight | Weighted contribution | ||
|---|---|---|---|---|---|---|
| 1 | 5 / 5 | 1 / 1 | 1.0 | 0.0 | ||
| 2 | 4 / 5 | 0 / 1 | 0.9 | 0.1 | ||
| 3 | 4 / 4 | 1 / 1 | 0.8 | 0.2 |
The pooled survival declines from 1 to 0.9 after time 1 and to 0.8 after time 2. The weighted score is . For these distinct single events, the variance is , giving a numerical standardized score of about . This tiny example explains the arithmetic; a large-sample normal -value would not be reliable from only three events. The time-1 event has zero direct weight under this choice, but it affects the pooled survival used to weight later events.
When this test helps and when it misleads
The ordinary log-rank test is often effective when hazards are approximately proportional. A prespecified weighted test can gain power when the chosen weights align with a plausible nonproportional pattern, such as a delay before an immunotherapy effect appears. It can also lose power when reality differs from the planned pattern. Hazard curves that cross may create opposing contributions and cancellation, so simply selecting a late weight does not solve every crossing-hazard problem.
The validity of the comparison depends on correctly defined event times, risk sets and independent or otherwise appropriately handled censoring within the analysis design. A censored person contributes while at risk and then leaves the risk set; censoring is not an event. Delayed entry requires the person to enter the risk set at the proper time. Competing events need a clear endpoint and estimand: a cause-specific event analysis and a cumulative-incidence comparison answer different questions.
Choose the endpoint, direction, weight family and before examining unblinded survival differences for a confirmatory claim. Choosing the most favorable weight after seeing the curves invalidates an unadjusted nominal test level. If several weighted tests are combined or multiple endpoints are analyzed, use a prespecified procedure that accounts for their dependence and multiplicity. A statistically significant weighted test should be interpreted alongside the complete survival curves, numbers at risk, absolute survival differences and a clinically meaningful effect summary.
Connecting a test result to health economic evaluation
Health economic models need absolute survival over time, and often extrapolation beyond trial follow-up, to estimate life-years, QALYs and costs. A weighted log-rank -value supplies neither a survival curve nor a model for long-term hazards. A time-varying hazard ratio, flexible survival model, milestone survival difference or restricted mean survival time may help describe or estimate particular effects, with assumptions appropriate to the decision. The analysis should reconcile its estimand, follow-up window and population with what the economic model actually uses.
For example, a therapy with delayed benefit might generate more QALYs late in follow-up while causing early toxicity and costs. A late-weighted test may help assess evidence of a survival difference under its chosen weighting, but the costs, toxicity, health-state utilities and survival extrapolation must be evaluated separately. The test does not establish cost-effectiveness or prove that late benefits will persist indefinitely.
Reporting and verification checks
Report the endpoint and time origin, arms, risk-set and tie handling, censoring and entry rules, prespecified weight formula and parameters, pooled-survival convention, test direction, multiplicity approach and the event counts over follow-up. Provide survival curves and numbers at risk, explain how the test relates to the effect measure being reported, and distinguish an exploratory analysis from a confirmatory one.
- Check each risk set. At each time, only eligible people still under observation and event-free for the endpoint should be counted.
- Check timing of weights. Fleming–Harrington weights here use pooled survival immediately before, not after, the current event.
- Check tied events. Use a tie-aware variance and test implementation consistent with the displayed event counts.
- Check direction and scale. State which arm is group 1 and whether an event is adverse; rescaling all weights cannot change a properly standardized statistic's magnitude.
- Check interpretation. A weighted log-rank test compares event experience under its weighting and does not quantify QALYs, a constant hazard ratio or the time of treatment-effect onset.
Sources and further reading
A methodological simulation comparison of survival tests under nonproportional hazards evaluates weighted log-rank tests alongside alternative estimands. The original research on improved log-rank-type tests using adaptive weights discusses weighting and time-varying alternatives. A group-sequential survival methods paper explains the Fleming–Harrington late-weighting interpretation and its limits. The risk-set example above is an original teaching calculation, not a clinical trial result.
Related Concepts (2)
Library
Publications
1
NICE DSU Technical Support Document 14: Survival analysis for economic evaluations alongside clinical trials – extrapolation with patient-level data — Nicholas R. Latimer, TSD 14 ed., 2013 (NICE Decision Support Unit (University of Sheffield))
The reference guidance on survival analysis for economic evaluation: fitting standard parametric models (exponential, Weibull, Gompertz, log-logistic, log-normal) to censored trial data and extrapolating to estimate lifetime survival benefit, with a process guide for model selection and justification.
Frequently Asked Questions (6)
What is a weighted log-rank test?
A class of tests comparing survival distributions using different weights at different follow-up times, including the log-rank, Peto, and Tarone-Ware tests.
Source: Fleming & Harrington 1991
What does varying the weights in a weighted log-rank test achieve?
The weights in a weighted log-rank test set how much each event time counts toward the comparison, and adjusting them concentrates the test's sensitivity where a difference between groups is expected. Weighting early events heavily makes the test alert to a difference that appears soon after treatment, while equal weighting spreads its attention across the whole curve. Choosing weights to match the anticipated pattern gives more power to detect that particular kind of difference. The family exists to allow this tuning. Klein and Moeschberger (2003) describe it.
Source: Klein & Moeschberger 2003
How do weighted log-rank tests work?
Weighted log-rank tests work by, at each event time, comparing the observed events in each group with those expected under equal survival, as the log-rank test does, but multiplying each comparison by a weight that may depend on the time or the number at risk, before summing across event times. Different weight functions emphasise events at different times. The weighted sum forms the test statistic, which under the null follows a known distribution, so the choice of weights tunes the test's sensitivity to the pattern of difference.
Source: Fleming & Harrington 1991
What tests belong to the weighted log-rank family?
The weighted log-rank family includes the standard log-rank test, with equal weights, most powerful under proportional hazards; the Wilcoxon, or Gehan, test, weighting by the number at risk to emphasise early events; the Tarone-Ware test, weighting by the square root of the number at risk, an intermediate compromise; the Peto test, using survival-based weights; and the Fleming-Harrington family, with weights that can emphasise early or late events. All compare survival with different weightings, suiting different patterns of difference.
Source: Mantel 1966
Why use weighted log-rank tests?
Weighted log-rank tests are used because the standard log-rank test, weighting all events equally, is most powerful under proportional hazards but can lose power when the survival difference is concentrated in a period, such as early or late. Weighting events to emphasise the expected period of difference can increase power in such cases. Weighted tests thus allow the comparison to be tuned to the anticipated pattern of the treatment effect over time, improving sensitivity where hazards are non-proportional or differences are time-localised.
Source: Fleming & Harrington 1991
How is the weighting chosen for a weighted log-rank test?
The weighting for a weighted log-rank test is chosen according to when a survival difference is expected to emerge: weighting early events suits early differences, weighting late events suits late ones, and equal weighting suits differences spread over time under proportional hazards. The choice, embodied in the particular test used, should be specified in advance based on the anticipated pattern, since selecting the weighting after seeing the data to maximise significance would invalidate the test. The weights determine the pattern of difference the test best detects.
Source: Fleming & Harrington 1991
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 25 Sep 2026
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/weighted-log-rank
- Term code
- HE-EM-SM-092
Stable URI · Machine-readable · Resolvable · CC BY 4.0
