Signature
R_2 = R_s - 0.5 * (s_1 + s_2); P_B = s_1 * s_2 / R_s^2; P_E = s_1 * s_2 / (R_s * R_2); dH_B = 2 / R_s; dH_E = 1 / R_s + 1 / R_2
| Inputs | Definition | Unit |
|---|---|---|
R_s | Sum of the risk scores of everyone at risk just before this time, including s_1 and s_2 | ratio, no unit |
s_1 | Risk score of one of the two people who died at this time | ratio, no unit |
s_2 | Risk score of the other person who died at this time | ratio, no unit |
R_2 | Summed scores with the two who died each weighted one half | ratio, no unit |
|---|---|---|
P_B | Product of the two scores over R_s squared | none |
P_E | Product of the two scores over R_s times R_2 | none |
dH_B | Two over R_s | events per person |
dH_E | One over R_s plus one over R_2 | events per person |
Function
Cox proportional hazards model function for hazards, partial likelihood and baseline curves
Maps right-censored survival records with covariates to the coefficients of the Cox model, their standard errors and the estimated baseline curve. HE-FM-CPH-001 gives the hazard and survival of one covariate profile from a baseline and a linear predictor, HE-FM-CPH-002 the partial likelihood over the risk sets, HE-FM-CPH-003 one step of the Breslow baseline cumulative hazard, HE-FM-CPH-004 the Breslow and Efron terms for two tied deaths, and HE-FM-CPH-005 a hazard ratio that changes with log time. HE-CF-CPH-001 maximises the partial likelihood by Newton-Raphson. HE-FM-HR-002 turns a coefficient into a hazard ratio, HE-FM-HR-006 gives its confidence interval, HE-FN-CUMH-001 links a cumulative hazard to survival and HE-FM-HR-003 is the power rule for a survival curve, and none of these is restated here as a formula of its own. Notation follows the Cox Proportional Hazards article.
Try this function
Implementations
Excel
Excel Breslow and Efron terms for two tied Cox deaths
With ScoreFirst, ScoreSecond and RiskSetScore as inputs, the formulas go in RiskSetSecondDraw, BreslowTerm, EfronTerm, BreslowIncrement and EfronIncrement.
=RiskSetScore-0.5*(ScoreFirst+ScoreSecond); =ScoreFirst*ScoreSecond/RiskSetScore^2; =ScoreFirst*ScoreSecond/(RiskSetScore*RiskSetSecondDraw); =2/RiskSetScore; =1/RiskSetScore+1/RiskSetSecondDraw
Assumptions
Exactly two deaths at the tied Cox time
The line covers two deaths. For d deaths the k-th denominator subtracts (k-1)/d of the deaths' summed scores (derived by the same argument; it reproduces the coxph Efron log likelihood in a check with three tied deaths). No form for the exact partial likelihood is given here, since it sums over all subsets of deaths; the survival package manual describes it as suited to a small set of discrete times.
All scores positive and the tied deaths inside the Cox risk set
Each score is an exponential and so above zero, and R_s includes s_1 and s_2. R_2 is then above zero, so the divisions are defined. A person censored at the tied time remains in R_s, by the rule HE-AS-CPH-004 gives for a person censored at an event time.
Worked examples
Tied deaths at time 6 of Therneau's test data 1 with no treatment effect
Four at risk and two deaths, all scoring 1 at beta = 0. The Efron denominator falls to 3. Adding log(1/6) for the single death at time 1 gives the vignette's log likelihoods at beta = 0, -4.564348 by Breslow and -4.276666 by Efron.
s_1 = 1; s_2 = 1; R_s = 4; R_2 = 3; P_B = 0.0625; P_E = 0.0833; dH_B = 0.5; dH_E = 0.5833
Tied deaths at time 6 of Therneau's test data 1 at the Efron estimate
At the vignette's r of 5.348721, written to four decimals, with one treated and one comparator death. dH_E is 1/(r + 3) + 2/(r + 5), with the second part as stated for the second draw in Therneau's section 3.2, and it agrees with the rise in basehaz from coxph with Efron ties. HE-SR-CPH-010 notes the 1/(r + 5) printed in Table 1.
s_1 = 5.3487; s_2 = 1; R_s = 8.3487; R_2 = 5.17435; P_B = 0.0767; P_E = 0.1238; dH_B = 0.2396; dH_E = 0.313
Two tied Cox deaths in an illustrative risk set of 100
An illustrative limiting case. With 100 people at risk all scoring 1, the two terms differ by about 1 per cent and the two increments by about 0.5 per cent, which shows why the rules nearly agree when ties are few relative to the risk set.
s_1 = 1; s_2 = 1; R_s = 100; R_2 = 99; P_B = 0.0001; P_E = 0.000101; dH_B = 0.02; dH_E = 0.0201
Common errors
Comparing Cox estimates without reporting the tie method
On the six subjects of Therneau's test data 1 the Breslow estimate is 1.475285 and the Efron estimate 1.676857, hazard ratios of 4.37 and 5.35, about 22 per cent apart with one tied pair. The survival package manual calls Efron more accurate if there are a large number of ties, and uses it as its default, so results from another default can differ on the same data. The tie method should be reported.
Subtracting the full tied scores in the Efron denominator
Removing all of s_1 + s_2 for the second draw drops both people, when only one has left. At beta = 0 with four at risk it gives R_2 = 2 instead of 3 and a term of 0.125 instead of 0.0833, which is further from the Efron value than the Breslow term of 0.0625 is.
Sources
Therneau's Breslow and Efron forms on test data 1
Therneau TM. Software validation. Vignette for the R survival package. Updated December 2022. Section 3.1 Breslow estimates gives the log partial likelihood with -log(r + 3) for each tied death, and Table 1 lists the Breslow increments of 1/(r + 3). Section 3.2 Efron approximation describes the lottery model, gives subjects 3 and 4 a weight of 1/2 for the second draw, prints the log likelihood with -log(r + 3) and -log(r/2 + 5/2), LL(0) = -4.276666 and the increment 2/(r + 5). Section 3.1 lists the Breslow value at beta = 0, -4.564348, in its output table. Table 1 and the score residual paragraph of section 3.2 print the second Efron increment as 1/(r + 5). These records follow 2/(r + 5), which the martingale residuals of section 3.2 use, which at beta = 0 gives the Fleming-Harrington step of 1/3 that the section names, and which coxph reproduces.
survival package manual on three ways of handling tied Cox event times
Therneau TM. survival: Survival Analysis. R package version 3.8-12, reference manual. 9 September 2026. Entry coxph, section Ties, gives three choices. The Breslow approximation was the first option coded for almost all computer routines, the Efron option is more accurate if there are a large number of ties and is the default there, and the exact partial likelihood is technically appropriate when the time scale is discrete and has only a few unique values, which the entry's argument ties words as a small set of discrete values.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
