The survival estimates favor the new treatment at the two reported times, with absolute survival differences at two years and at five years. These point differences alone do not establish efficacy. Randomization supports a causal comparison of the treatment assignments, but sampling variance, censoring, follow-up, protocol adherence and the prespecified endpoint still matter. One should not infer a statistically established benefit merely from two larger estimates.
A Kaplan–Meier estimator is
where is the risk set and the event count. Its uncertainty depends on the actual risk sets, not just the initial group size. The Greenwood formula estimates
Without the missing survival tables one cannot calculate these standard errors or the uncertainty of the group difference. In particular, replacing the estimator variance by the variance of an uncensored binomial proportion would generally be wrong.
I would advise presenting both curves with numbers at risk and confidence intervals, checking independent censoring, and reporting a prespecified overall comparison plus an effect estimate and interval. For an unadjusted log-rank test, write and . Its hypergeometric null variance is
Terms with no possible variation contribute zero. This compares the entire event history rather than selecting two arbitrary times, uses the available risk sets, and avoids choosing favorable time points after examining the curves. It is especially effective under proportional hazards. Crossing curves can make a log-rank comparison insensitive; a prespecified restricted mean survival time difference or another suitable time-varying analysis may then be more informative. An overall comparison does not make a clinically important prespecified time-point contrast invalid.
The Kaplan–Meier median survival time is the first event time at which . Monotonicity of the reported estimates implies
If the new-treatment curve never reaches one half during observed follow-up, its median is not estimable from that curve. The exact crossing times cannot be reconstructed from two survival probabilities: the standard curve could first cross at three or at four years and still have the same values at two and five years. The point estimates suggest benefit, but the evidence and exact medians require the missing event/censoring tables. Neither a conclusive agreement nor a conclusive rejection of benefit is justified from these numbers alone.
The log-rank test compares event counts with their conditional expectations under equal group hazard functions, using the individuals currently in each risk set. Assume the usual independent censoring conditions and independent strata. At pooled event time , let be the group numbers at risk, , and let be the event counts with total . Under the null hypothesis, conditioning on the risk counts and total events gives the hypergeometric distribution
Thus the null expected A count and its conditional variance are
When there is only one person at risk, the event allocation is deterministic and its variance is zero. The unstandardized log-rank statistic is , with variance estimate . Under standard large-sample conditions, is approximately standard normal under the null; the test detects systematic group differences in event rates. It is particularly effective for proportional-hazards alternatives, while crossing effects can cancel in the score.
For a stratified log-rank statistic, construct these risk sets and observed-minus-expected differences separately within each stratum , then sum:
This allows different baseline hazard functions between strata and avoids comparing an event with individuals in another stratum. The null is equal A and B hazards within each stratum, together with a censoring mechanism that does not invalidate the within-risk-set comparison.
In a paired stratum, both individuals initially form the risk set. A first event while both are still observed gives one nontrivial event allocation. After either individual leaves, every subsequent event is certain to belong to the only remaining group and has observed count equal to expected count. Therefore each pair supplies at most one informative table. A pair supplies none if the first exit is censoring before either observed event, if neither has an event during their joint follow-up, or if both fail simultaneously so that the tied event allocation is fixed. An event-censoring tie needs a specified convention; with events processed before same-time censoring, the other individual remains at risk for that event and the pair is informative. The untied continuous-time case avoids this ambiguity.
If A has the informative first event, the table at that time is
The phrase in the second column refers only to this event time; it does not mean that B can never fail. The expected A count is , so this table contributes to , with variance . An informative B-first pair contributes . All other tables contribute zero. Therefore the requested unnormalized score is
A positive score means more observed early events on A. There is no need to standardize it to answer the question.
To obtain an exact conditional law, put . Under the within-pair equal-hazard null, conditional on an event while both are at risk, either subject supplies it with probability . Equivalently, before the pair's first exit, the cause-specific event intensities for A and B are equal; integration over the common period of joint observation gives equal probabilities for the two informative outcomes. This argument requires noninformative observation of the failure process, not just equality of unadjusted marginal survival curves. Different independent pairs then have independent fair signs when informative. Conditioning on the set of informative pairs gives independent Bernoulli outcomes with probability ; conditioning only on their count mixes identical binomial laws and gives the same result:
This proves the paired log-rank reduction to a sign test. The conditional mass function is , , so an exact two-sided p-value sums the masses for with . If , there is no information for a treatment comparison. Failure-time distances beyond their ordering play no role in this paired score.
Under the null hypothesis of equal survival distributions, the two groups have the same event hazard. Conditional on the current risk set and one event, the event is in A with probability and in B with probability . Consequently, whenever both groups are represented,
Thus a weighted sum of differences in estimated hazard increments is centered under the null. Its sign reflects which group has more events relative to its numbers at risk. The weights may depend on event time and the preceding risk sets, but must not be chosen after seeing which group failed; otherwise this conditional-centering argument fails. Positive weights emphasize selected time regions without reversing an increment's direction. Such tests can have weak power against crossing hazards whose positive and negative contributions cancel.
Let , so . Its conditional null variance is . Since the unweighted hazard difference is , the conditional variance of its weighted contribution is . Successive centered contributions form martingale differences. Their variance contributions add, providing a variance standardization for the test.
With the specified log-rank weight, put . Then
Therefore the displayed sum is exactly the unstandardized log-rank statistic
Its two-sided large-sample log-rank test uses when and information is sufficient. If one group has no remaining subjects at some event time, its event contributes zero information. Use the final observed-minus-expected expression to define the contribution as zero; the original divided expression has an undefined and the log-rank weight becomes zero there. Thus strict positivity of the proposed weights implicitly restricts the comparison to event times when both groups are at risk. Independent censoring and a valid conditional common-hazard model are required throughout.
At day 165 there are two A and two B individuals at risk. The event is in A, with expected A count , so its score contribution is and its variance contribution is . The remaining A individual is censored at 173 and leaves the risk set before either later event. The risk-set calculations are
Event dayVariance
165221
180020000
191010000
Thus
The positive score indicates higher A event hazard in this late contribution. Although B has more observed events, its two events occur with no A individual at risk, so those times do not compare the groups. This is why raw event totals alone are insufficient for the log-rank test.
The log-rank test compares survival experience through the allocation of events within the successive risk sets. Its null is equal hazard functions between the groups over follow-up, with independent individuals and noninformative censoring within groups. At each distinct event time , let be the numbers at risk immediately before that time, and let be event counts. Under the null, conditional on the total , the expected number of A events is .
The signed log-rank statistic is the observed-minus-expected score
A positive score indicates relatively more A events than expected, hence a higher event hazard for A; B's score is its negative. Censoring times do not produce score terms, but remove people from all later risk sets.
At each event time the conditional null allocation is hypergeometric, as if the events were sampled without replacement from the risk set. Its variance gives the score-increment variance, with the finite-population correction for ties. Summing these conditional variances gives , since distinct-time martingale score increments have zero cross covariance under the null. For sufficiently many informative events, is approximately standard normal and approximately chi-squared with one degree of freedom. In the no-tie case, each variance contribution is . A time at which only one group remains at risk contributes no comparative information.
The numerical parts below report signed-score and variance contributions after day 160. They cannot be added as separate chi-squared statistics to the earlier follow-up: add the scores and variances first, and standardize once for the complete dataset. The log-rank test is particularly effective for proportional hazards alternatives; crossing hazards can produce cancelling score contributions.
is the number in group still observed and event-free immediately before event time : its group-specific risk set size. Set . Under the common hazard function and conditional on exactly one event at that time, each at-risk individual has the same infinitesimal event probability. Therefore
The indicator records whether the event came from group 1, while is its conditional expectation under equal hazards. Thus is the observed-minus-expected group-1 event count at that time. Under the null these are martingale differences, with conditional variance
The log-rank statistic has null mean zero. Its predictable variance estimate is , so the equal-hazards test uses
Use a two-sided large-sample log-rank test if no direction was prespecified; and adequate information are needed. The variance is the no-ties form. A positive indicates more group-1 events than expected. Independent censoring conditional on the model is required for these at-risk event intensities to describe the data.
Under the proportional hazards model, the total instantaneous group- rate is . Conditioning on the next event cancels the baseline hazard, giving
Keep defined using its null probability , as in the question. Its conditional expectation under the alternative is
It is zero at , as required, and has the sign of when both groups remain at risk. Replacing inside the definition of with the alternative probability would give a different residual, whose mean would instead be zero under that alternative.
Summing the observed-minus-expected contributions gives the unstandardized log-rank statistic
Under the null it is centered at zero. A two-sided log-rank test compares its magnitude with the square root of its null variance.
Construct the two countries' period-specific risk sets with the same left truncation and right censoring rules, then compare their event counts by a log-rank test. This is a nonparametric comparison because it does not specify the shape of either country's hazard function.
The log-rank test compares observed failures in each group with the numbers expected under equal hazards, conditioning at every event time on the risk set and total failures. Its score sums and is standardized by its null hypergeometric variance. It is most powerful for approximately proportional hazards. Strongly crossing survival curves can produce large positive and negative contributions that cancel, so very different distributions may yield a weak log-rank statistic.