Read online
Survival Analysis from First Principles
Who is still under observation?
Define the start of follow-up, the event and the censoring rule. Right censoring means that the event time is not known beyond the last observed time. The risk set just before an event contains people who are still being followed and have not yet experienced the event. Treat delayed entry separately: someone enters the risk set only once they are eligible and observed.
The Kaplan–Meier calculation
Begin with five people at risk. If one event occurs, the survival factor is 4/5. If one person is then censored, three people remain at risk just before the next event. One event among those three gives a factor of 2/3, for an estimated survival of (4/5) × (2/3) = 8/15, about 53%. Censoring reduces the future risk set; it does not cause a survival drop. The example assumes the observed risk sets represent those still at risk, as under independent censoring.
Risks and hazards answer different questions
Survival at a time is the probability of remaining event-free beyond that time. A hazard describes the instantaneous event rate among those still at risk. In a Cox proportional hazards model, the hazard ratio compares hazards for covariate values under the model, assuming the ratio is constant over time for a fixed contrast. It is not a ratio of cumulative risks. Consider reporting fixed-horizon risks or restricted mean survival time when they answer the scientific question more directly.
Competing events change the question
If an event such as death can prevent the outcome of interest, distinguish the cause-specific hazard from the cumulative incidence of that outcome in the presence of death. Treating competing events as ordinary censoring in a Kaplan–Meier complement does not generally estimate that cumulative incidence.
Why a landmark helps
When a predictor is first assessed at day 30, a common landmark analysis includes people still observed and event-free at that day and relates their information up to day 30 to subsequent outcomes. Your conclusions describe that eligible group, not necessarily everyone present at the original baseline. Specify the landmark before comparing groups and check what is lost by excluding early outcomes.
Practice: build the risk sets
Start with six people. One has the event at day 5, two are censored at day 8, and one has the event at day 10. List the two event-time risk sets and estimate survival at day 10. Check: the factors are 5/6 and 2/3, giving 5/9, about 56%.