Algorithmadvanced
Breslow estimator
Also called Breslow baseline hazard estimator.
Estimates the cumulative baseline hazard of a Cox model by summing the deaths over the risk-weighted sum of exp(x^T beta) of those at risk at each event time.
- Time
- Θ(n log n + n p) worst
- Space
- Θ(n) extra
- Where
- k = the number of distinct event times; n = the number of subjects; p = the number of covariates
- Model
- Real RAM
- Properties
- deterministicexactofflineiterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Norman E. Breslow, 1974
The Breslow estimator turns a fitted Cox model into survival curves. The partial likelihood estimates but says nothing about the baseline hazard . Given , Breslow's estimate of the cumulative baseline hazard is
where are the distinct event times, the number of events at and the risk set. The survival curve for covariate is then . At the estimate is the Nelson-Aalen estimator. One sort and one backward pass of running sums compute it in time.
In plain words
The Nelson-Aalen estimator adds, at each event time, the number of events divided by the number of people at risk. In a Cox model people at risk are not equal: someone with relative risk 3 counts like three people with relative risk 1. So the Breslow estimator divides the number of events by the sum of the relative risks of the people at risk. The result is the cumulative hazard of a person whose covariates are all zero. Multiply it by a person's relative risk to get that person's cumulative hazard, and take to minus that to get their survival curve.
The problem
Input. Observations for , where is the observed time, for an event and for a censored time, and . A coefficient vector , usually the Cox estimate . The code takes the risk scores , which cost to compute.
Model. The hazard of subject is with unspecified, and censoring is independent, as on the censoring page.
Output. The distinct event times , and at each the risk sum , the count , the increment, , and the variance term . is the right-continuous step function with these values, before .
Ties. A censored time equal to an event time counts as at risk at that time. With tied events the Breslow rule adds . The Efron rule, which matches the Efron partial likelihood, adds , where is the sum of over the subjects with the event.
The algorithm
BRESLOW(y[1..n], δ[1..n], w[1..n], ties)- 1
sort the indices 1..n by decreasing y - 2
S ← 0; rows ← empty list - 3
for each distinct time t in that order - 4
for each i with y_i = t: S ← S + w_i; if δ_i = 1 then d ← d + 1, D ← D + w_i - 5
if d > 0 then append (t, S, d, D) to rows - 6
reverse rows ▷ now in increasing time - 7
H ← 0; V ← 0; for each (t, S, d, D) in rows - 8
inc ← d / S (Efron: Σ_{r<d} 1 / (S - rD/d)) - 9
H ← H + inc; V ← V + d / S²; output (t, S, d, inc, H, V)
Line L1 sorts once. Lines L3 and L4 visit the times from the largest down, so is a running sum that only grows: when the group at time is done, , which is exactly the risk sum at . The counters and start at for each group. Line L5 keeps only event times. Lines L7 to L9 then add the increments in time order. estimates the variance of when is known.
Example
A small example. Times with . At all , the risk sums are at the event times , and
the Nelson-Aalen estimate. There are no tied events, so the Efron rule gives the same values.
The leukemia data. The Gehan data have 21 patients on 6-MP and 21 on placebo, with 30 events at 17 distinct times. Take for placebo and the Breslow-ties estimate , so a placebo patient has and a 6-MP patient . At all 42 are at risk, so and the increment is . Some rows of the output:
| standard error, fixed | , 6-MP | , placebo | ||||
|---|---|---|---|---|---|---|
| 1 | 2 | 115.98 | 0.0172 | 0.0122 | 0.983 | 0.925 |
| 4 | 2 | 93.37 | 0.0676 | 0.0256 | 0.935 | 0.737 |
| 8 | 4 | 70.28 | 0.2021 | 0.0498 | 0.817 | 0.401 |
| 12 | 2 | 39.14 | 0.3134 | 0.0706 | 0.731 | 0.242 |
| 17 | 1 | 23.57 | 0.4641 | 0.1036 | 0.629 | 0.123 |
| 23 | 2 | 10.52 | 0.7788 | 0.1912 | 0.459 | 0.030 |
The 6-MP column is and the placebo column is . Compare the Kaplan-Meier values of the two arms: 0.448 for 6-MP at week 23, and for placebo after week 8. The model curves are close but not equal, because the Cox model forces the two curves to be powers of each other. With the Efron rule, at the Efron estimate. Summing the residuals over all 42 patients gives exactly 30, the number of events.
Correctness
The proof in proofs/correctness.md shows five things. First, the backward pass keeps the invariant that at the start of the group at , so every output row is and after line L9. Second, at the estimate is Nelson-Aalen, and the Efron increment is at least , with equality iff . Third, for fixed , is the unique maximizer of the full likelihood over all step-function cumulative hazards, and the maximum equals times the Breslow-ties partial likelihood, so the Cox estimate with is a joint profile maximum likelihood estimate. Fourth, the Cox-Snell residuals sum to the number of events for every . Fifth, with fixed, estimates the variance by the Nelson-Aalen argument. The extra variance from estimating is cited, not proved.
Proof: The pass computes the Breslow sums, which reduce to Nelson-Aalen at beta = 0, maximize the full likelihood over the baseline jumps, and make the Cox-Snell residuals sum to the number of eventsfull
Let the data be , , with risk scores for a fixed . Let be the distinct event times, the risk set, , the number of events at , and the sum of over the subjects that have the event at . The Breslow estimate is
Claim 1 (the pass computes the sums). Every row that line L5 keeps is , one row for each , and after line L9 the variable holds .
Proof. Line L1 sorts the subjects by decreasing time. The inner loop of line L4 reads exactly the subjects at the current distinct time . Invariant: at the start of the group at , the variable is the sum of over . It holds at the first group with the empty sum. The group adds the of all subjects with , so after the group , which is when . In the same loop and count the events at and add their scores. Line L5 keeps the row only if , that is, if is an event time. Line L6 puts the rows in increasing order of time, and lines L7 to L9 add in that order.
The sum is built from the largest time down, so each is a sum of positive terms. A forward pass that subtracts the scores that leave the risk set would give the same value in exact arithmetic, but in floating point it can cancel when the late scores are small compared with the early ones.
Claim 2 (Nelson-Aalen at ). If , then , the Nelson-Aalen estimator. With the Efron rule the increment at is at least , with equality exactly when .
Proof. At every , so and . The Breslow increment is . The Efron increment is . Each term is at least , and the term with is strictly larger when .
Claim 3 (profile maximum likelihood). Fix . Over all cumulative baseline hazards that are nondecreasing step functions, the full likelihood
is maximized uniquely by . The maximum value is times the Cox partial likelihood with the Breslow tie rule, where .
Proof. If has no jump at some , then , so a maximizer has a jump at each . A jump at a time that is not an event time does not change any factor with , and it increases for every at or after it, so removing it does not decrease , and strictly increases if some is at or after it. So it is sufficient to take . Then
because is the same as . Each term is strictly concave in , and its derivative is only at . Put this value back:
The first two sums are the log partial likelihood with the Breslow tie rule (see partial likelihood).
So the joint maximizer of over is the Breslow-ties Cox estimate together with the Breslow estimator at that estimate.
Claim 4 (residuals). For every , the Cox-Snell residuals sum to , so the martingale residuals sum to .
Proof. Change the order of summation:
The identity does not need to be the Cox estimate, and it fails for the Efron rule, whose increment times is larger than when .
Claim 5 (variance with fixed). Under the counting process model with intensity and known, is a martingale, and estimates its variance. This is the argument of the Nelson-Aalen proof with replaced by , and we do not repeat it. When is replaced by , the variance gets an extra term with and the weighted mean of over (Tsiatis 1981; Andersen and Gill 1982). We cite this result and do not prove it here.
Cost. One sort, , one pass over the subjects, , and one pass over the event times. The Efron rule adds terms at , in total. The risk scores cost for covariates.
Complexity
The risk scores cost . The sort in line L1 costs comparisons. Lines L3 and L4 visit each subject once, and lines L7 to L9 visit each event time once, so the passes cost with the Breslow rule. The Efron rule adds terms at , in total. The extra space is for the order and the rows. A value then costs by a binary search, and a whole survival curve for a new costs .
In floating point, each is a sum of positive terms with a relative error of about units in the last place, and no cancellation happens. A forward pass that starts from the total and subtracts the scores that leave would give the same values in exact arithmetic but can lose all digits when the late scores are much smaller than the early ones. With rational scores, such as the integer at , the code returns exact Fractions.
Properties
- Reduces to Nelson-Aalen. At , and the estimate is .
- Profile maximum likelihood. It is the nonparametric maximum likelihood estimate of for fixed . Profiling it out of the full likelihood gives back the Breslow partial likelihood.
- Martingale residuals sum to zero. for every , with the Breslow rule.
- Equivariance. Shifting a covariate, , multiplies every by and divides by the same factor. is the cumulative hazard at , so center the covariates if that value is not meaningful. The survival curve for a given does not change.
- Large-sample behavior. If is the Cox estimate and the model holds, converges on to a Gaussian process whose variance is plus the term from the uncertainty in (Tsiatis 1981; Andersen and Gill 1982). This is cited, not proved here.
- The curves do not cross. For two covariate values , , so the curves never cross.
Variants and improvements
- Efron increments. With many tied events, use the Efron rule of line L8 together with the Efron partial likelihood, so the estimate is consistent with the fit.
- Kalbfleisch-Prentice estimate. Solve, at each , for a conditional survival probability so that is the maximum likelihood estimate under a discrete baseline. It reduces to Kaplan-Meier at , as the Breslow estimate reduces to Nelson-Aalen.
- Product-limit form. , a Kaplan-Meier style variant, avoids the exponential. It is close to when every is small.
- Strata. With a stratified Cox model, run the pass once per stratum to get one per stratum.
- Time-dependent covariates and delayed entry. The risk sum must use and the subjects under observation at . A pass in time order that adds entries and removes exits replaces the backward pass.
- Weighted versions. Weights in the risk sums give the baseline of the Fine-Gray model, and the frailty-weighted sums in the EM algorithm for the frailty model.
When to use it
Use it after a Cox fit whenever you need absolute risks rather than hazard ratios: predicted survival probabilities, median survival for a covariate profile, the Cox-Snell and martingale residuals, or calibration plots. Use it with the same tie rule as the fit. For one group without covariates use Kaplan-Meier or Nelson-Aalen directly.
Pitfalls
- The baseline is at . If is far from the data, such as age 0, is a large extrapolation and its numbers are not meaningful. Center the covariates or report curves for actual covariate profiles.
- Standard errors with fixed are too small. The variance ignores the uncertainty in . Add the Tsiatis term for intervals on .
- Tie rule mismatch. Breslow increments with an Efron fit give residuals that do not sum exactly to and curves that are slightly off.
- Censored ties. Count a censored subject at in the risk sum at , as for Kaplan-Meier.
- Proportional hazards. The curves for different are powers of each other. If the hazards are not proportional, the curves are wrong in shape, not only in level. Check with the Schoenfeld residuals, or stratify.
- The tail. After the last event time with few subjects at risk, the increments are large and unstable, as in the last rows of the table.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/breslow-estimator/. The authors are listed in prov/NMKKND.jsonl.
"""Breslow estimator of the cumulative baseline hazard of a Cox model.
Input: times[i] = y_i, events[i] = delta_i (1 event, 0 censored) and the risk
scores w_i = exp(x_i' beta) for a given coefficient vector beta (usually the
Cox estimate). A censored time tied with an event time counts as at risk.
With ints or Fractions as scores the output is exact.
"""
import math
from collections.abc import Sequence
from fractions import Fraction
from typing import NamedTuple
class Step(NamedTuple):
time: float # t_j, a distinct event time
risk_sum: object # S0_j, the sum of w_i over the risk set {i : y_i >= t_j}
events: int # d_j
increment: object # the jump of H0-hat at t_j
cum_hazard: object # H0-hat(t_j)
var: object # sum over t_l <= t_j of d_l / S0_l^2, the variance with beta held fixed
def _div(a, b):
if isinstance(a, (int, Fraction)) and isinstance(b, (int, Fraction)):
return Fraction(a) / b
return a / b
def breslow(times: Sequence, events: Sequence[int], scores: Sequence, ties: str = "breslow") -> list[Step]:
"""Cumulative baseline hazard H0-hat at each distinct event time.
ties='breslow' adds d_j / S0_j; ties='efron' adds the sum over r < d_j of
1 / (S0_j - (r / d_j) D_j), with D_j the sum of w over the d_j events.
The risk sums are accumulated from the largest time down, so no running
subtraction loses accuracy. Cost: one sort, O(n log n), and two O(n) passes.
"""
n = len(times)
if n == 0 or len(events) != n or len(scores) != n:
raise ValueError("times, events and scores must have the same positive length")
if any(e not in (0, 1) for e in events):
raise ValueError("event flags must be 0 or 1")
if any(not w > 0 for w in scores):
raise ValueError("risk scores must be positive")
if ties not in ("breslow", "efron"):
raise ValueError("ties must be 'breslow' or 'efron'")
order = sorted(range(n), key=lambda k: times[k], reverse=True) # @line L1
S, rows, i = 0, [], 0 # @line L2
while i < n: # @line L3
t, d, D = times[order[i]], 0, 0
while i < n and times[order[i]] == t: # @line L4
k = order[i]
S += scores[k]
if events[k]:
d += 1
D += scores[k]
i += 1
if d > 0: # @line L5
rows.append((t, S, d, D))
rows.reverse() # @line L6
H, V, out = 0, 0, []
for t, S, d, D in rows: # @line L7
if ties == "breslow" or d == 1:
inc = _div(d, S) # @line L8
else:
inc = sum(_div(1, S - _div(r * D, d)) for r in range(d))
H += inc # @line L9
V += _div(d, S * S)
out.append(Step(t, S, d, inc, H, V))
return out
def risk_scores(X: Sequence[Sequence[float]], beta: Sequence[float]) -> list[float]:
"""w_i = exp(x_i' beta); the integer 1 for every i when beta = 0."""
if all(b == 0 for b in beta):
return [1] * len(X)
return [math.exp(sum(a * b for a, b in zip(x, beta))) for x in X]
def evaluate(steps: list[Step], t: float):
"""H0-hat(t): the value at the last event time <= t, and 0 before the first."""
lo, hi = 0, len(steps)
while lo < hi:
mid = (lo + hi) // 2
if steps[mid].time <= t:
lo = mid + 1
else:
hi = mid
return steps[lo - 1].cum_hazard if lo else 0
def survival(steps: list[Step], t: float, score: float) -> float:
"""S-hat(t | x) = exp(-H0-hat(t) exp(x' beta)), with score = exp(x' beta)."""
return math.exp(-float(evaluate(steps, t)) * float(score))
def cox_snell_residuals(times: Sequence, steps: list[Step], scores: Sequence) -> list:
"""r_i = H0-hat(y_i) w_i. With Breslow ties they sum to the number of events, for any beta."""
return [evaluate(steps, y) * w for y, w in zip(times, scores)]
test_breslow_estimator.py 206 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/breslow-estimator/. The authors are listed in prov/NMKKND.jsonl.
import math
import random
from fractions import Fraction
from breslow_estimator import breslow, cox_snell_residuals, evaluate, risk_scores, survival
# Gehan (1965) leukemia remission data: 6-MP arm, then placebo arm (x = 1).
MP_T = [6, 6, 6, 6, 7, 9, 10, 10, 11, 13, 16, 17, 19, 20, 22, 23, 25, 32, 32, 34, 35]
MP_D = [1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0]
PL_T = [1, 1, 2, 2, 3, 4, 4, 5, 5, 8, 8, 8, 8, 11, 11, 12, 12, 15, 17, 22, 23]
T = MP_T + PL_T
D = MP_D + [1] * 21
X = [0] * 21 + [1] * 21
def random_data(rng, n, ties=True):
times = [rng.randint(1, 8) if ties else rng.random() for _ in range(n)]
events = [1 if rng.random() < 0.7 else 0 for _ in range(n)]
return times, events
def nelson_aalen(times, events):
out = []
H = Fraction(0)
for t in sorted(set(y for y, e in zip(times, events) if e)):
d = sum(1 for y, e in zip(times, events) if e and y == t)
n = sum(1 for y in times if y >= t)
H += Fraction(d, n)
out.append((t, H))
return out
def direct(times, events, scores, ties):
"""H0-hat by a fresh sum over the risk set at each event time, O(n) per time."""
out, H = [], Fraction(0)
for t in sorted(set(y for y, e in zip(times, events) if e)):
S = sum(Fraction(w) for y, w in zip(times, scores) if y >= t)
dead = [Fraction(w) for y, e, w in zip(times, events, scores) if e and y == t]
d, Dsum = len(dead), sum(dead)
if ties == "breslow":
H += Fraction(d) / S
else:
H += sum(1 / (S - Fraction(r, d) * Dsum) for r in range(d))
out.append((t, H))
return out
def full_loglik(times, events, scores, jumps):
"""Log full likelihood with a baseline hazard that jumps only at event times.
sum_j d_j log(lam_j) + sum_i delta_i log(w_i) - sum_i w_i Lambda0(y_i).
"""
ts = sorted(jumps)
total = 0.0
for t in ts:
d = sum(1 for y, e in zip(times, events) if e and y == t)
total += d * math.log(jumps[t])
for y, e, w in zip(times, events, scores):
if e:
total += math.log(w)
total -= w * sum(jumps[t] for t in ts if t <= y)
return total
def test_beta_zero_gives_nelson_aalen_exactly() -> None:
rng = random.Random(1)
for _ in range(40):
times, events = random_data(rng, rng.randint(1, 15))
if not any(events):
continue
steps = breslow(times, events, [1] * len(times))
assert [(s.time, s.cum_hazard) for s in steps] == nelson_aalen(times, events)
# Efron at beta = 0 does not reduce to Nelson-Aalen when there are ties.
efron = breslow(times, events, [1] * len(times), "efron")
for a, b in zip(steps, efron):
assert b.increment >= a.increment
assert (b.increment == a.increment) == (a.events == 1)
def test_matches_direct_summation_with_rational_scores() -> None:
rng = random.Random(2)
for _ in range(40):
n = rng.randint(1, 14)
times, events = random_data(rng, n)
if not any(events):
continue
scores = [Fraction(rng.randint(1, 9), rng.randint(1, 5)) for _ in range(n)]
for ties in ("breslow", "efron"):
steps = breslow(times, events, scores, ties)
assert [(s.time, s.cum_hazard) for s in steps] == direct(times, events, scores, ties)
def test_efron_increment_formula_by_hand() -> None:
# Three subjects at risk with scores 1, 2, 3; the last two die together.
steps = breslow([1, 2, 2], [0, 1, 1], [1, 2, 3], "efron")
S, Dsum = 5, 5
assert steps[0].increment == Fraction(1, S) + 1 / (S - Fraction(1, 2) * Dsum)
assert steps[0].increment == Fraction(1, 5) + Fraction(2, 5)
assert breslow([1, 2, 2], [0, 1, 1], [1, 2, 3])[0].increment == Fraction(2, 5)
def test_cox_snell_residuals_sum_to_number_of_events_for_any_scores() -> None:
rng = random.Random(3)
for _ in range(40):
n = rng.randint(1, 14)
times, events = random_data(rng, n)
if not any(events):
continue
scores = [Fraction(rng.randint(1, 20), rng.randint(1, 7)) for _ in range(n)]
steps = breslow(times, events, scores)
r = cox_snell_residuals(times, steps, scores)
assert sum(r) == sum(events)
# Hence the martingale residuals delta_i - r_i sum to 0.
assert sum(e - ri for e, ri in zip(events, r)) == 0
def test_profile_maximum_of_the_full_likelihood() -> None:
rng = random.Random(4)
for _ in range(20):
n = rng.randint(2, 12)
times, events = random_data(rng, n)
if not any(events):
continue
scores = [Fraction(rng.randint(1, 9), rng.randint(1, 4)) for _ in range(n)]
steps = breslow(times, events, scores)
# The derivative d_j / lam_j - sum_{y_i >= t_j} w_i is exactly 0 at every jump.
for s in steps:
at_risk = sum(w for y, w in zip(times, scores) if y >= s.time)
assert Fraction(s.events) / s.increment - at_risk == 0
jumps = {s.time: float(s.increment) for s in steps}
w = [float(v) for v in scores]
best = full_loglik(times, events, w, jumps)
for _ in range(10):
other = {t: lam * math.exp(rng.uniform(-0.3, 0.3)) for t, lam in jumps.items()}
assert full_loglik(times, events, w, other) < best + 1e-12
def test_variance_term_and_step_function() -> None:
steps = breslow([1, 2, 2, 3, 5], [1, 1, 0, 1, 0], [1, 1, 1, 1, 1])
assert [s.cum_hazard for s in steps] == [Fraction(1, 5), Fraction(1, 5) + Fraction(1, 4), Fraction(1, 5) + Fraction(1, 4) + Fraction(1, 2)]
assert steps[-1].var == Fraction(1, 25) + Fraction(1, 16) + Fraction(1, 4)
assert evaluate(steps, 0.5) == 0
assert evaluate(steps, 2.5) == Fraction(9, 20)
assert evaluate(steps, 100) == Fraction(19, 20)
assert abs(survival(steps, 2, 2.0) - math.exp(-0.9)) < 1e-15
def _cox_fit_one_covariate(times, events, x):
"""Newton on the Breslow log partial likelihood for one covariate."""
b = 0.0
for _ in range(50):
U = I = 0.0
for t in sorted(set(y for y, e in zip(times, events) if e)):
S0 = S1 = S2 = 0.0
for y, xi in zip(times, x):
if y >= t:
w = math.exp(b * xi)
S0 += w
S1 += w * xi
S2 += w * xi * xi
dead = [xi for y, e, xi in zip(times, events, x) if e and y == t]
U += sum(dead) - len(dead) * S1 / S0
I += len(dead) * (S2 / S0 - (S1 / S0) ** 2)
step = U / I
b += step
if abs(step) < 1e-13:
break
return b
def test_gehan_leukemia_baseline() -> None:
b = _cox_fit_one_covariate(T, D, X)
assert abs(b - 1.509191) < 1e-5
w = risk_scores([[x] for x in X], [b])
steps = breslow(T, D, w)
assert len(steps) == 17
assert sum(s.events for s in steps) == 30
# Baseline (6-MP arm) at the first event time: 2 / (21 + 21 e^b).
assert abs(steps[0].cum_hazard - 2 / (21 + 21 * math.exp(b))) < 1e-15
assert abs(sum(cox_snell_residuals(T, steps, w)) - 30) < 1e-11
# The fitted survival at t = 10 for each arm.
s0 = survival(steps, 10, 1.0)
s1 = survival(steps, 10, math.exp(b))
assert abs(s1 - s0 ** math.exp(b)) < 1e-14
assert 0.0 < s1 < s0 < 1.0
def test_float_and_fraction_agree_and_input_checks() -> None:
rng = random.Random(5)
times, events = random_data(rng, 30, ties=False)
events[0] = 1
scores = [rng.uniform(0.2, 5.0) for _ in range(30)]
a = breslow(times, events, scores)
b = breslow(times, events, [Fraction(s) for s in scores])
for u, v in zip(a, b):
assert abs(u.cum_hazard - float(v.cum_hazard)) < 1e-12 * max(1.0, float(v.cum_hazard))
for bad in [([], [], []), ([1], [2], [1]), ([1], [1], [0]), ([1, 2], [1], [1, 1])]:
try:
breslow(*bad)
except ValueError:
pass
else:
raise AssertionError("bad input accepted")
History
Norman Breslow proposed the estimate in his discussion of Cox's 1972 paper and published it in Biometrics in 1974. He took the baseline hazard to be constant between event times and maximized the full likelihood, which gave both the baseline estimate and his approximation for tied times. Kalbfleisch and Prentice (1973) gave the discrete product form. Tsiatis (1981) proved that and are jointly asymptotically normal, and Andersen and Gill (1982) gave the counting process proof, in which the Breslow estimator is the Nelson-Aalen estimator with the number at risk replaced by the risk sum.
References
- N. E. Breslow, Covariance analysis of censored survival data, Biometrics 30(1), 1974, pp. 89 to 99 (the estimate of the baseline hazard and its derivation as a maximum likelihood estimate)
- Anastasios A. Tsiatis, A large sample study of Cox's regression model, Annals of Statistics 9(1), 1981, pp. 93 to 108 (the joint asymptotic normality of the coefficient estimate and the estimated cumulative baseline hazard, with the variance term from estimating beta)
- Per Kragh Andersen and Richard D. Gill, Cox's regression model for counting processes, a large sample study, Annals of Statistics 10(4), 1982, pp. 1100 to 1120 (the martingale proof of the weak convergence of the Breslow estimator)
- Bradley Efron, The efficiency of Cox's likelihood function for censored data, Journal of the American Statistical Association 72(359), 1977, pp. 557 to 565 (the approximation for tied times, which gives the Efron form of the increment)
- Terry M. Therneau and Patricia M. Grambsch, Modeling Survival Data, Extending the Cox Model, Springer, 2000, Chapters 3 and 4 (estimation of the baseline hazard and survival curves after a Cox fit, and residuals)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag NMKKND Edit this page History Report an error Markdown