Learn / Biostatistics / Survival analysis
Time-to-event data, censoring and the Kaplan-Meier curve
15 minute read · 6-question quiz
What you will learn
Define time-to-event outcomes and the three kinds of censoring
Construct a Kaplan-Meier survival curve by hand
Read a survival curve: survival at a time, median survival and numbers at risk
Many trial outcomes are not 'did it happen?' but 'when did it happen?': time to death, to relapse, to viral failure, to first malaria episode, to hospital discharge. Such data are called time-to-event or survival data (whatever the event is). Two features make them special.
- Times are positive and usually skewed.
- Censoring: by the time the study ends, some participants have not had the event, or are lost to follow-up. We know only that they were event-free up to a certain time. Discarding them throws away information; treating their last follow-up as the event time underestimates survival.
Types of censoring
- Right censoring (the usual): the event has not happened by the end of observation (study ends, patient moves away, dies from an unrelated cause).
- Left censoring: the event happened before observation began (time of HIV infection in a person first tested positive).
- Interval censoring: the event occurred between two visits (HIV seroconversion between 6-monthly tests).
Key assumption: non-informative censoring. Participants who are censored must have the same future risk as those who stay in. If sicker patients drop out, survival is overestimated.
The Kaplan-Meier estimator
The Kaplan-Meier (KM) estimator estimates the survival function S(t), the probability of remaining event-free beyond time t, using every participant for as long as they were observed. At each event time, multiply the previous survival by the proportion who survive that moment among those still at risk:
S(t) = Π_(t_i ≤ t) (1 - (d_i)/(n_i))
d_i = events at time t_i, n_i = number still at risk just before t_i. Censored participants are in the denominator until they leave, and then silently drop out.
Reading a KM plot
- The curve is a step function: flat between events, dropping at each event.
- Survival at a time: read up from the time on the x-axis to the curve, then across (e.g. 1-year survival).
- Median survival: where the curve crosses 0.5. If the curve never reaches 0.5, the median is 'not reached' (and you should report survival at a fixed time instead).
- Tick marks show censored times. A long run of ticks at the right end signals few people left, so the tail is unreliable.
- Number at risk table beneath the plot shows how many remain. Always include it: curves with very few at risk are wobbly and wide in uncertainty.
- Confidence bands widen as numbers at risk fall.
Summary
Survival data record time to an event; censoring means the event had not occurred when observation stopped.
Censoring must be non-informative for the analysis to be valid.
Kaplan-Meier multiplies conditional survival probabilities at each event time using those at risk.
Median survival is where the curve crosses 0.5; show the number at risk beneath the plot.
Check your understanding
Draft study guide. Spotted an error or something unclear? Tell us at hello@scintria.com. This is educational material, not clinical or regulatory advice.