Kaplan–Meier six-subject cohort
ID: kaplan-meier-six-subject-cohort
Consider six subjects observed from time zero. Recorded survival data are , , , , , and , with each pair giving in years. Thus have observed events, while are right-censored. The letters label subjects, not treatment groups. Here are all exit times, including rows without events:
| Time (years) | Risk set just before | At risk | Events | Right censoring count | Survival factor | Kaplan–Meier estimator |
|---|---|---|---|---|---|---|
At year one, . Removing at year two leaves the Kaplan–Meier estimator unchanged. Immediately before year three, are still in the risk set: the two events give . Only afterwards do leave, leaving alone. Removing before counting the tied events would incorrectly use and give . The event-first convention is part of the recorded-time interpretation; coarsely rounded timestamps do not reveal a hidden ordering within that time bin.
The exact Kaplan–Meier estimator is on , on , and on . The three right censoring ticks are , , and ; at a shared event time the tick is on the post-event step. Beyond year five the risk set is empty, so the horizontal endpoint does not determine later survival. The Kaplan–Meier median survival time is three years, since this is the first step at or below .
Now separate the tied events by changing only 's recorded event time from year three to year four. At year three the risk set still has four subjects, but , so . After the event and 's right censoring, only remain. At year four , giving . The intervening right censoring prevents the factors from telescoping to the original tied-event factor. If instead remained observed past year four, the factors would be , giving the original after both events. This is Kaplan–Meier telescoping across a censor-free interval in numbers.
Incorrectly counting every right-censored exit as an event estimates the distribution of observation-ending times , rather than survival times . For the original tied cohort, the spurious curve is at year one, at year two, at year three, and zero at year five. That zero asserts a failure for , whose only known information is .
Six observed histories and the effect of ties and right censoring on Kaplan–Meier steps
. Details. The computation uses the risk set and event-before-censoring convention in Lu Tian's STAT331 notes, Unit 3, pages 2–6; this six-subject example supplies its own exact counts.
New to topics? Read the docs here!
