Kaplan–Meier survival curves and censoring Time-to-event data breaks ordinary statistics, because most of the time the event has not happened yet when the study ends. The Kaplan–Meier estimator is built around that fact rather than in spite of it.

Clinical trials, cohort studies, and registries all produce time-to-event data: time to death, recurrence, graft failure, readmission. At the end of follow-up most subjects have not yet had the event. Some are still alive, some left the study, and for others the analysis was cut off while they were still event-free.

Their survival time is not known. You only know that it exceeds the time observed so far. That is a censored observation, and it is the norm rather than the exception.

Discarding censored subjects throws away most of the data and biases the result. Treating their last-seen time as an event time is simply wrong. The Kaplan–Meier estimator is the standard way to estimate the survival function while using every subject for exactly as long as they were observed.

Why censoring changes everything

A censored subject still carries information. Someone event-free at 18 months tells you the survival probability has not dropped to zero by 18 months, even though you never see their event. The mean and median of the observed times cannot use that information accurately. A mean of follow-up times is not a mean survival time when half those times are censored, and it will understate survival badly.

What you need is an estimate of the survival function itself: the probability of remaining event-free beyond each point in time. A censored subject contributes to the risk set up to the moment they are censored and then simply leaves it, without being counted as an event.

How Kaplan–Meier handles it

The estimator steps down only at the times an event actually occurs. At each event time, the survival probability is multiplied by the fraction of the currently at-risk group that survives that instant (the number at risk minus the events, over the number at risk). Between events the curve is flat.

A censoring time produces no step. It simply removes that subject from the risk set, so every later step is computed over a smaller denominator. The result is the familiar descending staircase. Its shape is entirely a product of when events happened relative to how many subjects were still being followed.

A Kaplan-Meier survival curve drawn as a descending step function against time, stepping down at each event, with plus-sign marks on the flat sections showing censored subjects that do not cause a step, and a dashed line marking the median survival where the curve crosses 0.5.
The Kaplan–Meier estimate is a step function. It drops only at an event. A censored subject (+) leaves the risk set without a step, but shrinks the denominator for every later drop. The median survival is where the curve crosses 0.5.

Reading the curve

Three quantities come off the estimate directly. The median survival is the time at which the curve crosses 0.5. It is more informative than a mean when the distribution is skewed or the tail is heavily censored, and it is reported with a confidence interval.

The survival probability at a given time — one-year survival, five-year survival — is read vertically off the curve at that time, again with an interval.

The mean survival time is the area under the survival curve. The identity surprises people, so it is worth seeing why it holds. The curve gives S(t), the probability of surviving beyond time t. Take a thin slice of time of width dt at time t: the fraction of subjects still alive through that slice is S(t), so the slice contributes S(t) × dt to the average time lived. Add up every slice and you have added up the whole area under the curve, which is therefore the mean survival time. The same argument is why a curve that stays high for longer represents a longer average survival, whatever shape it takes on the way down.

One caveat follows from that. The area can only be measured over the times you observed, so where follow-up is incomplete the mean is defined only up to the last observed time. A restricted mean survival time over a fixed horizon — mean survival within five years, say — is often the honest summary, and it is also the fallback when the proportional-hazards assumption fails.

Quoting any of these without a confidence interval hides how much precision the censoring has cost you.

A Kaplan-Meier survival function plot for two treatment groups with simultaneous confidence bands, above a table showing the number at risk, events occurred, and number and percentage censored for each group, with median and mean survival times.
A Kaplan–Meier estimate for two treatment groups, with the number of events and the proportion censored in each. Roughly a quarter of subjects in each arm are censored. That is entirely ordinary for time-to-event data, and what the estimator is built to accommodate.

The number at risk

A survival curve is conventionally published with a number-at-risk table beneath it, giving how many subjects remain under observation at each of a series of time points. The number falls for two different reasons: subjects who have the event leave the risk set, and so do subjects who are censored.

The table tells you how much to trust the right-hand end of the curve. Early in follow-up the estimate rests on the full cohort. Late in follow-up it may rest on a handful of subjects, so each remaining event moves the curve by a large step and the confidence interval widens sharply. A curve that looks flat and reassuring beyond five years means very little if only six subjects were still at risk at that point.

Read the number at risk before drawing any conclusion from the tail. A published curve without one should be treated with suspicion, because the reader has no way to judge where the estimate stops being reliable.

Confidence bands: pointwise is not the whole curve

A pointwise interval is correct at one nominated time. Such a band has the stated coverage for, say, the five-year survival on its own. The same band does not have that coverage for the whole curve at once. If you scan across the entire follow-up looking for where the curves separate, a pointwise band will mislead you, because you are making many comparisons.

A simultaneous confidence band holds across the whole time range. The Nair (equal-precision) and Hall–Wellner bands are the two standard constructions, differing in where they are widest. The Nair band spreads its width more evenly across the follow-up. The Hall–Wellner is relatively tighter in the tails. Which you report depends on whether you care about a specific time or the curve as a whole.

Common mistakes

Reading the tail of the curve without the number at risk. The far right of a survival curve often rests on a few subjects, where one event moves the estimate a long way. Check how many remain at risk before quoting a late survival probability.

Averaging the follow-up times. The mean of observed times is not the mean survival time when observations are censored, and it understates survival. Estimate the survival function, and take the mean as the area under it.

Dropping censored subjects. Censored subjects carry information up to the time they were last seen. Excluding them discards most of the data and biases the estimate. Kaplan–Meier uses each subject for exactly as long as they were observed.

Reading a pointwise band as if it covered the whole curve. Pointwise coverage holds at one pre-specified time only. To make statements across the follow-up, use a simultaneous band.

Quoting a median past the data. If the curve never reaches 0.5 within follow-up, the median is not estimable. Report survival at a defined time instead of extrapolating a median that the data do not support.

Fit a Kaplan–Meier curve with Analyse-it

Analyse-it estimates the survival function from your own time-to-event data, inside Excel:

  • The Kaplan–Meier estimate with pointwise, Nair and Hall–Wellner confidence bands
  • Median and quartile survival times with confidence intervals, and mean survival as the area under the curve
  • Survival or failure probability at any time you specify

Every feature from all five editions for 15 days. Survival analysis is in the Medical and Ultimate editions, from US$ 340 a year. Full detail in the survival and reliability reference guide. The group-comparison tests and Cox regression the rest of the study needs are in the same editions.