Choosing a Weight for an Anticipated Delay
The ordinary logrank test gives events similar influence throughout follow-up. When the treatment effect is expected to emerge only after a delay, events before onset may add variability without contributing much treatment signal. A weighted logrank test changes the influence of events over time. The design question is not simply whether to weight, but which prespecified time pattern best matches the scientific expectation about when the effect begins.
The introductory material on Fleming–Harrington weights explains how their parameters alter time emphasis. Here the emphasis is on choosing among those weights and piecewise alternatives for a stated delayed-effect scenario. The choice must be made using external knowledge or a prespecified design assumption, not by trying several weights on the observed treatment outcomes and reporting the most favorable result.
For a beneficial treatment that reduces the event hazard, it is convenient to define the score \(B_w\) so that positive values favor treatment: \(B_w\) is the negative of the usual treatment-minus-expected logrank score, with each event contribution multiplied by \(w(t)\). Its standardized statistic is \(T_w=B_w/\sqrt{V_w}\), where \(V_w\) is the variance under the null hypothesis. A larger positive \(T_w\) is evidence in the prespecified beneficial direction.
Assumptions and the Signal–Variance Trade-off
The comparison below concerns randomized time-to-event trials in which treatment assignment is independent of potential outcomes, censoring is noninformative for the event-time comparison (or handled appropriately by the design and analysis), and the chosen weight is fixed by the protocol. Event times are assumed to be observed with a valid risk-set construction; ties require a consistent standard logrank handling rule. Under the null, the weighted score is calibrated using its corresponding weighted variance. In a group sequential design, the same weight rule must be used at each look, and the stopping boundaries must be calibrated for that rule and its repeated looks.
A useful planning approximation divides follow-up into intervals. Let \(a_k\) be the anticipated mean beneficial score contribution in interval \(k\) before applying a weight, and let \(v_k\) be that interval’s null variance contribution. If the weighted score increments across intervals are approximately independent, then for interval weights \(w_k\),
The last expression is an approximate standardized signal, not an exact power calculation. It makes the design trade-off visible: increasing a weight where anticipated signal is strong can help, while increasing a weight where signal is absent can add variance without a matching increase in the mean.
For a small, time-varying hazard reduction, the direction and rough size of the anticipated interval signal can be related to the hazard ratio. If \(\theta(t)\) is the treatment-to-control hazard ratio and \(\pi\) is the treatment allocation fraction, then the expected beneficial score contribution per event under the alternative is approximately
When \(\theta(t)\) is near 1, this is approximately \(\pi(1-\pi)[1-\theta(t)]\). Thus, an interval with no anticipated treatment effect has little expected signal even though it can still contribute null variance. This is the basic reason a delayed-effect design may consider reducing the influence of early events.
A Short Justification for Matching Weight to Signal
The interval approximation also gives a simple benchmark for comparing candidate weights. Write \(x_k=w_k\sqrt{v_k}\) and \(y_k=a_k/\sqrt{v_k}\). Then the approximate standardized signal is the dot product of these vectors divided by the length of \(x\):
The inequality is Cauchy–Schwarz. Equality holds when \(x_k\) is proportional to \(y_k\), or equivalently when \(w_k\) is proportional to \(a_k/v_k\). This is an oracle benchmark: it assumes the signal pattern is known. In practice it is not a license to estimate an unrestricted weight from the trial’s observed outcomes. A real design chooses a simple, interpretable weight from a plausible prespecified scenario, recognizing that the true onset and effect size may differ.
Worked Example: A Piecewise Weight for a Delayed Effect
Suppose a hypothetical trial anticipates no treatment benefit in the first follow-up interval and a benefit thereafter. For three intervals, planning calculations give anticipated beneficial score contributions \(a=(0,2.8,5.0)\) and null variance contributions \(v=(40,35,25)\). Compare the ordinary logrank weight \(w=(1,1,1)\) with a prespecified piecewise weight \(w=(0,1,1)\), which omits the first interval.
With the ordinary weight, the approximate mean score is \(0+2.8+5.0=7.8\), and the variance is \(40+35+25=100\). Therefore,
With the piecewise weight, the first interval contributes neither anticipated mean nor weighted variance. The approximate mean remains \(7.8\), while the variance is \(35+25=60\):
Under this planning scenario, the piecewise rule has a larger approximate standardized signal because it removes variance from an interval with no anticipated effect. This comparison assumes the first interval truly has little or no treatment effect; if benefit begins earlier, discarding its events could instead reduce the signal.
Matching Fleming–Harrington and Piecewise Weights to Onset
Fleming–Harrington weights provide a smooth time emphasis based on pooled survival. A positive \(\rho\) emphasizes earlier event times relative to later ones, while a positive \(\gamma\) emphasizes later event times. For an anticipated delayed benefit, a late-emphasizing choice such as \((\rho,\gamma)=(0,1)\) may be more aligned with the scenario than an early-emphasizing choice such as \((1,0)\). These are relative emphases, not guarantees that early contributions are removed: a Fleming–Harrington weight generally remains nonzero before the anticipated onset.
A piecewise rule can express onset more directly. For example, \(w(t)=0\) before a prespecified delay time \(\tau\) and \(w(t)=1\) from \(\tau\) onward assigns no score contribution to earlier events. Other piecewise choices can use a gradual increase or a nonzero early weight. The cutpoint and values should have a clinical or design rationale. Time should be defined unambiguously, usually as time since randomization, and the same rule must be applied to all participants.
Worked Example: Comparing Fleming–Harrington Choices
Consider a hypothetical three-period planning scenario with pooled survival values just before the periods of \(0.80\), \(0.50\), and \(0.20\). Suppose anticipated score contributions are \(a=(0,2,6)\) and null variance contributions are \(v=(30,40,30)\). Compare the ordinary weight, the late-emphasizing Fleming–Harrington weight \(w(t)=1-\hat S(t-)\), and the early-emphasizing weight \(w(t)=\hat S(t-)\).
The ordinary weight gives mean \(0+2+6=8\) and variance \(30+40+30=100\), so its approximate standardized signal is \(8/\sqrt{100}=0.800\).
For \(w(t)=1-\hat S(t-)\), the period weights are \((0.20,0.50,0.80)\). The weighted mean is \(0(0.20)+2(0.50)+6(0.80)=5.8\). The weighted variance is \(30(0.20^2)+40(0.50^2)+30(0.80^2)=1.2+10+19.2=30.4\). Thus, the approximate standardized signal is \(5.8/\sqrt{30.4}=1.052\).
For \(w(t)=\hat S(t-)\), the weights are \((0.80,0.50,0.20)\). The weighted mean is \(0(0.80)+2(0.50)+6(0.20)=2.2\), and the variance is \(30(0.80^2)+40(0.50^2)+30(0.20^2)=19.2+10+1.2=30.4\). The standardized signal is \(2.2/\sqrt{30.4}=0.399\). In this scenario, the late-emphasizing weight aligns better with the anticipated signal than either the ordinary or early-emphasizing choice. The calculation illustrates a planning comparison; it does not establish that this weight will be best if the actual effect pattern differs.
Worked Example: How a Mistimed Cutpoint Changes the Comparison
Suppose a hypothetical design uses four follow-up intervals with \(v=(25,25,25,25)\). The anticipated effect begins at the start of interval 3, giving \(a=(0,0,3,3)\). Compare a piecewise weight that starts at interval 3, \(w=(0,0,1,1)\), with one that starts at interval 4, \(w=(0,0,0,1)\).
For the cutpoint at interval 3, the weighted mean is \(3+3=6\), and the variance is \(25+25=50\). The approximate standardized signal is \(6/\sqrt{50}=0.849\).
For the later cutpoint, the weighted mean is \(3\), and the variance is \(25\), giving \(3/\sqrt{25}=0.600\). The later cutpoint discards an interval that was expected to contain treatment benefit, so its loss of signal outweighs the reduction in variance in this scenario. A cutpoint that sounds “late” is not automatically preferable: it must match the anticipated onset rather than merely emphasize the latest follow-up.
Design Checks, Comparisons, and Limitations
Before selecting a rule, state the anticipated onset pattern in words and translate it into interval-specific expected effects. Then compare a small number of plausible candidates using the same assumptions about allocation, event accrual, censoring, and follow-up. A useful planning table records each candidate’s interval weights, approximate mean score, variance, and standardized signal. If a claimed improvement comes from the mean alone, without accounting for the variance change, the comparison is incomplete.
The ordinary logrank test is a natural reference: it is simple and can be efficient when a common hazard ratio is plausible throughout follow-up. Fleming–Harrington weights offer a smooth, survival-based emphasis and avoid specifying a single sharp time cutpoint, but may not closely match an abrupt onset. Piecewise weights can represent a specified delay directly, but their performance can be sensitive to the cutpoint. Neither family is uniformly best. If timing is genuinely uncertain, a single specialized weight can be fragile; any approach that considers multiple candidate tests needs an appropriate prespecified method for controlling the overall type I error.
In a sequential trial, a weight choice is also part of the monitoring design. Weighted score trajectories and their covariance across looks need to match the statistic being monitored. Boundaries calibrated for an ordinary logrank statistic cannot simply be assumed valid for a different weighted statistic. The effect of unequal allocation, changing event information, and the planned analysis must also be reflected in design calculations.
Several diagnostics can reveal that the plan or analysis is going wrong. Check that the weight is evaluated using event time immediately before the event, that the time origin and cutpoints are applied consistently, and that the score and variance use the same weights. Compare observed survival patterns with the scientific onset assumption, but do not use unblinded outcome patterns to switch to a more favorable weight without a valid adaptation and error-control plan. A weighted test may have low power if the true effect starts earlier or later than anticipated, if the effect is weaker than planned, or if hazards cross rather than show the assumed delayed benefit. It also does not by itself provide a complete description of the treatment effect over time.
- Mistake: choosing the weight that gives the smallest p-value among several candidates after seeing treatment outcomes. Correction: prespecify the weight, or use a prespecified multiplicity-controlled strategy.
- Mistake: assuming a late-emphasizing Fleming–Harrington weight gives zero weight to all early events. Correction: inspect the actual function; if early events must be excluded, consider a justified piecewise rule.
- Mistake: selecting a very late cutpoint because the effect is described as delayed, without checking the assumed onset time. Correction: quantify anticipated signal and variance on both sides of the cutpoint.
- Mistake: comparing weighted tests using only their expected scores. Correction: compare standardized signal, which accounts for the weight-squared variance.
Check Your Understanding
Answer each question using the planning logic above. Short solutions follow the questions.
- If treatment benefit is expected only after a prespecified delay, why might assigning weight zero before that time improve approximate standardized signal?
- For interval values \(a=(0,4)\), \(v=(16,9)\), compare the approximate standardized signal for \(w=(1,1)\) and \(w=(0,1)\).
- Which Fleming–Harrington choice, \((\rho,\gamma)=(1,0)\) or \((0,1)\), gives greater relative emphasis to later event times?
- Why is choosing the best-looking weight after inspecting treatment outcomes a problem?
Solutions. (1) If the early interval has little anticipated signal, setting its weight to zero removes its variance contribution as well; the resulting standardized signal can rise if the later signal is retained. (2) With \(w=(1,1)\), the signal is \(4/\sqrt{16+9}=4/5=0.800\). With \(w=(0,1)\), it is \(4/\sqrt{9}=1.333\). Under these assumptions, omitting the first interval increases the approximate signal. (3) The choice \((0,1)\) gives greater relative emphasis to later event times because its weight is \(1-\hat S(t-)\). (4) Outcome-driven selection creates a multiple-testing problem and can inflate the type I error unless the selection procedure is incorporated into a valid prespecified analysis.