HSCI 341, Lesson 8

Time-to-Event
Data

Fundamental Epidemiological Concepts and Approaches

Learning objectives for this lesson:

  1. Describe time-to-event data as a time and a status for each participant, specify time zero, the event and the end of follow-up for a study, and identify immortal time bias and lead-time bias as errors in the choice of time zero.
  2. Distinguish right, left and interval censoring from late entry, and explain the difference between informative and non-informative censoring.
  3. Explain why treating censored participants as event-free, or dropping them from the analysis, misstates the risk of the event.
  4. Calculate an actuarial life table by hand and describe the assumptions of the actuarial method.
  5. Calculate a Kaplan-Meier estimate by hand and interpret a Kaplan-Meier curve: survival at a chosen time, the median survival time, censoring marks and the numbers at risk.
  6. Interpret the log-rank test as a comparison of observed and expected events and the hazard ratio as a ratio of event rates among those still at risk, explain proportional hazards in plain language, and explain why a hazard ratio differs from a risk ratio.
  7. Plan the time-to-event subsection of a study protocol, including time zero, censoring rules, the analysis plan and the number of events needed.

Expected completion time: about two and a half hours. This lesson follows Lesson 7: Designing Against Bias and is the last lesson of HSCI 341.

This course was developed by Dr. Kiffer G. Card, Faculty of Health Sciences, Simon Fraser University based on Dohoo, I. R., Martin, S. W., & Stryhn, H. (2012). Methods in Epidemiologic Research. VER Inc.

Lesson 8 · HSCI 341

Time-to-Event Data

Censoring, life tables, Kaplan-Meier estimation and the hazard ratio, taught for people who design studies.

About two and a half hours across four sections and a final assessment
Why this lesson

Estimating incidence when follow-up is incomplete

Lesson 4 gave us

Incidence risk needs complete follow-up, and the incidence rate summarizes the whole period in one number.

This lesson adds

Survival methods estimate how the probability of remaining event-free changes over time while using every participant's follow-up.

Running case (hypothetical)

The Campus Connection Follow-up

600 participants

All are aged 18 to 29 and screen negative at baseline.

24 months

Each participant completes an online PHQ-9 every month.

200 and 400

Participants with high and low baseline loneliness are compared.

The event is the first monthly PHQ-9 score of 10 or more.

Lesson map

Four sections

1. Design and censoring

Time zero, the event, follow-up, and the types of censoring are defined.

2. Actuarial life table

Cumulative survival is built from fixed intervals by hand.

3. Kaplan-Meier

The estimate is computed at each event time and the curve is read.

4. Comparing groups

The log-rank test, the hazard ratio and the protocol are covered.

How to work through it

Using this lesson

  • Each section pairs worked examples with calculators that show every step.
  • Each knowledge check must be passed before the next section opens.
Reference

Glossary: Key Terms, People & Concepts

📚 Reference page, available throughout the lesson

This glossary collects the key concepts, methods and people you will meet in this lesson. Use it as a reference while you work through the material, or as a review before assessments. Type in the search box to filter entries.

Designing a Time-to-Event Study
Time-to-event data Data in which each participant contributes a length of time from a defined starting point to a defined event, together with a status recording whether the event was observed. Also called survival data.
Time zero The moment at which the clock starts for each participant. It should be the moment at which eligibility is met, exposure is assigned and follow-up begins (Hernán et al., 2016).
Study time scale Time measured from each participant's own time zero, so that every participant starts at zero regardless of the calendar date of enrolment.
Event The outcome that stops the clock, defined by a criterion, an ascertainment method and schedule, and a dating rule that are the same in every exposure group.
Status variable The variable recording how a participant's follow-up ended, usually coded 1 for an observed event and 0 for censoring.
Risk set The participants who are still under observation and event-free just before a given time, and who could therefore have the event at that time.
Censoring and Incomplete Follow-Up
Right censoring Incomplete follow-up in which the event, if it occurs, would occur after the participant's last observation. It arises from loss to follow-up, withdrawal, moving away and the administrative end of a study.
Administrative censoring Censoring of participants who are still event-free when the study reaches its planned end. It is usually non-informative.
Left censoring Incomplete information in which the event is known to have occurred before observation began, at an unknown time.
Interval censoring Incomplete information in which the event is known only to have occurred between two observation times, as when events are detected at scheduled visits.
Late entry (left truncation) Entry of a participant into the risk set some time after their time zero. People who had the event before they could enter are never seen, so late entrants are counted at risk only from entry.
Non-informative censoring The assumption that participants who are censored at a given time have the same future risk of the event as participants in the same group who remain under observation.
Informative censoring Censoring that is related to a participant's prognosis, so that those who leave have a different future risk from those who remain. It biases survival estimates.
Competing event An event, such as death from another cause, that makes the event of interest impossible. Treating it as censoring overstates the cumulative incidence of the event of interest (Austin et al., 2016).
Immortal time bias Bias that arises when membership of an exposure group depends on remaining event-free for a period after time zero, so that the period is wrongly credited to the exposure (Suissa, 2008). Taught in HSCI 230 Lesson 10.
Lead-time bias Apparent extension of survival from diagnosis that arises when one group's condition is diagnosed earlier, for example by screening, without any delay in the event. Taught in HSCI 230 Lesson 10.
Estimating Survival
Actuarial life table A method that divides follow-up into fixed intervals, estimates the conditional probability of surviving each interval and multiplies these probabilities to obtain cumulative survival (Cutler & Ederer, 1958).
Effective number at risk In an actuarial life table, the number entering an interval minus half the withdrawals during it, reflecting the assumption that withdrawals were at risk for half the interval on average.
Conditional probability of survival The probability of getting through an interval or past an event time without the event, among those who were event-free at its start.
Survivor function The probability of remaining event-free beyond time t, written S(t). One minus the survivor function is the cumulative risk of the event by time t.
Kaplan-Meier estimator The product-limit estimator of the survivor function, which multiplies the conditional probabilities of getting past each observed event time and keeps censored participants in the risk set until they leave (Kaplan & Meier, 1958).
Median survival time The earliest time at which the estimated survival falls to 0.50 or below. If the curve never reaches 0.50 during follow-up, the median is reported as not reached.
Numbers-at-risk table A table beneath a Kaplan-Meier plot giving the number of participants still at risk at regular times, which shows how much information supports each part of the curve.
Greenwood's formula The standard formula for the variance of a Kaplan-Meier estimate, used to compute confidence intervals that widen as the number at risk falls (Greenwood, 1926).
Restricted mean survival time The area under a survival curve up to a chosen time, interpreted as the average event-free time within that horizon. Differences in it do not depend on proportional hazards (Royston & Parmar, 2013).
Comparing Groups
Log-rank test A test of the null hypothesis that two or more groups have the same survival, based on summing observed minus expected events across event times and referring the result to a chi-squared distribution.
Hazard The rate at which events occur among participants who are still event-free at a given time, per unit of time. It can rise, fall or stay constant over follow-up.
Hazard ratio The hazard in one group divided by the hazard in another at the same time since time zero. Under constant hazards it equals the incidence rate ratio.
Proportional hazards The assumption that the ratio of the hazards in two groups is the same at every time during follow-up, although each hazard may change over time.
Cox proportional hazards model A regression model that estimates adjusted hazard ratios while leaving the shape of the baseline hazard unspecified (Cox, 1972). HSCI 341 interprets the hazard ratio from a Cox model without fitting one.
Events-based sample size A sample size calculation that first finds the number of events needed to detect a hazard ratio (Schoenfeld, 1983) and then divides by the proportion expected to have the event.
Key People
John Graunt London haberdasher whose 1662 analysis of the Bills of Mortality included an early life table estimating how many of 100 people would survive to successive ages.
Major Greenwood British epidemiologist and statistician whose 1926 report on the natural duration of cancer gave the variance formula still used for survival estimates.
Sidney J. Cutler and Fred Ederer Statisticians at the United States National Cancer Institute who set out the actuarial life-table method for clinical follow-up studies in 1958.
Edward L. Kaplan and Paul Meier Statisticians who published the product-limit estimator of survival from incomplete observations in 1958, now known as the Kaplan-Meier estimator.
Nathan Mantel American biostatistician whose 1966 paper on evaluating survival data is one of the origins of the log-rank test.
Richard Peto British epidemiologist and statistician who, with Julian Peto, developed rank tests for comparing survival curves in 1972 and later led large collaborative trial overviews.
David R. Cox British statistician who introduced the proportional hazards regression model in 1972, the most widely used model for time-to-event data.
David Schoenfeld American biostatistician who derived the number of events needed to detect a hazard ratio with a given power in 1983.
No matching entries. Try a different search term.
Section 1

Time-to-Event Questions and Study Design

⏱ Estimated reading time: 35 minutes

Section 1 of 4

Time-to-Event Questions and Study Design

Time zero, the event, follow-up, censoring and the errors that start at time zero.

The outcome

A time and a status for every participant

Time

The interval from time zero to the event, to the last event-free contact, or to the end of the study.

Status

The status is 1 if the event ended follow-up and 0 if the participant was censored.

A censored time of 8 months means that the event time is known only to exceed 8 months.

Three design decisions

Time zero, the event and the end of follow-up

Time zero

Eligibility, exposure assignment and the start of follow-up coincide.

The event

The criterion, ascertainment schedule and dating rule are the same in every group.

End of follow-up

Follow-up ends at the event, the last event-free contact or the end of the study.

Types of incomplete follow-up

Right, left and interval censoring, and late entry

Right censoring

Loss to follow-up, withdrawal, moving away and the end of the study all produce it.

Left censoring

The event happened before observation began, at an unknown time.

Interval censoring

The event is known only to fall between two assessments.

Late entry

A participant is counted at risk only from the date of entry.

The key assumption

Informative and non-informative censoring

Non-informative

Censored participants have the same future risk as those who remain under observation.

Informative

Censoring is related to prognosis, so survival estimates are biased.

  • Retention procedures keep losses small.
  • Recorded reasons and baseline comparisons show who left.
  • A worst-case sensitivity analysis tests whether the conclusions survive.
Why shortcuts fail

Ten participants, three censored early

Two shortcuts and the limits set by the data
\[ \frac{E}{N} = \frac{5}{10} = 0.50 \qquad \frac{E}{N-C} = \frac{5}{7} = 0.71 \qquad \frac{E}{N} \le \text{risk} \le \frac{E+C}{N} = 0.80 \]

The Kaplan-Meier estimate of the 24-month risk for these participants is 0.64, which lies within the limits.

Errors that start at time zero

Immortal time and lead time

Immortal time bias

Exposure defined after time zero credits event-free waiting time to the exposure.

Lead-time bias

Earlier diagnosis starts the clock earlier without delaying the event.

HSCI 230 Lesson 10 treats both biases in detail.

Carry forward

Into the life table

  • Each participant contributes a time and a status defined by the protocol.
  • Censoring is expected, and the methods assume that it is non-informative.
  • The life table uses censored follow-up up to the point of censoring and assumes nothing after it.

Overview

Many questions in public health research concern when an event happens as well as whether it happens, and the methods for answering them are known as survival analysis. This lesson is conceptual and is written for people who design studies. This first section explains what a time-to-event outcome records for each participant, the three design decisions that give it meaning (time zero, the event and the end of follow-up), and two biases that follow from a poor choice of time zero. It then describes the forms of incomplete follow-up called censoring, the assumption that censoring is non-informative, and the reasons why ordinary summaries misstate the risk when follow-up is incomplete. Section 2 then computes an actuarial life table by hand, Section 3 computes and reads a Kaplan-Meier estimate, and Section 4 compares groups, explains the hazard ratio and the proportional hazards idea, and lists what a protocol with a time-to-event outcome must specify.

Learning Objectives for this section

  • 1.1 Explain what makes an outcome time-to-event data and why both a time and an event status are recorded for each participant.
  • 1.2 Specify time zero, the event and the end of follow-up for a study, and convert follow-up records into a time and a status for each participant.
  • 1.3 Identify immortal time bias and lead-time bias as consequences of the choice of time zero.
  • 2.1 Distinguish right, left and interval censoring from late entry, and identify the sources of right censoring in a study description.
  • 2.2 Explain the difference between informative and non-informative censoring and describe design steps that make informative censoring less likely and easier to detect.
  • 3.1 Explain why treating censored participants as event-free, or dropping them from the analysis, misstates the risk of the event.

1.1 Time and Event Status

A trial of a smoking cessation program asks how long participants remain abstinent, a cohort study of young adults asks how long people who start without depressive symptoms remain free of them, and a tuberculosis program asks how long after diagnosis people complete treatment. In each case the outcome for every participant is a length of time from a defined starting point to a defined event. Data of this kind are called time-to-event data, and the methods for analyzing them are called survival analysis. The name reflects the origin of these methods in studies of mortality, although the event can be any well-defined change of state.

A time-to-event outcome has two parts for each participant. The first is a length of time, measured from a starting point that is defined in the same way for everyone. The second is a status that records how that time ended: either the event was observed, or observation stopped before any event was seen. Analysts usually code the status as 1 for an observed event and 0 for a participant whose observation stopped without the event, who is described as censored. Neither part is sufficient alone. Two participants who were each followed for eight months carry very different information if one had the event in month eight and the other moved away in month eight without having it.

Two features distinguish these data from other continuous outcomes, such as blood pressure or body weight. The first is their shape. Follow-up times cannot be negative, and they are usually right-skewed, by which we mean that most values cluster at the shorter end while a long tail stretches out to the right, because a few participants remain event-free for a long time. The second feature is more fundamental, and it is the reason a separate set of methods is needed. For a censored participant, the event time is not measured at all; it is known only to exceed the time at which observation stopped. For example, a participant who was followed for eight months without the event and then moved away tells the investigator that their event time is longer than eight months, and nothing more. It might have been nine months, or twenty, or the event might never have happened. This is partial information, but it is still information, because it shows that the participant got through eight months without the event. Survival methods are designed to use exactly this partial information. Methods that ignore it, or that treat the censoring time of eight months as if it were an event time, give biased answers, as subsection 3.1 shows.

The need for both parts explains how time-to-event analysis extends Lesson 4. That lesson defined incidence risk as the proportion of an at-risk group that develops an outcome over a defined period, and incidence rate as new cases divided by person-time. Both measures make assumptions about follow-up. The risk requires that everyone is followed for the whole period, and the rate treats a person-month early in follow-up as equivalent to a person-month late in follow-up. Real cohorts rarely meet the first condition, because some participants leave before the period ends, and the second is often implausible. The methods in this lesson estimate the probability of remaining event-free over time while using all of the follow-up that each participant provides. Lesson 6 compared groups with the incidence rate ratio, and Section 4 of this lesson presents the hazard ratio as the time-to-event counterpart of that measure.

The question being asked also matters. A question about the risk of the event by a fixed time (what proportion of participants screen positive for depressive symptoms within 24 months) can be answered with the methods of this lesson even when follow-up is incomplete. A question about timing (how quickly positive screens accumulate, and whether they accumulate faster in one group) can only be answered with them, because it concerns the whole course of follow-up.

Both kinds of question run through the hypothetical study that serves as the running case for this lesson. It extends the Campus Connection Study from Lesson 7 into a follow-up of young adults who screen negative for depressive symptoms at baseline, and its event is a first positive screen.

Case: The Campus Connection Follow-up (hypothetical)

The Campus Connection Study, the running example of HSCI 341 Lesson 7, is a cross-sectional survey of adults aged 18 to 29 in British Columbia on loneliness and depressive symptoms. This lesson imagines a follow-up extension of that study, and all of its numbers are hypothetical teaching data. Participants whose baseline score on the Patient Health Questionnaire-9 (PHQ-9) is below 10, the threshold commonly used for at least moderate depressive symptoms (Kroenke et al., 2001), are invited to complete a brief online PHQ-9 each month for up to 24 months. The event is the first monthly score of 10 or more, dated to the month in which it occurred. The exposure is high versus low loneliness at baseline. Six hundred participants enrol: 200 report high loneliness and 400 report low loneliness.

The running case fixes the setting, and subsection 1.2 turns to the three design decisions that define its time-to-event outcome.

1.2 Time Zero, the Event and the End of Follow-Up

Before any data are collected, a time-to-event protocol must define when the clock starts, what stops it, and how observation ends for participants who do not have the event. These three decisions determine what the time and status variables mean, and errors in any of them cannot be repaired at the analysis stage. They belong in the methods of a study protocol, the written plan for a study as HSCI 207 Lesson 6 Section 3.1 defines it, and in a funding proposal they are summarized in the analysis plan.

1.2.1 Time Zero

Time zero is the moment at which the clock starts for each participant. The choice is guided by the target trial, a thought experiment from HSCI 230 Lesson 3 that the recall box below summarizes. Read it and try its retrieval question before you expand the answer, because the moment it asks about is the model for a good time zero.

Recall: The Target Trial

HSCI 230 Lesson 3, Section 1 (A Unified Approach to Study Design), described the thought experiment that Hernán (2005) recommended: specify an observational study as if it were a randomized trial, naming the study group and its selection, the assignment to exposure, the procedures for follow-up and the detection of the outcome. Later work by Hernán and colleagues calls this hypothetical trial the target trial, and its protocol is the template for the observational study. In a trial, eligibility is confirmed, the treatment is assigned and follow-up begins at the same moment, so no participant contributes follow-up before being eligible or before the exposure group is known. An observational study that starts the clock at a moment with the same alignment avoids the time-related biases described in subsection 1.3.

Retrieval question. In a randomized trial, which event marks the moment at which eligibility, assignment and the start of follow-up coincide?

Show the answer▼

Randomization. Eligibility is confirmed just before it, the treatment group is determined by it, and follow-up for the outcome starts from it, so it serves as time zero.

Common choices of time zero are the date of enrolment, the date of randomization in a trial, the date of diagnosis in a clinical cohort, and the date of a first prescription in a study of a medication. A good choice satisfies three conditions at the same moment: the participant meets the eligibility criteria, the participant's exposure group is determined, and follow-up for the event begins. Hernán et al. (2016) describe this alignment as part of specifying the target trial that an observational study tries to emulate, and they show that several avoidable biases arise when the three conditions are met at different times. In the Campus Connection Follow-up, time zero is the date on which the participant completes the baseline survey, because that is when eligibility (a PHQ-9 score below 10) is confirmed, when loneliness is measured, and when monthly follow-up begins.

Enrolment is usually spread over weeks or months, so time zero falls on different calendar dates for different participants. For example, one participant might complete the baseline survey in September and another in January. If time were measured by the calendar, these two people would start follow-up at different points, and comparing them in the same month of the calendar would compare someone in their first month of follow-up with someone in their fifth. Survival analysis therefore measures time on a study time scale, defined as the time since each person's own time zero. By this we mean that every participant's clock is reset so that they all start at zero, and "month 5" refers to the fifth month after each person's own baseline survey, whatever calendar month that happened to be. Some cohort studies of chronic disease use age as the time scale instead, because age is such a strong determinant of risk that it makes sense to compare each participant with others of the same age rather than with others at the same point in follow-up. Figure 8.1, in subsection 1.2.3, shows ten participants of the Campus Connection Follow-up on the study time scale.

1.2.2 The Event

The event must be defined precisely enough that two investigators reviewing the same record would agree on whether and when it occurred. The definition states the criterion (a PHQ-9 score of 10 or more), the method of ascertainment (the monthly online questionnaire) and the dating rule (the event is assigned to the month of the first qualifying score). The ascertainment schedule should be the same in every exposure group. If participants with high loneliness were contacted more often than others, their events would be detected sooner, and the comparison between groups would reflect the schedule as well as any effect of loneliness. Most analyses use the first occurrence of the event, so a participant leaves the group at risk once the event has happened. A composite event, such as hospitalization or death, counts whichever component occurs first, and each component needs its own definition.

1.2.3 The End of Follow-Up

Each participant's follow-up ends at the earliest of three dates: the date of the event, the last date on which the participant was known to be event-free before leaving the study, and the administrative end of the study. The time variable is the interval from time zero to that date, and the status variable records whether the event ended it. Table 8.1 applies these rules to the follow-up records of ten participants from the high-loneliness group, converting each record into a time and a status. Sections 2 to 4 use these ten participants, together with ten from the low-loneliness group, whenever a short dataset keeps the arithmetic manageable.

Table 8.1. Follow-up records of ten high-loneliness participants in the hypothetical Campus Connection Follow-up, reduced to a time and a status.

ParticipantWhat happenedTime (months)Status
1Screened positive in month 221 (event)
2Withdrew consent after the month 3 questionnaire30 (censored)
3Screened positive in month 551 (event)
4Screened positive in month 551 (event)
5Stopped responding after the month 8 questionnaire80 (censored)
6Screened positive in month 10101 (event)
7Moved overseas after the month 12 questionnaire120 (censored)
8Screened positive in month 15151 (event)
9Completed 24 months without a positive screen240 (censored)
10Completed 24 months without a positive screen240 (censored)

Figure 8.1 draws the same ten records on the study time scale. Each line starts at the participant's own time zero, and the symbol at its end shows whether an event or censoring ended follow-up.

Event (status 1) Censored (status 0) How it ended P1 Event P2 Withdrew P3 Event P4 Event P5 Lost P6 Event P7 Moved away P8 Event P9 Study ended P10 Study ended 0 6 12 18 24 Months since time zero (baseline survey)
Figure 8.1. Ten high-loneliness participants in the hypothetical Campus Connection Follow-up on the study time scale. Each line runs from time zero to the end of that participant’s follow-up; red circles are events and vertical bars are censoring times. The dashed line marks the administrative end of the study at 24 months.

The protocol should also state what counts as loss to follow-up, because participants in an online cohort rarely announce that they are leaving. A common rule is that a participant who misses a stated number of consecutive questionnaires, for example three, is censored at the date of the last completed questionnaire. Writing the rule in advance prevents the analyst from choosing censoring dates after seeing the data, and it makes the rule the same for every exposure group.

Of the three decisions, the choice of time zero has consequences beyond the definition of the time variable, because a poorly chosen starting point biases an analysis however carefully the rest of it is done. Subsection 1.3 describes the two best-known examples.

1.3 Biases That Start at Time Zero

Two biases follow directly from the choice of time zero. HSCI 230 Lesson 10, Design-Specific and Temporal Biases, teaches both in detail, and they are summarized here because each is prevented by a decision written into the protocol. Immortal time bias arises when membership of the exposed group depends on something that happens after time zero, so that event-free time spent waiting to become exposed is credited to the exposure. Lead-time bias arises when time zero is the date of diagnosis and one group is diagnosed earlier, so that survival measured from diagnosis looks longer even if the event itself is not delayed. Expand each panel below to see how each bias would arise in practice, the protocol step that prevents it, and the feature that the two biases share.

Immortal time bias▼

Immortal time bias arises when membership of the exposed group depends on something that happens after time zero. Suppose the Campus Connection team classified participants as users of a campus peer-support program if they joined it before any positive screen, and started everyone's clock at the baseline survey. A participant who joined in month 9 must have remained event-free for months 0 to 8 in order to be classified as a user, because anyone who screened positive in those months would have been classified as a non-user instead. Those months are called immortal with respect to the event, by which we mean that the event could not have happened during them for anyone who ended up in the user group; the classification rule guarantees it. Counting them as exposed person-time therefore gives the user group months of event-free follow-up that it earned simply by waiting, while participants who had the event early are pushed into the non-user group. The result is that the program looks protective even if it has no effect at all (Suissa, 2008). The protocol prevents the bias by defining exposure at time zero, or by treating program use as a time-varying exposure so that each participant's months before joining are counted as unexposed time.

Lead-time bias▼

Lead-time bias arises when time zero is the date of diagnosis and one group's condition is detected earlier, for example by screening. The lead time is the extra period between detection by screening and the date on which the condition would otherwise have been diagnosed from symptoms. Survival measured from diagnosis is then longer in the screened group even if screening does not delay death at all, because the clock started earlier. For example, suppose a person would develop symptoms and be diagnosed at age 62 and would die at age 67, five years after diagnosis. If screening detects the same disease at age 60 and the person still dies at age 67, survival from diagnosis is now seven years. The two extra years reflect only the earlier start of the clock, not a longer life. The protocol prevents the bias by measuring time from a starting point that does not depend on when the condition was detected, such as the date of randomization to screening or no screening, or by comparing mortality in the whole screened and unscreened populations.

The common thread▼

In both biases the clock starts at a moment when eligibility, exposure assignment and the start of follow-up do not coincide. Checking that the three conditions are met at the same moment for every participant, as Hernán et al. (2016) recommend, is the single most useful check on a time-to-event protocol.

Both biases are prevented by the same check on the protocol: eligibility, exposure assignment and the start of follow-up must coincide at time zero for every participant. Once time zero, the event and the rules for ending follow-up are fixed, each record in Table 8.1 reduces to a time and a status. Five of those participants, numbers 2, 5, 7, 9 and 10, have a status of 0, and subsection 2.1 describes the forms that this incomplete information can take.

2.1 Types of Censoring

Censoring occurs when a participant's event time is only partly known. The form that standard survival methods handle is right censoring, in which the event, if it occurs at all, would occur after the participant's last observation. Two other forms, left and interval censoring, and a related situation called late entry arise less often but need to be recognized, because the methods of this lesson do not handle them in the same way.

2.1.1 Sources of Right Censoring

Right censoring has several sources, and a protocol should anticipate each of them: loss to follow-up, withdrawal of consent, administrative censoring at the planned end of the study, leaving the study population, and competing events. Four of these appear among the censored participants in Table 8.1. Click each card to see how the source arises in the Campus Connection Follow-up, which participant illustrates it, and which source is most likely to be related to a participant's health.

Loss to follow-upClick to learn more
Withdrawal of consentClick to learn more
Administrative censoringClick to learn more
Leaving the study populationClick to learn more
Competing eventsClick to learn more

The cards show that every source except a competing event simply stops observation while leaving the event possible later. A competing event differs, because it makes the event of interest impossible, and subsection 2.2 returns to it.

2.1.2 Left Censoring, Interval Censoring and Late Entry

Two other forms of censoring arise less often in prospective cohorts. Left censoring occurs when the event happened before observation began at an unknown time. In a study of the age at which adolescents first use cannabis, a participant who reports at the first interview that they have already used it is left-censored, because the event is known only to have occurred before that interview. The Campus Connection Follow-up avoids left censoring by excluding participants who screen positive at baseline. Interval censoring occurs when the event is known only to have occurred between two observation times. Every event in the Campus Connection Follow-up is interval-censored within a month, because a score of 10 or more in month 5 means that symptoms reached the threshold at some point after the month 4 questionnaire. Treating the month of detection as the event time is acceptable when the gap between assessments is short relative to the length of follow-up. When assessments are a year apart, methods designed for interval-censored data are needed.

Late entry, also called left truncation, differs from censoring. Censoring concerns a participant who is in the study but whose event time is only partly known; late entry concerns who gets into the study in the first place. It arises when participants join the group at risk some time after their time zero, for example when time zero is the date of diagnosis but people are recruited from a clinic months or years later. Because recruitment happens late, anyone who had the event before they could be recruited is never seen, and the people who are recruited are, by definition, those who survived event-free long enough to be found. This changes how their early time can be used. A late entrant is counted as at risk only from the date of entry, because before that date the study could not have observed an event for them. An analysis that instead counts the earlier time as observed time overstates early survival, because it credits the cohort with event-free months during which the people who had the event were never included. Figure 8.2 places the four situations on one time axis, and a useful way to classify any participant is to ask which part of the time axis is unknown.

A. Right censoring Event-free to month 14, then lost B. Left censoring Event before the first visit C. Interval censoring Found at month 12, began after 6 D. Late entry Followed from month 5 onward event time unknown, later event somewhere here first visit: event already happened event in this window not observed entry 0 6 12 18 24 Months since time zero
Figure 8.2. Four kinds of incomplete information on one time axis. Right censoring (A) is the form handled by all of the methods in this lesson. Left censoring (B) and interval censoring with wide gaps between assessments (C) need specialized methods. A late entrant (D) is counted as at risk only from the date of entry.

Right censoring, the first situation in Figure 8.2, is the form of incomplete information that every method in the rest of the lesson handles. Those methods also make an assumption about why right-censored participants leave the study, and subsection 2.2 examines that assumption.

2.2 Informative and Non-Informative Censoring

Every method in this lesson rests on the assumption that censoring is non-informative. The assumption states that, at any time during follow-up, participants who are censored have the same future risk of the event as participants in the same group who remain under observation. By this we mean that the fact that someone left the study tells us nothing about whether they were about to have the event; leaving is unrelated to prognosis. The risk set, a term used throughout this lesson, is the group of participants who are still under observation and event-free at a given time, and so are still able to have an observed event. When censoring is non-informative, it removes people from the risk set without changing the average risk of the people who remain. The remaining participants are then a fair stand-in for those who left, and the estimate computed from them applies to the whole group. For example, if a participant leaves because their family moves to another province for work, there is no particular reason to think their mood was about to worsen, and the participants who stay can represent them.

Administrative censoring usually satisfies the assumption, because the closing date of a study has nothing to do with any participant's health. Loss to follow-up and withdrawal may not. In the Campus Connection Follow-up, a participant whose mood is worsening may stop answering monthly questionnaires before their score reaches 10. If participants like this are censored, the people who remain in the risk set are healthier than the group as a whole, fewer events are observed than actually occur, and the estimated probability of remaining event-free is too high. Censoring that depends on the participant's prognosis in this way is called informative censoring. If it is more common in one exposure group than in the other, it also biases the comparison between groups.

The assumption cannot be tested from the observed data, because the event times of censored participants are unknown. Design decisions make the assumption more plausible and its failure easier to assess. A protocol can include retention procedures that keep losses small (reminders by more than one channel, short questionnaires and modest incentives for completion), a record of the reason for every withdrawal, a plan to compare the baseline characteristics of participants who were censored early with those who were not, and a sensitivity analysis that recomputes the estimates under extreme assumptions, such as the assumption that every participant who was lost to follow-up had the event at the time of censoring. If the conclusions hold under those assumptions, informative censoring is an unlikely explanation for them.

Competing events, introduced in subsection 2.1.1, break the assumption in a particular way, because the methods in this lesson treat them as censoring even though a person who has had one can no longer have the event of interest. The callout below states the consequence, which is easy to overlook.

Competing events are not ordinary censoring

A competing event is an event that prevents the event of interest from occurring. In a study of time to a first diagnosis of dementia among older adults, death from another cause is a competing event. The methods in this lesson treat a competing event as censoring, which assumes that the person could still have the event of interest later. Because that assumption is false for a person who has died, one minus the Kaplan-Meier estimate overstates the proportion of people who actually develop the event of interest, and the overstatement grows as competing events become more common. Methods that estimate the cumulative incidence in the presence of competing risks are described by Austin et al. (2016). Death is rare among adults aged 18 to 29, so it has little effect in the Campus Connection Follow-up, but the protocol should still name any competing events and state how they will be handled.

Non-informative censoring is an assumption that design can make more plausible and that the observed data cannot test. Subsection 3.1 shows what happens when the ten participants in Table 8.1 are summarized with ordinary methods that ignore censoring altogether.

3.1 Why Ordinary Summaries Misstate the Risk

When some participants leave before the end of follow-up, two shortcuts are commonly used to estimate the risk of the event by a fixed time, and both give the wrong answer. The first treats every censored participant as event-free and divides the number of events (E) by the number enrolled (N). It understates the risk, because it assumes that none of the censored participants would have had the event after they left. The second drops the participants censored before the end of follow-up (C) and divides the events by the participants who remain, N − C. It tends to overstate the risk, because the people removed are those known to have been event-free for part of the period, while every participant who had an event is kept. The data themselves set limits on the true risk. It cannot be lower than the first shortcut, and it cannot be higher than (E + C) / N, the value obtained if every early-censored participant had the event immediately after leaving. Equation 8.1 sets out the two shortcuts and these limits.

Two shortcuts and the limits set by the data
Shortcut 1 = E / N    Shortcut 2 = E / (N − C)    E / N ≤ risk ≤ (E + C) / NEq 8.1
The first shortcut divides the number of events by the number enrolled. The second shortcut divides the events by the number enrolled minus the number censored before the end of follow-up. The true risk lies between the first shortcut and the value obtained by counting every early-censored participant as an event.

The ten participants in Table 8.1 show how far apart the shortcuts can be. For the question of what proportion screen positive within 24 months, five participants had the event (E = 5), three were censored before 24 months (C = 3), and two completed follow-up without the event. The first shortcut gives 5 ÷ 10 = 0.50, which assumes that participants 2, 5 and 7 did not screen positive after they left the study. The second gives 5 ÷ 7 = 0.71, which discards the event-free months of those three participants while keeping all five events. The data themselves only rule out values below 0.50 and above (5 + 3) ÷ 10 = 0.80. Section 3 shows that the Kaplan-Meier estimate of the 24-month risk for these ten participants is 0.64. It lies within those limits, and it uses the event-free months of each censored participant without inventing events for them.

Calculator 8.1 computes the two shortcuts and the upper limit from the number enrolled, the number with an observed event and the number censored before the end of follow-up, and its presets load the ten participants in Table 8.1 and the 200 high-loneliness participants.

Averaging the observed times is also misleading. The mean of the ten follow-up times in Table 8.1 is 10.8 months, but it mixes event times with censoring times, which measure different things. An event time records when the event happened, whereas a censoring time records only when observation stopped. Three of the censoring times are shorter than the event times they would eventually have become, if those participants ever had the event, so including them as if they were complete pulls the average down. The incidence rate from Lesson 4 does use all of the follow-up correctly, because it adds up the time each participant actually spent under observation, whether that time ended in an event or in censoring. The ten participants contributed 2 + 3 + 5 + 5 + 8 + 10 + 12 + 15 + 24 + 24 = 108 person-months and had 5 events, a rate of 5 ÷ 108 = 0.046 per person-month, or 4.6 per 100 person-months. The rate summarizes the whole period in one number, however, and in doing so it assumes that the event rate stayed the same throughout. By this we mean that a person-month in month 1 is treated as carrying the same chance of an event as a person-month in month 20. It therefore cannot show whether positive screens clustered in the first months of follow-up or spread evenly across it. The life table in Section 2 and the Kaplan-Meier estimator in Section 3 describe how the probability of remaining event-free changes over time, and Section 4 returns to the rate as the basis of the hazard ratio.

This section has defined a time-to-event outcome through time zero, the event and the end of follow-up, traced immortal time bias and lead-time bias to the choice of time zero, described the forms of censoring and the non-informative censoring assumption, and shown why ordinary summaries misstate the risk when follow-up is incomplete. The exercise below applies these decisions to a study of readmission after a first heart attack, and the key takeaways and knowledge check that follow review the section. Section 2 then builds the actuarial life table, which uses the follow-up of every participant to describe how the probability of remaining event-free changes over time.

Try it: Define a time-to-event outcome

A health authority plans to follow adults discharged from hospital after a first heart attack to study time to readmission for any cardiac cause. Enrolment runs for one year and follow-up ends on a fixed date one year after the last enrolment. Readmissions are identified from provincial hospital records. Write down the time zero, the event, the sources of right censoring you would expect, and one source of censoring that could be informative.

One possible answer. Time zero is the date of discharge from the first heart attack admission, when eligibility and follow-up begin together. The event is the first readmission with a cardiac diagnosis, dated to the admission date. Right censoring arises from the administrative end of follow-up (with longer potential follow-up for early enrolees), from moving out of the province, and from death from a non-cardiac cause, which is better treated as a competing event. Moving out of the province to live with family because of declining health could be informative, since those people may have a higher risk of readmission.

Key Takeaways

  • 1.1 A time-to-event outcome records two things for every participant: how long they were followed from a starting point defined in the same way for everyone, and whether that follow-up ended with the event (status 1) or without it (status 0, censored). You need both, because the same time can carry very different information. A participant who screened positive in month 8 and one who moved away in month 8 both have a time of 8, but for the second person we know only that their event time, if it ever comes, is longer than 8 months. When you work through an example, always read the status column before you use a time, and never treat a censoring time as if it were an event time. Averaging the follow-up times is misleading for the same reason: the mean of 10.8 months for Table 8.1 mixes event times with censoring times.
  • 1.2 Three design decisions give the time and the status their meaning, and they belong in the protocol before any data are collected. Time zero is when the clock starts; the event is defined by its criterion, its method of ascertainment and its dating rule, applied in the same way in every group; and follow-up ends at the earliest of the event, the last date the participant was known to be event-free, or the administrative end of the study. To turn a follow-up record into a time and a status, ask two questions: on what date did follow-up end, and was it the event that ended it? In Table 8.1, participant 2, who withdrew after the month 3 questionnaire, has a time of 3 and a status of 0, while participant 3, who screened positive in month 5, has a time of 5 and a status of 1. A common slip is to code a withdrawal or a move as an event; only the event itself earns a status of 1, and participants who finish the study event-free, such as participants 9 and 10, are censored at 24 months with a status of 0.
  • 1.3 Two well-known biases come straight from a poorly chosen time zero, and both can be prevented at the design stage. Immortal time bias arises when membership of the exposed group depends on something that happens after time zero: a participant who joined a peer-support program in month 9 had to stay event-free through months 0 to 8 to be classified as a user, so crediting those months to the exposure makes the program look protective even if it has no effect. Lead-time bias arises when time zero is the date of diagnosis and one group is diagnosed earlier, for example by screening, so survival measured from diagnosis looks longer even though the event itself is not delayed. The single most useful check on a time-to-event design is to ask whether eligibility, exposure assignment and the start of follow-up happen at the same moment for every participant. If they do not, name the bias and propose the fix: define exposure at time zero (or treat it as time-varying, so the months before joining count as unexposed), or start the clock at a point that does not depend on when the condition was detected, such as randomization to screening or no screening.
  • 2.1 Censoring means that a participant's event time is only partly known, and the type of censoring depends on which part is missing. Right censoring, the kind every method in this lesson handles, means that the event, if it happens, comes after the last observation; it arises from loss to follow-up, withdrawal of consent, moving out of the study population and the administrative end of the study. Left censoring means that the event had already happened at an unknown time before observation began, and interval censoring means that the event is known only to fall between two assessments (every event in the Campus Connection Follow-up is interval-censored within a month). Late entry is not censoring at all but a delayed start: the participant joins the group at risk some time after their time zero and is counted as at risk only from the date of entry. When a question describes a participant, place them on a time axis as in Figure 8.2 and ask what is unknown: the time after the last contact (right), the time before the first contact (left), the time between two contacts (interval), or the follow-up between time zero and recruitment (late entry).
  • 2.2 Every method in this lesson assumes that censoring is non-informative, which means that people who are censored have the same future risk of the event as people in the same group who stay under observation. Censoring becomes informative when the reason for leaving is linked to prognosis, for example when participants whose mood is worsening stop answering the monthly questionnaires before their score reaches 10. The people left in the risk set are then healthier than the group as a whole, too few events are observed, and the estimated probability of remaining event-free is too high. Administrative censoring at the planned end of a study is usually non-informative, so when you assess a scenario, look first at loss to follow-up, withdrawal and moving away, and ask whether the reason could be related to the outcome and whether it is more common in one group. Because the assumption cannot be tested from the observed data, the useful response is a design step: retention procedures that keep losses small, a recorded reason for every withdrawal, a comparison of the baseline characteristics of those censored early with those who were not, and a worst-case sensitivity analysis that treats each loss as an event at the time of censoring.
  • 3.1 When some participants leave early, the two obvious shortcuts both give the wrong answer, and they go wrong in predictable directions. Treating every censored participant as event-free (E / N) assumes that none of them would ever have had the event, so it understates the risk; dropping them from the denominator (E / (N − C)) discards their event-free months while keeping every event, so it tends to overstate the risk. For the ten participants in Table 8.1 the shortcuts give 5 / 10 = 0.50 and 5 / 7 = 0.71, and the data only allow the true 24-month risk to lie between 0.50 and (5 + 3) / 10 = 0.80, the value obtained if every early-censored participant had the event straight after leaving. The Kaplan-Meier estimate of 0.64 falls inside these limits because it uses each censored participant's follow-up up to the point at which they left. When you are asked to critique a reported risk, identify which shortcut was used, state the direction of its bias, and use Equation 8.1 to show the range the data actually support.
Knowledge Check: this section

1. A cohort study follows older adults for up to 24 months for time to a first fall. Participants J and K both have a follow-up time of 10 months: J had a fall in month 10, and K moved to another city in month 10 without having fallen. A colleague proposes to summarize the data as the mean follow-up time and to leave out how each participant's follow-up ended. Which statement is correct?

The same time can carry different information. J's 10 months ended in a fall, while K's ended without one, so K's fall time is only known to exceed 10 months; without a status the two records look identical.
J's follow-up ended with the event (status 1) and K's ended without it (status 0, censored), so K's fall time is known only to be longer than 10 months. A time alone cannot show this difference.
Giving K 24 months invents 14 months that were never observed. Follow-up ends at the last date K was known to be fall-free, month 10, with status 0.
Only the event itself earns a status of 1. K moved away without falling, so K is censored at month 10; coding the move as a fall invents an event.
Correct: K's fall time is known only to exceed 10 months, so a status is needed as well as a time. The information needed is how each follow-up ended: J's ended with the event (status 1) and K's ended without it (status 0, censored). A mean of the observed times would treat K's 10 months as if it were a fall time, mixing event times with censoring times. Giving K 24 months invents 14 months that were never observed, and coding K as a fall invents an event. (Section 1, 1.1 Time and Event Status and 3.1 Why Ordinary Summaries Misstate the Risk; Objective 1.1)

2. A cohort study follows new mothers for time to stopping breastfeeding. Time zero is the date of birth, the event is the first monthly call at which the mother reports that she has stopped, and follow-up ends at the earliest of the event, the last call at which she was still breastfeeding, or month 12. An analyst codes four mothers as shown. Which mother is coded incorrectly?

Mother and what happenedTime (months)Status
A: reported at the month 4 call that she had stopped41
B: still breastfeeding at the month 12 call120
C: still breastfeeding at the month 7 call, then could not be reached70
D: still breastfeeding at the month 5 call, then withdrew from the study51
Mother A reported at the month 4 call that she had stopped, so the event ended her follow-up at month 4 and status 1 is right.
Reaching month 12 still breastfeeding is administrative censoring at the planned end of follow-up, so a time of 12 with status 0 is right.
Mother C was last known to be breastfeeding at month 7 and then could not be reached, so she is right-censored at her last call, time 7 with status 0, as coded.
Mother D was last known to be breastfeeding at month 5 and then withdrew, so she is censored at 5 months with status 0. Status 1 records an event that never happened.
Correct: Mother D. The information needed is the rule for ending follow-up and the meaning of the status code, which is 1 only when follow-up ended with an observed event. Mother D was last known to be breastfeeding at month 5 and then withdrew, so she is right-censored with a time of 5 months and a status of 0; status 1 records an event that never happened. Mother B is correctly coded 0, because reaching the end of the study without the event is administrative censoring, not an event, and Mother C is correctly censored at her last call, month 7. (Section 1, 1.2.3 The End of Follow-Up and Table 8.1; Objective 1.2)

3. A study of time from a diagnosis of type 2 diabetes to a first foot ulcer uses the date of diagnosis as time zero and reviews participants at annual clinic visits. Which participant is an example of late entry rather than censoring?

Time zero is diagnosis in 2021, but observation began only at recruitment in 2023, so the participant joined the risk set late and is counted at risk only from 2023. Anyone with an ulcer before recruitment is never seen.
Being ulcer-free at year 3 and then leaving the province is right censoring: the event, if it occurs, would come after the last observation. Follow-up began at time zero, so there is no late entry.
An ulcer first found at year 3 after a clear year 2 visit is an observed event whose exact time is interval-censored between the two visits. It is not late entry.
Being ulcer-free when the study closes is administrative censoring, a form of right censoring, not a delayed start to the risk set.
Correct: the participant diagnosed in 2021 and recruited in 2023. The information needed is when each person's time zero falls compared with when observation began. That participant joined the risk set two years after time zero, so they are a late entrant, counted at risk only from 2023; people who had an ulcer before they could be recruited are never seen. Moving out of the province and still being ulcer-free when the study closes are sources of right censoring, and an ulcer first found at year 3 after a clear year 2 visit is interval-censored between the two visits. (Section 1, 2.1 Types of Censoring and Figure 8.2; Objective 2.1)

4. A study follows children with asthma for time to a first emergency department visit, using the records of the city's children's hospital. Families of children with the most severe asthma are more likely than other families to move to another city to be near a specialist clinic, and children who move are censored on the date they move. Which statement is correct?

Administrative censoring means the planned end of the study. Moving to be near a specialist is linked to severity, so those censored have a higher future risk than those who stay, which makes the censoring informative.
The direction is reversed and the fix fails. Losing high-risk children leaves a healthier risk set, so fewer visits are observed and survival is too high; dropping the movers also discards their visit-free time.
Movers have more severe asthma, so censoring them leaves a healthier risk set, too few visits are observed and survival is overstated. Recorded reasons and baseline comparisons help detect the problem.
The assumption cannot be tested from the observed data, because the event times of children who moved are unknown. Design steps such as recorded reasons and a worst-case analysis are the available checks.
Correct: censoring is informative and the estimate of remaining visit-free will be too high. The information needed is whether censored children differ in future risk from those who stay: here the children who move have more severe asthma, so they are at higher risk. Censoring them leaves a healthier risk set, fewer visits are observed than really occur, and survival is overstated, not understated. The assumption cannot be tested directly, because the event times of censored children are unknown, but recorded reasons, baseline comparisons and a worst-case sensitivity analysis make the problem easier to detect; dropping the movers discards their visit-free time and does not fix it, and administrative censoring means the planned end of the study. (Section 1, 2.2 Informative and Non-Informative Censoring; Objective 2.2)

5. In a pilot cohort of 20 participants followed for 24 months, 6 had the event, 5 were censored before 24 months and 9 completed follow-up event-free. A colleague drops the 5 censored participants and reports a 24-month risk of 6/15 = 0.40. Which response is correct?

The censored participants' outcomes after leaving are unknown, but their event-free months before leaving are information. Dropping them keeps every event while removing people known to be event-free for part of the period, so 0.40 tends to be too high.
6/20 = 0.30 assumes no censored participant had the event later, so it is too low; 6/15 = 0.40 drops known event-free time and tends to be too high. The data only allow values from 0.30 to (6 + 5)/20 = 0.55.
Dropping the censored participants tends to overstate the risk, not understate it. And 6/20 = 0.30 is the other shortcut, which treats the censored as event-free and is too low.
Averaging two biased shortcuts does not remove the bias. A proper estimate, such as a life table or Kaplan-Meier, uses the censoring times; the data only set limits of 0.30 to 0.55.
Correct: dropping the censored participants tends to overstate the risk, and the data allow any value from 0.30 to 0.55. The information needed is the number enrolled (N = 20), the events (E = 6) and the early censorings (C = 5). Counting the censored as event-free gives E/N = 6/20 = 0.30, which is too low because it assumes none of them would ever have had the event; dropping them gives E/(N − C) = 6/15 = 0.40, which tends to be too high because only people known to be event-free for part of the period are removed; counting every early censoring as an event gives the upper limit (E + C)/N = 11/20 = 0.55. Averaging two biased shortcuts does not remove the bias, and a proper estimate needs the censoring times. (Section 1, 3.1 Why Ordinary Summaries Misstate the Risk, Equation 8.1 and Calculator 8.1; Objective 3.1)

6. A cohort study of adults discharged after a first heart attack classifies them as attenders of cardiac rehabilitation if they attended at least one session in the six months after discharge, and starts every participant's clock at discharge. Attenders had a much lower death rate over the first year. Which explanation and remedy fit best?

Attendance is decided after discharge, so attenders had to survive until their first session to be classified. Crediting those immortal months to rehabilitation makes it look protective; counting them as unexposed time removes the bias.
Lead-time bias arises when one group is diagnosed earlier and time is measured from diagnosis. Here the clock starts at discharge for everyone; the problem is that exposure is assigned after time zero.
Nothing describes participants leaving according to prognosis, and the pattern makes rehabilitation look protective, not harmful. The problem lies in classifying exposure after time zero.
A common starting event is not enough. At discharge, eligibility and follow-up coincide but exposure assignment does not, because attendance is decided over the next six months.
Correct: immortal time bias. The information needed is when the exposure group is decided compared with time zero. Attendance depends on something that happens after discharge, so a participant who first attended in month 4 had to survive months 0 to 4 to be classified as an attender; crediting those immortal months to rehabilitation makes it look protective even if it has no effect. A common starting event is not enough, because at discharge eligibility and follow-up coincide but exposure assignment does not; treating attendance as a time-varying exposure, or defining exposure at time zero, aligns the three. Lead-time bias concerns earlier diagnosis, a different problem. (Section 1, 1.3 Biases That Start at Time Zero; Objective 1.3)

7. A school dental program applies sealants to the first molars of grade 2 children and invites each child to a check-up every six months for 24 months, to study the time to a first cavity in a sealed molar. Child A was cavity-free at the 6-month check-up and had a cavity found at the 12-month check-up. Child B was cavity-free at the 6-month and 12-month check-ups and attended none after that. How should the two records be coded?

The cavity was found at the 12-month check-up, so the event time is recorded as 12 months. The cavity began somewhere between 6 and 12 months, which is interval censoring, not an event dated at the last clear visit.
Left censoring would mean the cavity was already present before the first check-up. Child A had a clear 6-month check-up, and coding child B at 24 months invents 12 unobserved months.
Child A's cavity was found at 12 months, so time 12 and status 1, with the true onset interval-censored between 6 and 12. Child B was last known cavity-free at 12 months, so time 12 and status 0.
Stopping attendance is not an event. Child B was last known cavity-free at 12 months, so child B is censored there with status 0; coding a cavity invents an event.
Correct: child A is an event at 12 months whose true time is interval-censored, and child B is censored at 12 months. The information needed is the date on which follow-up ended and whether the event ended it. Child A's cavity was found at the 12-month check-up, so the time is 12 months and the status is 1, but the cavity is known only to have developed between the 6-month and 12-month check-ups, which is interval censoring; dating it to the check-up at which it was found is a reasonable approximation when check-ups are close together. Child B was last known to be cavity-free at 12 months, so the time is 12 months and the status is 0. Coding child B at 24 months invents 12 months that were never observed, and coding child B as an event invents a cavity. Left censoring would mean the cavity was already present before the first check-up. (Section 1, 1.2.3 The End of Follow-Up and 2.1 Types of Censoring; Objectives 1.2 and 2.1)

8. In the same dental program, 4 of 30 children stopped attending check-ups and 2 moved away. A colleague says, "Children who stop coming to check-ups are simply lost, so the censoring is non-informative." Which response is best?

Loss to follow-up is not random by definition. Whether it is informative depends on whether the reason for leaving is related to the risk of cavities, which cannot be assumed away.
Children who stop attending likely have a higher risk of cavities, so the remaining risk set is lower-risk and survival is overstated. Recorded reasons, baseline comparisons and a worst-case analysis help detect this.
The direction is reversed and the fix fails. Losing higher-risk children overstates the probability of remaining cavity-free, and dropping censored children is one of the shortcuts that misstates the risk.
Being cavity-free before leaving is what censoring means; it says nothing about the future risk of those who left. The assumption cannot be tested from the observed data.
Correct: disagree, because the censoring is likely to be informative and to overstate the probability of remaining cavity-free. The information needed is whether the reason for leaving could be related to the risk of the event. Children who stop attending are likely to come from families with less access to dental care, so they probably have a higher risk of cavities than children who keep attending. Removing them leaves a lower-risk group in the risk set, fewer cavities are observed than actually occur, and the estimated probability of remaining cavity-free is too high, not too low. Dropping censored children is one of the shortcuts that misstates the risk. Being cavity-free before leaving is exactly what censoring means and says nothing about the future risk, and the assumption cannot be tested from the observed data, which is why the protocol relies on design steps: retention procedures that keep losses small, a recorded reason for every departure, a comparison of the baseline characteristics of children who left and stayed, and a worst-case analysis. (Section 1, 2.2 Informative and Non-Informative Censoring; Objective 2.2)
← Lesson 7

✦ Pass the knowledge check with 100% to continue

Section 2

The Actuarial Life Table

⏱ Estimated reading time: 30 minutes

Section 2 of 4

The Actuarial Life Table

Cumulative survival as a product of conditional probabilities over fixed intervals.

The logic

Surviving one interval at a time

Cumulative survival
\[ \color{#0B7B6B}{S_j} = \color{#1D4ED8}{p_1} \times \color{#1D4ED8}{p_2} \times \cdots \times \color{#1D4ED8}{p_j} = S_{j-1} \times \color{#1D4ED8}{p_j} \]
Sj survival to the end of interval jpj conditional probability of surviving interval j
One row

The columns of the table

One interval
\[ \color{#047857}{r_j} = \color{#1D4ED8}{l_j} - \frac{\color{#6D28D9}{w_j}}{2} \qquad \color{#BE185D}{q_j} = \frac{\color{#C2410C}{d_j}}{\color{#047857}{r_j}} \qquad p_j = 1 - \color{#BE185D}{q_j} \]
l number enteringw withdrawalsd eventsr effective number at riskq probability of the event
Worked example

High-loneliness group, six-month intervals

MonthslwdrS
0 to 620012141940.928
6 to 1217410121690.862
12 to 181521491450.808
18 to 24129871250.763
The half-interval rule

Three ways to count withdrawals

0.070
14 / 200: withdrawals counted as fully at risk
0.072
14 / 194: the actuarial half-interval rule
0.074
14 / 188: withdrawals removed entirely
Assumptions

What the actuarial method assumes

  • Withdrawals have the same risk as those who remain.
  • Withdrawals occur, on average, at the midpoint of the interval.
  • Survival at a given time since time zero does not depend on the date of enrolment.
  • Interval widths are fixed in the protocol before the data are seen.
Carry forward

From fixed intervals to event times

  • The life table reports survival only at interval boundaries.
  • Recomputing the conditional probability at every event time removes the need to choose intervals.
  • Censored participants are then counted fully at risk until the moment they leave.

Overview

Section 1 showed that the shortcuts of treating censored participants as event-free, or dropping them, misstate the risk when follow-up is incomplete. This section introduces the oldest method that avoids both errors, the actuarial life table, which breaks follow-up into intervals and multiplies the probabilities of getting through each one. It explains why survival over several intervals is a product of conditional probabilities, defines the columns of the table, and builds a table by hand, first for a small cohort and then for the running case. It then examines the rule that counts each withdrawal as half a person, sets out the assumptions of the method and the choice of interval width, and shows how letting each interval end at an event time leads to the Kaplan-Meier estimator of Section 3.

Learning Objectives for this section

  • 4.1 Explain why cumulative survival is the product of conditional probabilities of surviving each interval.
  • 4.2 Define the columns of an actuarial life table: the number entering, the withdrawals, the events, the effective number at risk, the conditional probabilities of the event and of survival, and the cumulative survival.
  • 4.3 Calculate an actuarial life table by hand from counts of events and withdrawals in each interval.
  • 4.4 Explain the half-interval assumption for withdrawals and show how the estimate changes if withdrawals are counted as fully at risk or not at risk.
  • 4.5 Describe the assumptions of the actuarial method and the trade-off involved in choosing the width of the intervals.

4.1 Surviving One Interval at a Time

The life table is the oldest method for describing survival. John Graunt's analysis of the London Bills of Mortality in 1662 estimated how many of 100 people born would still be alive at successive ages, and the same arithmetic later became the basis for pricing life insurance and annuities. Two kinds of life table are in use. A period life table, of the kind used to compute life expectancy in Lesson 4, applies the age-specific death rates of one calendar period to a hypothetical population. A cohort or clinical life table, the subject of this section, follows a real group of people from time zero and estimates the proportion who remain event-free at the end of successive intervals of follow-up. Cutler and Ederer (1958) set out the method for clinical follow-up studies, and it is often called the actuarial method.

The actuarial life table answers the question that defeated the shortcuts in Section 1. It uses the follow-up of censored participants up to the point at which they leave, and it never assumes anything about what happened to them afterwards. It does so by breaking follow-up into intervals and estimating, for each interval, the probability of getting through it without the event among those who started it event-free.

Suppose follow-up is divided into intervals of six months. To remain event-free for 18 months, a participant must get through the first interval without the event, then get through the second interval given that they reached it event-free, then get through the third interval given that they reached it event-free. Each of these steps is a conditional probability, which is a probability calculated only among people who meet some condition. Here the condition is having reached the start of the interval without the event. Probability theory states that the probability of a sequence of events is the product of each event's probability conditional on the events before it. The probability of remaining event-free to the end of interval j is therefore the product of the conditional probabilities of surviving intervals 1 to j. A simple illustration shows why multiplication is the right operation. If 90 percent of a group get through the first six months event-free, and 90 percent of those who reach month 6 also get through the next six months, then the proportion who get through both is 90 percent of 90 percent, or 0.90 × 0.90 = 0.81. Each step keeps a fraction of the people who were left after the step before it, so the fractions multiply.

The value of this decomposition lies in the denominators. Each conditional probability is estimated only from the participants who were present and event-free at the start of that interval. A participant who was censored in month 8 contributes fully to the first interval, contributes partly to the second, and is simply absent from the third and fourth. Nobody has to guess what happened to that participant after month 8, and their eight event-free months are not wasted. Figure 8.3 shows the chain of conditional probabilities for the Campus Connection Follow-up life table that subsection 4.3.2 computes.

0 to 6 months 200 enter p = 0.928 S = 0.928 6 to 12 months 174 enter p = 0.929 S = 0.862 12 to 18 months 152 enter p = 0.938 S = 0.808 18 to 24 months 129 enter p = 0.944 S = 0.763 Each link uses only those event-free at its start; S is the running product of the p values S at 24 months = 0.928 × 0.929 × 0.938 × 0.944 = 0.763
Figure 8.3. The actuarial life table as a chain. Each box gives the number entering a six-month interval, the conditional probability of surviving it (p) and the cumulative survival to its end (S), for the 200 high-loneliness participants in the hypothetical Campus Connection Follow-up.

Each link of the chain in Figure 8.3 is computed from counts recorded for its interval, and subsection 4.2 sets out those counts, and the quantities derived from them, as the columns of an actuarial life table.

4.2 The Columns of an Actuarial Life Table

An actuarial life table has one row per interval and seven columns. The subscript j numbers the intervals, so l1 is the number entering the first interval and S3 is the cumulative survival to the end of the third interval. Three of the columns are counts recorded for the interval (the number entering, the withdrawals and the events), and the other four are derived from them. Table 8.2 defines each column and shows how it is obtained.

Table 8.2. Columns of an actuarial life table, with the symbol for each quantity and how it is obtained.

SymbolQuantityHow it is obtained
ljNumber entering the intervalParticipants event-free and under observation at the start of interval j; for later intervals, lj = lj−1 − wj−1 − dj−1
wjWithdrawalsParticipants censored during the interval, for any reason
djEventsParticipants who had the event during the interval
rjEffective number at riskrj = lj − wj / 2
qjConditional probability of the eventqj = dj / rj
pjConditional probability of surviving the intervalpj = 1 − qj
SjCumulative survival to the end of the intervalSj = p1 × p2 × … × pj = Sj−1 × pj

The effective number at risk is the only column that needs explanation. It is the denominator used to estimate the conditional probability of the event in an interval, adjusted for the fact that withdrawals were not observed for the whole interval. Withdrawals leave at various points during the interval, so they were at risk for part of it. Some leave in the first week and some in the last, and the table does not record exactly when. Counting them as fully present would credit them with time they did not spend under observation, while removing them entirely would ignore the time they did spend. The actuarial method therefore assumes that, on average, they were at risk for half of the interval, and it counts each withdrawal as half a person in the denominator. For example, if 12 participants withdraw during an interval that 200 participants entered, the effective number at risk is 200 minus 6, or 194. Subsection 4.4 examines this rule. Equation 8.2 gives the formulas for one interval.

One interval of an actuarial life table
r = l − w / 2     q = d / r     p = 1 − qEq 8.2
The effective number at risk is the number entering the interval minus half the withdrawals. The conditional probability of the event is the number of events divided by the effective number at risk, and the conditional probability of surviving the interval is one minus that probability.

For the first interval of the Campus Connection Follow-up, in which 200 participants entered, 12 withdrew and 14 screened positive, the formulas give r = 200 − 12 / 2 = 194, q = 14 / 194 = 0.072 and p = 0.928. Calculator 8.2 applies Equation 8.2 and starts from these counts.

Equation 8.2 deals with one interval at a time. A full table chains the intervals together, because the number entering each interval depends on the withdrawals and events in the interval before it, and subsection 4.3 builds such tables by hand.

4.3 Calculating a Life Table by Hand

A table is built one row at a time. For each interval, compute the effective number at risk, the conditional probability of the event and the conditional probability of surviving with Equation 8.2, and multiply the cumulative survival from the row above by the new conditional probability of surviving. Then carry the row forward: the number entering the next interval is the number entering the current interval minus its withdrawals and events. One minus the final cumulative survival is the estimated risk over the whole period. The two worked examples below apply this routine, first to round numbers and then to the running case.

4.3.1 A Small Example in Yearly Intervals

The first example is deliberately small. One hundred people are followed in yearly intervals. In the first year, 10 withdraw and 8 have the event; in the second year, 6 withdraw and 10 have the event; and in the third year, 12 withdraw and 6 have the event. Each row's number entering is the previous row's number entering minus its withdrawals and events, so 100 − 10 − 8 = 82 people enter the second year and 82 − 6 − 10 = 66 enter the third. Worked Example 8.1 applies Equation 8.2 to each of the three years and multiplies the conditional probabilities of surviving them to obtain the cumulative survival.

Worked Example 8.1: A three-interval actuarial life table

IntervalljwjdjrjqjpjSj
0 to 1 year100108950.0840.9160.916
1 to 2 years82610790.1270.8730.916 × 0.873 = 0.800
2 to 3 years66126600.1000.9000.800 × 0.900 = 0.720

The estimated probability of remaining event-free through three years is 0.72, so the estimated three-year risk of the event is 1 − 0.72 = 0.28. Each value in the last column is computed from unrounded values; multiplying the rounded values shown gives the same result to three decimal places.

Worked Example 8.1 shows every step of the routine on round numbers, and the same steps apply unchanged to a real cohort with more intervals.

4.3.2 The Running Case: 200 Participants Over 24 Months

The 200 high-loneliness participants in the Campus Connection Follow-up were followed in four six-month intervals. The counts in Worked Example 8.2 record, for each interval, how many participants screened positive and how many were censored before 24 months for any of the reasons listed in Section 1. The 114 participants who were still event-free and under observation at 24 months were censored administratively at the end of the study, and they do not appear as withdrawals because they completed the final interval.

Worked Example 8.2: Actuarial life table, high-loneliness group (hypothetical)

MonthsljwjdjrjqjpjSj
0 to 620012141940.0720.9280.928
6 to 1217410121690.0710.9290.862
12 to 181521491450.0620.9380.808
18 to 24129871250.0560.9440.763

The estimated probability of remaining free of a positive screen for 24 months is 0.763, so the estimated 24-month risk is 0.237. Across the four intervals, 42 participants screened positive and 44 were censored before 24 months. The first shortcut from Section 1 gives 42 ÷ 200 = 0.21 and the second gives 42 ÷ 156 = 0.27; the life-table estimate lies between them.

The running case confirms the point made in Section 1: the life-table estimate of the 24-month risk, 0.237, lies between the two shortcuts. Equation 8.3 states the rule behind the last column of Worked Examples 8.1 and 8.2: the cumulative survival to the end of an interval is the product of the conditional probabilities of surviving every interval up to and including that one.

Cumulative survival in an actuarial life table
Sj = p1 × p2 × … × pj   with   pj = 1 − dj / (lj − wj / 2)Eq 8.3
The cumulative survival to the end of interval j is the product of the conditional probabilities of surviving each interval up to and including that one. Each conditional probability is one minus the events divided by the number entering the interval less half the withdrawals.

Calculator 8.3 computes a full life table with up to five intervals. It opens with the running case; the second preset loads the three-interval example. Changing the number of events or withdrawals in one interval changes the number entering every later interval, which shows how each row depends on the rows before it.

Figure 8.4 plots the four estimates for the running case.

0.50 0.60 0.70 0.80 0.90 1.00 0 6 12 18 24 Months since time zero Probability event-free 0.928 0.862 0.808 0.763
Figure 8.4. Actuarial survival estimates at the interval boundaries for the 200 high-loneliness participants. The vertical axis starts at 0.50. Actuarial estimates are usually drawn as points joined by lines, because the table says nothing about survival within an interval.

The running case gives an estimated 24-month risk of 0.237 in the high-loneliness group. That estimate depends on how the 44 participants censored before 24 months were counted in the denominators, and subsection 4.4 examines the rule that determined their contribution.

4.4 Why Withdrawals Are Counted as Half a Person

The half-interval assumption is a compromise between two extremes, and comparing the three versions for the first interval of the running case shows what is at stake. If the 12 withdrawals were counted as at risk for the whole interval, the denominator would be 200 and the conditional probability of the event would be 14 ÷ 200 = 0.070. This treats the withdrawals as if they had been observed event-free to month 6, which they were not, and it understates the probability of the event. If the withdrawals were removed entirely, the denominator would be 188 and the probability would be 14 ÷ 188 = 0.074. This discards the months that withdrawals spent at risk before they left, and it overstates the probability. The actuarial value, 14 ÷ 194 = 0.072, lies between them. The difference between the three versions grows with the number of withdrawals relative to the number entering and with the width of the interval.

The half-interval rule is one of three assumptions on which the actuarial method rests, and subsection 4.5 sets out all three together with the related choice of interval width.

4.5 Assumptions and the Width of the Intervals

The actuarial method gives a valid estimate only if three assumptions hold: censoring is non-informative, withdrawals occur on average at the midpoint of their interval, and survival does not depend on when a participant enrolled. The width of the intervals, which the analyst chooses, decides how much the second assumption matters and how precise each conditional probability is. Expand each panel below to see what each assumption means for the running case, how its failure would bias the estimate, and the trade-off involved in choosing the interval width.

Assumption 1: censoring is non-informative▼

The withdrawals in each interval are assumed to have the same risk of the event as the participants who remained. If participants whose mood was worsening were more likely to stop responding, the denominators would contain too many people who would have had the event, the conditional probabilities of the event would be too low, and cumulative survival would be overstated. This is the same assumption that underlies every method in this lesson.

Assumption 2: withdrawals occur, on average, at the midpoint▼

Counting each withdrawal as half a person assumes that withdrawals are spread evenly through the interval, so that the average withdrawal leaves at its midpoint. If most withdrawals happened in the first week of each interval, the half-interval rule would overstate their time at risk, because those participants were in fact observed for only a small part of the interval rather than half of it. The denominator would then be too large and the conditional probability of the event slightly too low. Narrower intervals make this assumption matter less, because even a badly placed withdrawal can only be misplaced by a short stretch of time when each interval is short.

Assumption 3: survival does not depend on when a participant enrolled▼

When enrolment is staggered and the study closes on a fixed date, participants who enrolled early contribute to later intervals, while participants who enrolled late are censored administratively before reaching them. The later intervals are therefore estimated mainly from early enrollees, and the earlier intervals from everyone. Combining them in one table assumes that the probability of the event at a given time since enrolment did not change over the calendar period of enrolment. By this we mean that a person who enrolled in the first month of recruitment and a person who enrolled in the last month would have faced the same risk in their sixth month of follow-up. A change in campus mental health services during recruitment, for example, could violate this assumption, because later enrollees would have had access to services that earlier enrollees did not, and their early intervals would describe a different situation from the later intervals contributed by the early enrollees.

The choice of interval width▼

Wide intervals give stable conditional probabilities but hide changes in risk within each interval and make the midpoint assumption less accurate. Narrow intervals show the timing of events in more detail but contain few events each, so their conditional probabilities are imprecise. Intervals should be fixed in the protocol before the data are seen, usually at clinically or practically meaningful points such as six-month assessment waves. The Kaplan-Meier estimator in Section 3 avoids the choice entirely by letting each interval end at an event time.

The panels show that the first and third assumptions concern who leaves and when people enrolled, which only the design can protect, while the second depends on the intervals the analyst fixes in the protocol before the data are seen. Despite these assumptions, the actuarial method remains the right tool when event and censoring times are known only by interval. Cancer registries that record survival by year since diagnosis, surveillance systems that report counts by quarter, and cohorts with fixed assessment waves all produce data in this form. It is also convenient for very large cohorts, because a single table summarizes the data. When exact or near-exact times are available for each participant, the Kaplan-Meier estimator uses them more fully.

The step from one method to the other follows from the choice of intervals. The life table shows the probability of remaining event-free only at the interval boundaries: 0.928 at 6 months, 0.862 at 12 months, 0.808 at 18 months and 0.763 at 24 months. Between the boundaries it says nothing, and an analyst who chose three-month intervals would obtain somewhat different values. If the conditional probabilities are recomputed every time an event occurs, two things change. The intervals no longer need to be chosen, and withdrawals no longer need the half-interval assumption, because each censored participant is counted as fully at risk at every event time before their censoring time and as absent after it. That is the Kaplan-Meier estimator.

This section has built the actuarial life table from conditional probabilities, applied it to a small cohort and to the running case, and set out the assumptions on which it rests. The exercise below works through one row of a life table by hand, and the key takeaways and knowledge check that follow review the section. Section 3 then develops the Kaplan-Meier estimator in full.

Try it: Complete one row by hand

In a four-interval life table, 150 people enter the third interval, 10 withdraw during it and 14 have the event. Cumulative survival at the end of the second interval is 0.850. Compute r3, q3, p3, S3 and the number entering the fourth interval, then check the answers with the single-interval calculator, Calculator 8.2.

Answer. r3 = 150 − 10 / 2 = 145; q3 = 14 / 145 = 0.097; p3 = 0.903; S3 = 0.850 × 0.903 = 0.768; and 150 − 10 − 14 = 126 people enter the fourth interval.

Key Takeaways

  • 4.1 To remain event-free for 18 months, a participant has to get through the first interval, then the second given that they reached it event-free, and then the third, so the probability of the whole journey is the product of the conditional probabilities of surviving each interval. The strength of this approach lies in the denominators: each conditional probability uses only the people who started that interval event-free, so a participant censored in month 8 contributes fully to the first six-month interval, partly to the second and not at all afterwards, and nobody has to guess what happened to them later. In practice, always multiply the p values. A common error is to add the conditional probabilities of the event instead: in Worked Example 8.1 the three q values add to 0.311, whereas the correct three-year risk is 1 − 0.720 = 0.280. A quick check is that cumulative survival can only stay the same or fall from one interval to the next, as it does in Figure 8.3 (0.928, 0.862, 0.808 and 0.763).
  • 4.2 Each row of an actuarial life table follows one interval and turns three counts, the number entering (l), the withdrawals (w) and the events (d), into four derived quantities. The effective number at risk is r = l − w/2, because withdrawals are assumed to have been at risk for half of the interval on average; the conditional probability of the event is q = d/r; the conditional probability of surviving the interval is p = 1 − q; and the cumulative survival S is the running product of the p values. Before you calculate, label each number in the question with its symbol, and make sure the withdrawals include everyone censored during the interval for any reason, whether lost, withdrawn or moved away. Participants who complete the final interval event-free are censored administratively at the end of the study but are not withdrawals, which is why the 114 such participants in Worked Example 8.2 do not appear in w. For the first interval of the running case, r = 200 − 12/2 = 194, q = 14/194 = 0.072 and p = 0.928, and Calculator 8.2 lets you check a row like this one.
  • 4.3 A full table is built one row at a time, and each row depends on the one before it. The number entering the next interval is l − w − d from the current row (in Worked Example 8.1, 100 − 10 − 8 = 82 people enter the second year), and the new cumulative survival is the previous S multiplied by the new p (0.916 × 0.873 = 0.800). Once the table is complete, one minus the final cumulative survival is the estimated risk over the whole period, here 1 − 0.720 = 0.280 over three years. The most common slips are forgetting to subtract the withdrawals when moving to the next row and rounding too early, so carry at least three decimal places. As a final check, the life-table risk should lie between the two shortcuts from Section 1, as it does in the running case, where 0.237 lies between 0.21 and 0.27.
  • 4.4 Withdrawals leave part of the way through an interval, so they were at risk for some of it but not all of it, and the half-interval rule counts each one as half a person in the denominator. Counting them as fully at risk (r = l) treats them as if they had been observed event-free to the end of the interval, which inflates the denominator and understates the probability of the event; removing them entirely (r = l − w) throws away the time they did contribute and overstates it. For the first interval of the running case the three versions give 14/200 = 0.070, 14/188 = 0.074 and the actuarial value 14/194 = 0.072, which sits between the other two. If you are asked which analyst's figure is correct, or in which direction an alternative rule biases the estimate, work out all three denominators side by side. The gap between them grows when withdrawals are a large share of the people entering and when the intervals are wide.
  • 4.5 The actuarial method rests on three assumptions: censoring is non-informative, withdrawals occur on average at the midpoint of each interval, and survival at a given time since time zero does not depend on when a participant enrolled. When a scenario describes a problem, match it to the assumption it threatens and, where you can, state the direction of bias. If people who relapse are more likely to stop attending, censoring is informative and survival is overstated; if most withdrawals happen in the first week of each interval, the half-interval rule overstates their time at risk; and a change in services during recruitment threatens the assumption of stable survival across enrolment dates. Interval width is a trade-off: wide intervals give stable estimates but hide when events happen and make the midpoint assumption less accurate, while narrow intervals show timing in more detail but contain few events each, so their estimates are imprecise. Whatever width you choose, fix it in the protocol before the data are seen, usually at meaningful points such as six-month assessment waves.
Knowledge Check: this section

1. In a life table, the conditional probabilities of surviving three yearly intervals are 0.90, 0.80 and 0.90. A colleague estimates three-year survival as 1 − (0.10 + 0.20 + 0.10) = 0.60, by adding the conditional probabilities of the event. What is the correct estimate, and why?

Each conditional probability applies only to those who started that interval event-free, so survival is a product: 0.90 × 0.80 × 0.90 = 0.648. Each step keeps a fraction of those left after the step before.
Adding the q values treats the 0.20 and the second 0.10 as if they applied to everyone who started. Even with no withdrawals, of 100 people 10, 18 and 7.2 have the event, leaving 64.8, not 60.
An average of the conditional probabilities does not describe a sequence of intervals. To be event-free at three years a participant must survive all three in turn, so the probabilities multiply.
The lowest interval alone ignores losses in the other intervals. Surviving three years requires getting through all three, so survival is the product 0.648, below any single value.
Correct: 0.648. The information needed is that each conditional probability refers only to the people who entered that interval event-free. To be event-free at three years a participant must survive year 1, then year 2 given survival of year 1, then year 3 given survival of years 1 and 2, so S3 = 0.90 × 0.80 × 0.90 = 0.648. Adding the q values treats the 0.20 and the second 0.10 as if they applied to everyone who started, which is wrong even with no withdrawals: of 100 people, 10 have the event in year 1, 18 of the remaining 90 in year 2 and 7.2 of the remaining 72 in year 3, leaving 64.8. An average or the single lowest value does not describe a sequence of intervals. (Section 2, 4.1 Surviving One Interval at a Time and Figure 8.3; Objective 4.1)

2. A cancer registry builds an actuarial life table of survival after diagnosis in yearly intervals. In year 2, 140 people enter the interval, 20 are withdrawn (they moved away or reached the end of the study period) and 13 die. What are the effective number at risk (r) and the conditional probability of death (q) in year 2?

A denominator of 140 counts the withdrawals as fully at risk for the whole year, as if they were observed to its end, which understates the probability of death.
A denominator of 120 removes the withdrawals entirely, discarding the time they spent at risk before leaving, which overstates the probability of death.
The half-interval rule counts each withdrawal as half a person: r = 140 − 20/2 = 130, and q = 13/130 = 0.100.
107 is l − w − d, the number entering year 3, not the denominator for year 2. The effective number at risk subtracts half the withdrawals and none of the deaths.
Correct: r = 130 and q = 0.100. The information needed is the number entering (l = 140), the withdrawals (w = 20) and the deaths (d = 13). The effective number at risk counts each withdrawal as half a person, r = l − w/2 = 140 − 10 = 130, and the conditional probability of death is q = d/r = 13/130 = 0.100, so p = 0.900. Using 140 counts the withdrawals as fully at risk and using 120 removes them; 107 is l − w − d, the number entering year 3, not the denominator for year 2. (Section 2, 4.2 The Columns of an Actuarial Life Table, Table 8.2 and Equation 8.2; Objective 4.2)

3. A study follows 200 adults discharged after a hip fracture for time to a first readmission, in three-month intervals. In months 0 to 3, 20 are withdrawn and 19 are readmitted. In months 3 to 6, 2 are withdrawn and 16 are readmitted. What is the actuarial estimate of the probability of remaining free of readmission at 6 months?

0.825 is 1 − 35/200, the shortcut that treats withdrawals as event-free for the whole period. The life table uses each interval's effective number at risk and multiplies the survival probabilities.
0.800 adds the conditional probabilities of readmission (0.100 + 0.100) instead of multiplying the survival probabilities. The second 0.100 applies only to those who reached month 3 free of readmission.
0.820 starts the second interval with 181, forgetting to subtract the 20 withdrawals. The number entering is 200 − 20 − 19 = 161, which gives r = 160 and q = 0.100.
Interval 1: r = 190, q = 0.100, S = 0.900. Interval 2: 161 enter, r = 160, q = 0.100, so S = 0.900 × 0.900 = 0.810.
Correct: 0.810. The information needed is the number entering the first interval (200) and the withdrawals and readmissions in each interval. Interval 1: r1 = 200 − 20/2 = 190, q1 = 19/190 = 0.100, so S1 = 0.900. Interval 2 starts with l2 = 200 − 20 − 19 = 161, so r2 = 161 − 2/2 = 160, q2 = 16/160 = 0.100 and S2 = 0.900 × 0.900 = 0.810. Starting interval 2 with 181 (forgetting to subtract the withdrawals) gives 0.820, 1 − 35/200 = 0.825 is the first shortcut from Section 1, and 1 − (0.100 + 0.100) = 0.800 adds conditional probabilities instead of multiplying the survival probabilities. (Section 2, 4.3 Calculating a Life Table by Hand, Worked Example 8.1, Equation 8.3 and Calculator 8.3; Objective 4.3)

4. In the first interval of a life table, 300 participants enter, 40 withdraw and 28 have the event. To simplify the table, an analyst counts the 40 withdrawals as fully at risk for the whole interval. How does the analyst's conditional probability of the event compare with the actuarial value?

28/260 is what removing the withdrawals entirely would give, not counting them fully at risk. The analyst's rule puts all 300 in the denominator.
Counting withdrawals fully at risk gives 28/300 = 0.093, below the actuarial 28/280 = 0.100, because it treats them as observed event-free to the end of the interval, which they were not.
The actuarial value 28/280 uses the half-interval rule, not the analyst's rule. Counting the 40 withdrawals as fully at risk puts 300 in the denominator, which gives 0.093.
The value 0.093 is right, but it is less accurate, not more. Using everyone who entered credits the withdrawals with time they were not observed, which understates the probability of the event.
Correct: 28/300 = 0.093, lower than the actuarial value. The information needed is the number entering (300), the withdrawals (40) and the events (28). The actuarial method counts each withdrawal as half a person, so r = 300 − 40/2 = 280 and q = 28/280 = 0.100. Counting the withdrawals as fully at risk puts 300 in the denominator and understates the probability of the event, because the withdrawals were not watched to the end of the interval; removing them entirely (28/260 = 0.108) overstates it, because it discards the time they did spend at risk. The actuarial value lies between the two extremes. (Section 2, 4.4 Why Withdrawals Are Counted as Half a Person; Objective 4.4)

5. A clinic builds a life table in yearly intervals. Most withdrawals happen in the first weeks of each year, when patients' annual health-plan coverage lapses. Which statement about the actuarial estimate is correct?

The direction is reversed. Withdrawals early in each year were at risk for much less than half the interval, so the half-interval rule overstates their time at risk, and survival is too high. Wider intervals make this worse.
Leaving early in the year because coverage lapses concerns timing, not prognosis. By itself it says nothing about whether those who leave have a different future risk.
The half-interval rule assumes withdrawals leave, on average, at the midpoint. Leaving in the first weeks makes the denominator too large, the probability of the event too small and survival too high; narrower intervals help.
The half-interval rule rests on the assumption that withdrawals occur on average at the midpoint. When most leave early in each interval, that assumption is strained.
Correct: the midpoint assumption is strained, and survival is overstated. The information needed is when within each interval the withdrawals occur. The half-interval rule assumes that withdrawals leave, on average, at the middle of the interval; if they leave in the first weeks, they were at risk for much less than half a year, so counting each as half a person makes the denominator too large, the conditional probability of the event too small and cumulative survival too high. Narrower intervals shorten the time over which a withdrawal's timing is uncertain, at the cost of fewer events and less precision in each interval, which is why the widths are fixed in the protocol. Leaving early in the year concerns timing, not prognosis, so by itself it says nothing about informative censoring. (Section 2, 4.5 Assumptions and the Width of the Intervals, the assumptions accordion, Assumption 2 and The choice of interval width; Objective 4.5)

6. A public health unit follows 200 adults with prediabetes for three years after a lifestyle program. Withdrawals are participants who moved out of the province. In year 1, 200 enter, 20 withdraw and 19 are diagnosed with type 2 diabetes; in year 2, 22 withdraw and 12 are diagnosed; in year 3, 14 withdraw and 6 are diagnosed. Using the actuarial method, what are the cumulative probability of remaining diabetes-free and the estimated risk of diabetes over three years?

37 diagnoses among 200 treats the 56 movers as if none would have been diagnosed after they left, which understates the risk.
Adding the yearly conditional probabilities of diagnosis ignores that each applies only to those still diabetes-free at the start of the year. The survival probabilities must be multiplied.
37 among 144 drops the movers entirely, discarding their diabetes-free time while keeping every diagnosis, which tends to overstate the risk.
Year 1: r = 190, p = 0.900. Year 2: 161 enter, r = 150, p = 0.920. Year 3: 127 enter, r = 120, p = 0.950. The product is 0.787, a three-year risk of 0.213.
Correct: 0.787 and 0.213. The information needed is the number entering each year, the effective number at risk and the conditional probability of remaining diabetes-free. Year 1: r = 200 − 20/2 = 190, q = 19/190 = 0.100, p = 0.900. Year 2: l = 200 − 20 − 19 = 161, r = 161 − 11 = 150, q = 12/150 = 0.080, p = 0.920. Year 3: l = 161 − 22 − 12 = 127, r = 127 − 7 = 120, q = 6/120 = 0.050, p = 0.950. Cumulative survival is 0.900 × 0.920 × 0.950 = 0.787, so the three-year risk is 0.213. Dividing 37 by 200 treats the 56 movers as if none would have been diagnosed and understates the risk; dividing by 144 discards their diabetes-free time and tends to overstate it; adding the q values ignores that each applies only to those still diabetes-free at the start of the year. (Section 2, 4.3 Calculating a Life Table by Hand and Equation 8.3; Objectives 4.1 and 4.3)

✦ Pass the knowledge check with 100% to continue

Section 3

The Kaplan-Meier Estimator and Reading Survival Curves

⏱ Estimated reading time: 35 minutes

Section 3 of 4

The Kaplan-Meier Estimator and Reading Survival Curves

The product-limit estimate, step by step, and how to read the curve it produces.

The product-limit idea

Kaplan-Meier estimator

Estimated survival at time t
\[ \color{#0B7B6B}{\hat{S}(t)} = \prod_{t_j \le t} \frac{\color{#1D4ED8}{n_j} - \color{#C2410C}{d_j}}{\color{#1D4ED8}{n_j}} \]
Ŝ(t) estimated survivalnj at risk just before tjdj events at tj
Worked example

Ten participants, step by step

MonthAt riskEventsCensoredŜ(t)
210100.900
39010.900
58200.675
86010.675
105100.540
124010.540
153100.360
Conventions

Ties, censoring and the end of the curve

  • Tied events at the same time are handled together in one step.
  • When an event and a censoring share a time, the censored participant counts at risk at that time.
  • The estimate is defined only up to the longest follow-up time.
Reading the curve

Four things to read

Survival at a time

The curve is at 0.540 at 12 months, so the 12-month risk is 0.460.

Median survival

The curve first falls to 0.50 or below at month 15.

Censoring marks

Vertical ticks show censoring times and never move the curve.

Numbers at risk

Only 2 participants remain at risk from month 15, so the tail is imprecise.

Two groups

High versus low loneliness, ten participants each

Survival at 12 months

The estimate is 0.54 with high loneliness and 0.76 with low loneliness.

Median survival

The median is 15 months with high loneliness and is not reached with low loneliness.

Restricted mean to 24 months

Participants were event-free for 14.0 and 19.9 months on average.

Carry forward

From describing to comparing

  • The Kaplan-Meier curve drops only at event times and is read with its numbers at risk.
  • The median is the first time the curve reaches 0.50 or below.
  • Comparing two curves formally requires the log-rank test and the hazard ratio.

Overview

Section 2 built cumulative survival from fixed intervals chosen in advance. This section introduces the Kaplan-Meier estimator, which applies the same logic with each interval ending at an observed event time and which has become the standard way to describe survival in clinical and epidemiological research. The section explains how the estimator extends the life table and computes it by hand for the ten high-loneliness participants introduced in Section 1, using a calculator that shows each step. It then explains how to read a published Kaplan-Meier curve: the survival probability and risk at a chosen time, the median survival time, and the censoring marks and numbers at risk that show how much information supports each part of the curve. It closes with the assumptions of the estimator and what a report of a Kaplan-Meier analysis should include.

Learning Objectives for this section

  • 5.1 Explain how the Kaplan-Meier estimator extends the actuarial life table by ending each interval at an observed event time.
  • 5.2 Calculate a Kaplan-Meier estimate by hand, including tied event times and censoring between event times.
  • 5.3 Read the estimated survival probability and cumulative risk at a chosen time from a Kaplan-Meier curve.
  • 5.4 Find the median survival time on a Kaplan-Meier curve and explain what "not reached" means.
  • 5.5 Interpret censoring marks and the numbers-at-risk table, and explain why the right-hand end of a curve is the least precise part.
  • 5.6 Describe the assumptions of the Kaplan-Meier estimator and list what a report of a Kaplan-Meier analysis should include.

5.1 From the Life Table to the Product-Limit Estimator

Edward Kaplan and Paul Meier published the product-limit estimator in 1958 (Kaplan & Meier, 1958). The estimator applies the logic of the life table with one change. Instead of fixed intervals chosen in advance, each interval ends at an observed event time. By this we mean that the analyst does not decide where the intervals fall; the data decide, because a new interval begins every time someone has the event. At every event time the estimator computes the conditional probability of getting past that time among the participants still at risk, and it multiplies these conditional probabilities together, just as the life table multiplied the probabilities of surviving each interval. Because the intervals now end exactly at event times, there is no longer any doubt about whether a censored participant was present when an event occurred. Censored participants are counted as fully at risk at every event time before they leave and are absent after it, so the half-interval assumption of the actuarial method is no longer needed. Participant 5 in Table 8.1, censored at month 8, illustrates the difference: a six-month life table counts this participant as half a person in the interval from 6 to 12 months, whereas the Kaplan-Meier estimator counts them fully at the event times in months 2 and 5 and not at all from month 10 onward.

In symbols, order the distinct event times as t1 < t2 < t3 and so on. At each event time tj, let nj be the number of participants at risk just before that time, meaning those who have neither had the event nor been censored before tj, and let dj be the number who have the event at tj. The conditional probability of getting past tj is (nj − dj) / nj. The Kaplan-Meier estimate of survival at time t, written Ŝ(t), is the product of these conditional probabilities over every event time up to and including t. The hat on S marks a quantity estimated from data.

The definition turns into a short calculation that is repeated at each event time, and subsection 5.2 carries it out by hand.

5.2 Calculating a Kaplan-Meier Estimate by Hand

Each step of the calculation needs only the estimate at the previous event time, the number at risk and the number of events. Equation 8.4 writes one such step in symbols. Calculator 8.4 performs a single step, starting from the third event time in Worked Example 8.3 below: the estimate just before month 5 is 0.900, eight participants are at risk, and two screen positive.

One step of the Kaplan-Meier estimator
Ŝ(tj) = Ŝ(tj−1) × (nj − dj) / njEq 8.4
The estimated survival at an event time is the estimated survival at the previous event time multiplied by the number at risk just before this time minus the number of events at this time, divided by the number at risk.

Repeating this step at each event time in turn produces the whole estimate. Worked Example 8.3 applies it to the ten high-loneliness participants from Table 8.1. The rows of Table 8.3, inside the example, are the distinct follow-up times in order. A row with an event changes the estimate; a row with only censoring leaves the estimate unchanged and reduces the number at risk at the next event time.

Worked Example 8.3: Kaplan-Meier estimate for ten high-loneliness participants

Table 8.3. Kaplan-Meier estimate for the ten high-loneliness participants in Table 8.1, with one row for each distinct follow-up time.

MonthAt risk just before (n)Events (d)Censored(n − d) / nŜ(t)
210109/10 = 0.9000.900
3901no event0.900
58206/8 = 0.7500.900 × 0.750 = 0.675
8601no event0.675
105104/5 = 0.8000.675 × 0.800 = 0.540
12401no event0.540
153102/3 = 0.6670.540 × 0.667 = 0.360
24202no event0.360

The estimated probability of remaining free of a positive screen for 24 months is 0.360, so the estimated 24-month risk is 1 − 0.360 = 0.640, the value quoted in Section 1. Participant 2, censored at month 3, counts in the risk set at month 2 and is absent from month 5 onward. The two events at month 5 are tied and are handled in a single step with d = 2.

The example also illustrates three conventions that published analyses and software follow. Tied events at the same time are handled together in one step, as the two events at month 5 were. When an event and a censoring are recorded at the same time, the event is assumed to come first, so the censored participant is still counted at risk at that time. The estimate is defined only up to the longest follow-up time; beyond month 24 the data say nothing about these participants.

Equation 8.5 gathers the steps of Table 8.3 into a single expression: the estimate at time t is the product of the conditional probabilities at every event time up to and including t.

The step-by-step Calculator 8.5 takes up to ten participants, each with a follow-up time and a status (1 for an event, 0 for censored). It sorts the times, forms the risk set at each time, and shows the working for all time points at once or for one time point at a time, together with the curve drawn so far. Try changing participant 5 from censored to an event at month 8 and watch every later step change. Then change participant 2's time from 3 to 20 months while keeping the status at 0 and notice that a censored participant who stays longer raises the number at risk at every later event time.

Kaplan-Meier estimator
Ŝ(t) = ∏tj ≤ t (nj − dj) / njEq 8.5
The estimated survival at time t is the product, over every event time up to and including t, of the number at risk just before that time minus the number of events at that time, divided by the number at risk. The symbol ∏ means "multiply together".

Worked Example 8.3 gives the estimate as a sequence of numbers. Published analyses present it as a curve, and subsection 5.3 explains how to read one.

5.3 Reading Survival and Risk at a Chosen Time

A Kaplan-Meier curve plots the estimate against time as a step function. It starts at 1 at time zero, stays flat between event times, and drops at each event time by an amount that depends on the number of events and the number at risk. Figure 8.5 shows the curve for the ten participants in Table 8.3.

0.00 0.25 0.50 0.75 1.00 0 6 12 18 24 Months since time zero Probability event-free median = 15 months 0.900 0.675 0.540 0.360 Number at risk 10 6 4 2 2
Figure 8.5. Kaplan-Meier curve for the ten high-loneliness participants in Table 8.3. The curve drops only at event times; vertical ticks mark censoring times. The dashed red line reads the median from 0.50 on the vertical axis. The numbers at risk beneath the plot count participants still under observation and event-free at each time.

The basic reading is simple: go up from a time on the horizontal axis to the curve and across to the vertical axis, and the value is the estimated probability of remaining event-free at that time; one minus it is the estimated cumulative risk by that time. Four features of Figure 8.5 carry most of its information. Open each of the four tabs below to see how to read the survival at a chosen time, the median survival time, the censoring marks and the numbers at risk, each worked through on this curve.

Reading up from a time on the horizontal axis to the curve and across to the vertical axis gives the estimated probability of remaining event-free at that time. At 12 months the curve is at 0.540, so the estimated 12-month risk of a positive screen is 1 − 0.540 = 0.460. A small question arises when the chosen time is exactly an event time, because the curve has two heights there: the level before the drop and the level after it. The convention is that the curve is right-continuous, by which we mean that the value exactly at an event time is the value after the drop. For example, Ŝ(10) = 0.540 rather than 0.675, because the estimate at month 10 already includes the event that occurred in month 10, and it describes the probability of remaining event-free beyond month 10. Some reports plot the cumulative risk, 1 − Ŝ(t), which rises from 0 as the survival curve falls from 1; the two plots carry the same information.

The median survival time is the earliest time at which the estimated survival falls to 0.50 or below, so that half of the group is estimated to have had the event. Reading across from 0.50 on the vertical axis to the curve and down to the horizontal axis gives a median of 15 months in Figure 8.5, because the curve first falls to or below 0.50 at month 15. When the curve never falls to 0.50 during follow-up, the median is reported as not reached, which means that more than half of the group were still estimated to be event-free when the data ran out. The median is preferred to the mean as a summary of survival time because the mean cannot be computed without knowing the event times of participants who were censored at the end of follow-up. In Figure 8.5, for example, participants 9 and 10 were still event-free at 24 months, and their event times could be 25 months or 10 years; a mean would need a value for each of them. The median avoids this problem, because it depends only on the point at which half of the group has had the event, which the curve shows directly.

The small vertical ticks on the curve mark the times at which participants were censored. They do not change the estimate. A cluster of ticks early in follow-up indicates heavy early loss, which should prompt a question about whether censoring was informative. Many ticks at a single late time usually reflect administrative censoring at the end of the study.

The table beneath the plot gives the number of participants still at risk at regular times. It shows how much information supports each part of the curve. In Figure 8.5 only two participants remain at risk from month 15 onward, so the last part of the curve rests on very few people, and a single additional event would have dropped it from 0.360 to 0.180. Readers should treat the right-hand end of any curve with caution when the numbers at risk are small, and a curve published without a numbers-at-risk table is harder to interpret.

The first tab is the skill this subsection asks for: at 12 months the curve is at 0.540, so the estimated 12-month risk of a positive screen is 0.460, and the axis label should always be checked, because a cumulative risk plot rises where a survival plot falls. The second tab reads the curve in the other direction, from a probability to a time, which gives the median survival time developed in subsection 5.4.

5.4 The Median Survival Time

The median survival time is the earliest time at which the estimated survival falls to 0.50 or below, so that half of the group is estimated to have had the event; in Figure 8.5 it is 15 months, as the Median survival tab showed. Because the curve moves in steps, the median is the time of the step that takes it to 0.50 or below, with no interpolation between event times. When the curve never falls to 0.50 during follow-up, the median is reported as not reached.

A median that is not reached appears as soon as a second group is added. Figure 8.6 adds ten participants from the low-loneliness group to the ten from the high-loneliness group. In the low-loneliness group, participant 1 was censored at month 4, participants 2, 4 and 6 screened positive at months 6, 12 and 20, participants 3 and 5 were censored at months 9 and 18, and the remaining four completed 24 months without a positive screen.

0.00 0.25 0.50 0.75 1.00 0 6 12 18 24 Months since time zero Probability event-free Low loneliness (B) High loneliness (A) 0.610 0.360 Number at risk B 10 9 7 6 4 A 10 6 4 2 2
Figure 8.6. Kaplan-Meier curves for ten high-loneliness (A) and ten low-loneliness (B) participants in the hypothetical Campus Connection Follow-up, with censoring marks and numbers at risk. The median is 15 months in group A and is not reached in group B.

The curves can be compared at a fixed time, by their medians, or by the area beneath them. At 12 months the estimated probability of remaining event-free is 0.540 in the high-loneliness group and 0.762 in the low-loneliness group. The median is 15 months in the high-loneliness group and is not reached in the low-loneliness group, whose curve ends at 0.610, so fewer than half of that group are estimated to have screened positive by 24 months. The area under each curve up to 24 months is the restricted mean survival time, the average number of event-free months within the first 24 (Royston & Parmar, 2013). It is 14.0 months for the high-loneliness participants and 19.9 months for the low-loneliness participants, a difference of about 5.9 event-free months. Each of these comparisons describes the two samples. Whether the difference is larger than chance would produce with ten participants per group is the question for the log-rank test in Section 4.

Both curves in Figure 8.6 rest on only a few participants by the end of follow-up, and subsection 5.5 explains how the censoring marks and the numbers at risk show how far each part of a curve can be trusted.

5.5 Censoring Marks, Numbers at Risk and Precision

The last two tabs under Figure 8.5 cover the features that show how far a curve can be trusted. Censoring marks never move the curve, but their pattern matters: a cluster early in follow-up signals heavy early loss and raises the question of informative censoring, while many marks at one late time, as at month 24 in Figure 8.5, usually reflect administrative censoring. The numbers at risk show how many people support each part of the curve. As they fall, each event causes a larger drop; in Figure 8.5 only two participants remain at risk from month 15, so one more event would have halved the final estimate. The right-hand end of any curve is therefore its least precise part.

Uncertainty in the estimate is usually shown as a 95 percent confidence band around the curve, a shaded region or pair of lines that shows the range of survival values compatible with the data at each time. The standard error behind the band is computed with Greenwood's formula (Greenwood, 1926), which adds a contribution from each event time up to the time of interest. Each contribution grows as the number at risk at that event time shrinks, because a conditional probability estimated from a handful of people is much less certain than one estimated from hundreds. For example, a step based on 2 events among 8 people at risk is far less certain than a step based on 25 events among 100, even though both give a conditional probability of surviving of 0.75. The practical point for study design is that the band widens as the number at risk falls, so precision late in follow-up depends on retaining participants and on enrolling enough of them in the first place.

Precision is one limit on what a curve can show, and subsection 5.6 turns to the assumptions on which the estimate itself rests.

5.6 Assumptions and Reporting

The Kaplan-Meier estimator makes no assumption about the shape of the survival curve, which is why it is called non-parametric. It does make three assumptions about the data. Censoring must be non-informative, as discussed in Section 1. Participants who enrolled early and late must have the same survival prospects at the same time since time zero, as for the life table. Event times must be recorded precisely enough that the order of events and censorings is correct, which is why monthly ascertainment works well in the Campus Connection Follow-up and annual ascertainment would not.

Setting the estimator beside the two shortcuts from Section 1 shows where the first of these assumptions enters. Table 8.4 gives the three estimates of the probability of remaining event-free for 24 months among the ten high-loneliness participants, with the assumption that each approach makes about the three participants censored early.

Table 8.4. Estimated probability of remaining event-free for 24 months among the ten high-loneliness participants under the two shortcuts and the Kaplan-Meier estimator, with the assumption each approach makes about the three early-censored participants.

ApproachEstimated 24-month survivalWhat it assumes about the three early-censored participants
Treat censored participants as event-free5/10 event-free = 0.500None of them would ever have screened positive
Drop censored participants2/7 event-free = 0.286Their event-free months carry no information
Kaplan-Meier0.360After censoring, each had the same risk as those who remained

The Kaplan-Meier estimate lies between the two shortcuts, and it is the only one of the three whose assumption is stated in terms that a design can make plausible. Efron (1967) showed that the estimator can be computed by redistributing each censored participant's share of the probability equally among the participants who remain at risk after the censoring time. By this we mean the following. At the start, each of the ten participants carries one tenth of the probability. When participant 2 is censored at month 3, nobody knows what happened to them next, so their one tenth is not thrown away and is not counted as an event; instead it is shared out evenly among the eight participants still under observation, each of whom now carries a little more weight. Sharing it evenly is the same as saying that the censored participant's future would have looked like the future of a typical participant who stayed, which is a concrete way to see the non-informative censoring assumption at work.

Because the estimate depends on these assumptions and on the numbers at risk, a report must give readers what they need to check both. The elements below serve as a checklist for writing a report and for critiquing a published curve.

Reporting a Kaplan-Meier analysis

A report of a Kaplan-Meier analysis should state the time zero, the event definition and the censoring rules; give the number of participants and the number of events in each group; present the curve with censoring marks and a numbers-at-risk table; report survival at one or two prespecified times with 95 percent confidence intervals; and give the median survival time with its confidence interval when it is reached. Bland and Altman (1998) and Clark et al. (2003) give accessible accounts of the method and its presentation.

This section has computed the Kaplan-Meier estimate by hand, shown how to read and compare its curves, and stated its assumptions and the content of a report. The key takeaways and knowledge check that follow review the section. Section 4 then turns from describing survival in each group to formal comparisons between groups.

Key Takeaways

  • 5.1 The Kaplan-Meier estimator uses the same chain of conditional probabilities as the life table, but instead of fixed intervals chosen in advance, each interval ends at an observed event time. Two practical consequences follow: you no longer have to choose interval widths, and you no longer need the half-interval rule, because each censored participant is counted as fully at risk at every event time up to their censoring time and is simply absent afterwards. If a question asks how the two methods treat the same person, say participant 5, censored at month 8, the answer is that a six-month life table counts them as half a person in the 6 to 12 month interval, while Kaplan-Meier counts them fully at the event times in months 2 and 5 and not at all from month 10 onward. The life table remains the right tool when times are known only by interval, as in registries that record survival by year since diagnosis, whereas Kaplan-Meier makes fuller use of exact or near-exact times.
  • 5.2 To calculate a Kaplan-Meier estimate, list the distinct follow-up times in order and, at each event time, multiply the previous estimate by (n − d) / n, where n is the number still at risk just before that time and d is the number of events at that time. Censored participants never cause a drop; they simply reduce n at the next event time. Three conventions settle the cases students most often find tricky: tied events are handled together in one step with d equal to the number of tied events (6/8 at month 5 in Table 8.3), a participant censored at the same time as an event still counts as at risk at that time, and the estimate stops at the longest follow-up time. A reliable way to get n right is to count the participants whose follow-up time is equal to or later than the event time, which gives 8 at risk at month 5 and 5 at month 10 in Table 8.3. Check your answer by confirming that the estimate falls only at event times and never rises.
  • 5.3 To read a Kaplan-Meier curve at a chosen time, go up from that time on the horizontal axis to the curve and across to the vertical axis: the value is the estimated probability of remaining event-free at that time, and one minus it is the estimated cumulative risk by that time. In Figure 8.5 the curve is at 0.540 at 12 months, so the estimated 12-month risk of a positive screen is 1 − 0.540 = 0.460. Between event times the curve is flat, so a time that falls between two drops takes the value after the earlier drop, and at an event time itself the value is the one after the drop. Read the axis label before you answer, because some reports plot the cumulative risk, which rises from 0, rather than survival, which falls from 1. The two plots carry the same information, but confusing them turns a survival of 0.54 into a risk of 0.54.
  • 5.4 The median survival time is the earliest time at which the estimated survival falls to 0.50 or below, the point by which half of the group is estimated to have had the event. To find it, read across from 0.50 on the vertical axis until you meet the curve and then down to the time axis; in Figure 8.5 the curve first falls to or below 0.50 at month 15, so the median is 15 months. Because the curve moves in steps, the median is the time of the step that takes it to 0.50 or below, and you should not interpolate between event times. If the curve stays above 0.50 for the whole of follow-up, as the low-loneliness curve does (it ends at 0.610), the median is reported as not reached, which tells you that fewer than half of the group are estimated to have had the event by the end of follow-up. The median is preferred to the mean because the mean cannot be computed without the unknown event times of participants censored at the end of follow-up.
  • 5.5 The small vertical ticks on a Kaplan-Meier curve mark censoring times, and they never move the curve. Their pattern is still informative: a cluster of ticks early in follow-up signals heavy early loss and should make you ask whether censoring was informative, while many ticks at one late time usually reflect administrative censoring at the end of the study. The numbers-at-risk table beneath the plot tells you how many people support each part of the curve, and as those numbers fall, each event causes a larger drop and the confidence band widens. In Figure 8.5 only two participants remain at risk from month 15, so a single further event would have dropped the curve from 0.360 to 0.180. Whenever you interpret the right-hand end of a curve, check the numbers at risk first and say that the estimate there is imprecise when they are small, and treat a curve published without a numbers-at-risk table with extra caution.
  • 5.6 The Kaplan-Meier estimator makes no assumption about the shape of the survival curve, which is why it is called non-parametric, but it does assume three things about the data: censoring is non-informative, participants who enrolled early and late have the same survival prospects at the same time since time zero, and event times are recorded precisely enough that events and censorings are in the right order. When a scenario describes a change in treatment or services partway through enrolment, the assumption in doubt is stable survival across enrolment dates; when people drop out because they are getting worse, it is non-informative censoring. A complete report, as the reporting checklist in subsection 5.6 sets out, states time zero, the event definition and the censoring rules; gives the number of participants and events in each group; shows the curve with censoring marks and a numbers-at-risk table; and reports survival at one or two prespecified times and the median (when it is reached), each with a 95 percent confidence interval. Use that checklist when you critique a published curve or plan your own report.
Knowledge Check: this section

1. The same cohort is analyzed twice, once with an actuarial life table in six-month intervals and once with the Kaplan-Meier estimator. One participant is censored at month 8. How does each method use this participant?

Kaplan-Meier does not use the half-interval rule, and neither method counts a censored participant after they leave. The life table counts them as half a person only within the 6 to 12 month interval.
The life table counts a withdrawal as half a person, not fully at risk. And Kaplan-Meier keeps the participant in every risk set up to month 8 rather than removing them.
The life table assumes a withdrawal was at risk for half its six-month interval. Kaplan-Meier ends each interval at an event time, so the participant is fully at risk at every event time before month 8 and absent afterwards.
Neither method counts the participant after month 8, and censoring never drops a Kaplan-Meier curve. It only reduces the number at risk at the next event time.
Correct: half a person in the life table, and fully at risk until month 8 in Kaplan-Meier. The information needed is how each method defines its intervals. The life table groups follow-up into fixed six-month intervals, so a withdrawal during months 6 to 12 is assumed to have been at risk for half of that interval; Kaplan-Meier lets each interval end at an observed event time, so the participant is in the risk set at every event time up to month 8, is absent afterwards and never causes a drop. This is why Kaplan-Meier needs neither a choice of intervals nor the half-interval rule. (Section 3, 5.1 From the Life Table to the Product-Limit Estimator; Section 2, 4.5 Assumptions and the Width of the Intervals; Objective 5.1)

2. Twelve adults starting treatment for latent tuberculosis infection are followed for up to 12 months for time to stopping treatment early. The table gives the number who stopped (events) and the number censored at each follow-up time. What is the Kaplan-Meier estimate of the probability of still being on treatment after month 7?

MonthEventsCensored
210
301
420
602
710
1010
1204
Month 2: 11/12 = 0.917. Month 4: 10 at risk, 2 tied events, 0.917 × 8/10 = 0.733. Month 7: 6 at risk, 1 event, 0.733 × 5/6 = 0.611.
0.667 keeps the censored participants in the risk set, the same as 1 − 4/12. Each censored participant leaves the risk set after their censoring time, so 10 are at risk at month 4 and 6 at month 7.
5/9 = 0.556 drops the censored participants from the start, discarding the time they were observed. Kaplan-Meier counts them fully at risk at every event time before they leave.
0.733 is the estimate before the month 7 event. The question asks for survival after month 7, which multiplies 0.733 by 5/6.
Correct: 0.611. The information needed is the number at risk just before each event time, which falls with every earlier event and censoring. Month 2: 12 at risk and 1 event, Ŝ = 11/12 = 0.917; the participant censored at month 3 then leaves. Month 4: 10 at risk and 2 tied events handled in one step, Ŝ = (11/12) × (8/10) = 0.733; the two censored at month 6 then leave. Month 7: 6 at risk and 1 event, Ŝ = 0.733 × 5/6 = 0.611. Keeping the censored participants in the risk set gives 0.667 (the same as 1 − 4/12), dropping them from the start gives 5/9 = 0.556, and 0.733 is the estimate before the month 7 event. (Section 3, 5.2 Calculating a Kaplan-Meier Estimate by Hand, Worked Example 8.3, Equation 8.5 and Calculator 8.5; Objective 5.2)

3. A Kaplan-Meier curve for time to a first relapse is at 1.00 until month 2, steps down to 0.92 at month 2 and to 0.84 at month 5, stays at 0.84 until month 9, and then steps down to 0.77. What are the estimated probability of remaining relapse-free and the estimated cumulative risk of relapse at month 8?

0.77 applies only from month 9, when the next step occurs. At month 8 the curve is still flat at the value reached at month 5.
A Kaplan-Meier curve stays flat between event times, so at month 8 it is still at 0.84, and the estimated cumulative risk is 1 − 0.84 = 0.16.
This swaps the two quantities. The curve's height, 0.84, is the probability of remaining relapse-free, and one minus it, 0.16, is the cumulative risk.
A Kaplan-Meier curve is a step function and is not read by joining steps with a line. Between event times it stays at the value after the earlier drop, 0.84.
Correct: survival 0.84 and risk 0.16. The information needed is the height of the curve at month 8. A Kaplan-Meier curve is a step function that stays flat between event times, so at month 8 it is still at the value reached at month 5, 0.84, and the estimated cumulative risk by month 8 is 1 − 0.84 = 0.16. The value 0.77 applies only from month 9, the curve is not read by joining the steps with a line, and swapping the two numbers confuses survival with risk. (Section 3, 5.3 Reading Survival and Risk at a Chosen Time and the Survival at a time tab; Objective 5.3)

4. A report gives Kaplan-Meier estimates for two groups followed for 24 months. Group A is at 0.85 after month 3, 0.71 after month 6, 0.55 after month 9, 0.48 after month 12 and 0.40 after month 15, with no later events. Group B falls gradually to 0.58 by month 20 and stays there to month 24. What are the median survival times?

Group A is still at 0.55 after month 9, above 0.50, so 9 months is not its median. Group B never falls to 0.50, so its median is not reached rather than 24 months.
The median is read at the step that first takes the curve to 0.50 or below, with no interpolation between event times. Group A first falls below 0.50 at month 12.
Group A's median of 12 months is right, but group B's is not 24 months. A curve that stays above 0.50 to the end of follow-up has a median reported as not reached.
Group A first falls to 0.50 or below at month 12 (0.48). Group B stays at 0.58, so more than half remain event-free at the end and its median is not reached.
Correct: 12 months in group A and not reached in group B. The information needed is the first time each curve falls to 0.50 or below. Group A is still above 0.50 after month 9 (0.55) and first falls below it at month 12 (0.48), so its median is 12 months; the median is read at that step, not interpolated between event times. Group B never falls to 0.50, so its median is not reached, which means that more than half of the group was estimated to be event-free at the end of follow-up; it is not equal to 24 months. (Section 3, 5.4 The Median Survival Time and the Median survival tab in 5.3; Objective 5.4)

5. A Kaplan-Meier curve for 120 participants is at 0.36 at month 30 and drops to 0.30 at month 33, when 6 participants are at risk; it stays at 0.30 to the end of follow-up at month 36. The numbers at risk beneath the plot are 120 at month 0, 84 at month 12, 41 at month 24 and 6 at month 30. A colleague concludes that the risk of the event rises sharply late in follow-up. What is the best response?

Precision depends on the number still at risk, not the number enrolled. Only 6 remain at month 30, so the late drop rests on a single event.
With 6 at risk, one event multiplies the estimate by 5/6, from 0.36 to 0.30. The tail rests on very few people and has a wide confidence interval, so it should not be over-read.
Ticks at the last follow-up time usually reflect administrative censoring at the end of the study, and censoring marks never move the curve. They do not show that censoring was informative.
The estimate is defined only up to the longest follow-up time, month 36. Extending the curve would require data the study does not have; the issue is the few people at risk.
Correct: one event among six people explains the drop, so the tail is imprecise. The information needed is the number at risk at the time of the drop. With 6 participants at risk, a single event multiplies the estimate by 5/6, which takes it from 0.36 to 0.30, so the late step rests on one event and has a very wide confidence interval. The precision of each part of a curve depends on the number still at risk, not the number enrolled; ticks at the last follow-up time usually reflect administrative censoring, and the estimate is defined only up to the longest follow-up. (Section 3, 5.5 Censoring Marks, Numbers at Risk and Precision and the Numbers at risk and Censoring marks tabs in 5.3; Objective 5.5)

6. A cohort of adults starting dialysis was enrolled from 2016 to 2023 and followed for time to a first bloodstream infection. In 2020 the dialysis units adopted a new catheter-care protocol that lowered the risk of infection. Participants enrolled in 2016 provide almost all of the follow-up beyond four years, much of it under the old protocol, while those enrolled after 2020 were under the new protocol from the start. Which assumption of the Kaplan-Meier estimate is most in doubt?

Kaplan-Meier makes no assumption about proportional hazards, which concerns comparisons of hazards, not the estimate of one survival curve.
Kaplan-Meier is non-parametric: it assumes no shape for the survival curve, such as a constant hazard.
The late curve comes almost entirely from early enrolees under the old protocol, while the early curve mixes both protocols. Survival at a given time since time zero then depends on enrolment date.
Handling ties together in one step is a computing convention, not an assumption that could be violated by a change in care during enrolment.
Correct: survival must not depend on the date of enrolment. The information needed is that early and late enrolees had different care at the same time since time zero. The late part of the curve comes almost entirely from early enrolees, while the early part mixes people under both protocols, so the estimate combines two levels of risk and may describe neither period well. The Kaplan-Meier estimator makes no assumption about the shape of the curve (it is non-parametric) or about proportional hazards, and handling ties in one step is a computing convention. Its other assumptions are non-informative censoring and accurately ordered times, and a report should give the curve with censoring marks and numbers at risk, survival at prespecified times and the median, each with a confidence interval. (Section 3, 5.6 Assumptions and Reporting and the reporting checklist; Objective 5.6)

7. A quit-smoking clinic follows 10 clients for up to 12 months after their quit date. The follow-up times in months, with the status in parentheses (1 = relapse to daily smoking, 0 = censored), are: 2 (1), 3 (1), 3 (1), 4 (0), 6 (1), 8 (0), 9 (1), 12 (0), 12 (0) and 12 (0). What are the Kaplan-Meier estimate of the probability of remaining smoke-free at 7 months and the median time to relapse?

0.700 is the estimate after the month 3 relapses, before the drop at month 6. At month 7 the curve has already fallen to 0.700 × 5/6 = 0.583.
0.583 at 7 months is right, but 0.583 is still above 0.50. The median is the first time the estimate falls to 0.50 or below, which happens at month 9 (0.438).
The estimate is 0.900 after month 2, 0.700 after month 3 and 0.583 after month 6, and stays flat to month 7. It first falls below 0.50 at month 9 (0.438), so the median is 9 months.
5/10 ignores the censored clients. The Kaplan-Meier estimate at 7 months is 0.583, and the curve falls below 0.50 at month 9, so the median is reached.
Correct: 0.583 at 7 months and a median of 9 months. The information needed is the risk set at each relapse time. Month 2: 9/10 = 0.900. Month 3: two tied relapses among 9 at risk, 7/9, so the estimate is 0.700. The client censored at month 4 leaves the risk set, so 6 are at risk at month 6: 5/6 gives 0.583. The client censored at month 8 leaves, so 4 are at risk at month 9: 3/4 gives 0.438. The curve is flat between months 6 and 9, so the value at 7 months is 0.583, not the 0.700 that applied before the drop at month 6. The median is the earliest time at which the estimate falls to 0.50 or below: 0.583 after month 6 is still above 0.50, and 0.438 after month 9 is the first value below it, so the median is 9 months. A crude 5/10 ignores the censored clients. (Section 3, 5.2 Calculating a Kaplan-Meier Estimate by Hand, 5.3 Reading Survival and Risk at a Chosen Time and 5.4 The Median Survival Time; Objectives 5.2, 5.3 and 5.4)

8. For the same ten clients, a colleague says, "About 44 percent of clients stay smoke-free for a year, and the end of the curve is as reliable as the beginning." Which response is correct?

The estimate stays at 0.438 to month 12, so about 44 percent remain smoke-free. With only 4 at risk at month 9 and 3 after it, each relapse causes a large drop, so the tail is far less reliable.
Using every client's follow-up does not make each part equally precise. Precision depends on the number at risk, which falls from 10 to 3, so late steps are much less certain.
5/10 treats the two clients censored early as smoke-free for the whole year. The Kaplan-Meier estimate of 0.438 uses their follow-up only until they left, and the end of the curve is not as reliable as the start.
Censoring marks never move the curve; they only shrink the risk set. The end is less reliable because so few clients remain at risk, not because the month-12 censorings pull it down.
Correct: the 44 percent is right, but the end of the curve is much less reliable than the beginning. The information needed is the estimate at 12 months and the numbers at risk. The Kaplan-Meier estimate stays at 0.438 to month 12, so about 44 percent of clients are estimated to remain smoke-free for a year; 5/10 = 0.50 would wrongly treat the two clients censored early as smoke-free for the whole year. Ten clients support the estimate at month 2, but only 4 are at risk at month 9 and 3 after it, so the relapse at month 9 lowered the estimate by a quarter whereas the relapse at month 2 lowered it by a tenth, and one more relapse among the last three would have dropped it to 0.438 × 2/3 = 0.292. Censoring marks never move the curve; they only shrink the risk set. (Section 3, 5.5 Censoring Marks, Numbers at Risk and Precision; Objective 5.5)

✦ Pass the knowledge check with 100% to continue

Section 4

Comparing Groups: The Log-Rank Test and the Hazard Ratio

⏱ Estimated reading time: 40 minutes

Section 4 of 4

Comparing Groups: The Log-Rank Test and the Hazard Ratio

Observed and expected events, hazards as rates, proportional hazards and the protocol.

The log-rank test

Observed versus expected events

Expected events in group A
\[ \color{#0B7B6B}{E_A} = \sum_j \color{#C2410C}{d_j} \times \frac{\color{#1D4ED8}{n_{Aj}}}{n_j} \qquad O_A = 5,\; E_A = 3.24,\; \chi^2_1 = 1.67,\; p = 0.20 \]

Eight events give the test little power to detect even a large difference.

The hazard

An event rate among those still at risk

MonthsEventsPerson-monthsPer 100 person-months
0 to 6141,1221.25
6 to 12129781.23
12 to 1898431.07
18 to 2477290.96
The hazard ratio

A ratio of rates

Hazard ratio under constant hazards
\[ \color{#0B7B6B}{HR} = \frac{\color{#C2410C}{42/3672}}{\color{#1D4ED8}{40/8800}} = 2.52 \qquad 95\%\ \text{CI } 1.63 \text{ to } 3.88 \]

The Cox model (Cox, 1972) estimates adjusted hazard ratios and assumes only that the ratio of the hazards is constant.

Proportional hazards

The ratio stays the same over time

Plausible

The curves separate steadily and do not cross.

Doubtful

The curves cross, or separate early and then converge.

Survival at fixed times and restricted mean survival time do not depend on the assumption.

Hazard ratio and risk ratio

Translating a hazard ratio into risks

Survival under proportional hazards
\[ \color{#0B7B6B}{S_1(t)} = \color{#1D4ED8}{S_0(t)}^{\color{#C2410C}{HR}} \qquad 0.90^{2.5} = 0.768 \;\Rightarrow\; RR = \frac{0.232}{0.100} = 2.32 \]

With a common event, 0.502.5 = 0.177 and the risk ratio is 1.65.

The protocol

What a time-to-event protocol must specify

  • The protocol states time zero, eligibility, exposure, the event and its ascertainment.
  • It sets out follow-up, censoring rules and the plan for informative censoring.
  • It describes the estimators, the test, the effect measure and the proportional hazards check.
  • It sizes the study in events first: 103 events, or 687 participants if 15% have the event.
Next steps

Knowledge check and final assessment

  • The knowledge check covers the log-rank test, the hazard ratio and proportional hazards.
  • The final assessment brings the four sections together in seventeen questions.

Overview

Sections 2 and 3 described survival in one group at a time, but most time-to-event studies compare groups: participants with and without an exposure, or participants randomized to an intervention or to control. This section introduces the tools for that comparison and closes the lesson with the content of a protocol. The log-rank test asks whether two survival curves differ by more than chance would produce. The hazard ratio, built on the hazard, measures how much faster events occur in one group than in the other and is the time-to-event counterpart of the incidence rate ratio from Lesson 6. Most hazard ratio analyses assume proportional hazards, and even when that assumption holds a hazard ratio differs from a risk ratio when the event is common. The section ends by gathering the decisions that a protocol with a time-to-event outcome must state before data collection begins, including the number of events needed for adequate power.

Learning Objectives for this section

  • 6.1 Explain the logic of the log-rank test as a comparison of observed and expected events at each event time.
  • 6.2 Define the hazard as the event rate among participants still at risk and estimate it from life-table intervals.
  • 6.3 Calculate a hazard ratio as a ratio of incidence rates with its 95 percent confidence interval, and interpret it in words.
  • 6.4 Explain the proportional hazards assumption in plain language, identify patterns that suggest it does not hold, and name alternatives to a single hazard ratio.
  • 6.5 Explain why a hazard ratio differs from a risk ratio when the event is common.
  • 7.1 List what a protocol with a time-to-event outcome must specify, including the number of events needed for adequate power.

6.1 The Log-Rank Test

Figure 8.6 in Section 3 showed that the high-loneliness participants had a lower Kaplan-Meier curve than the low-loneliness participants. The log-rank test asks whether a difference of that size could plausibly arise if the two groups had the same survival at every time.

6.1.1 Observed and Expected Events

The logic of the test builds on the risk set. At each event time, the participants at risk in both groups are pooled, and the events at that time are shared out between the groups in proportion to their numbers at risk. The reasoning is that, if the null hypothesis is true and group membership makes no difference to the risk, then an event is equally likely to happen to any participant who is still at risk, whichever group they belong to. For example, a group that makes up 40 percent of the pooled risk set should, on average, account for 40 percent of the events at that time, much as a team that holds 40 percent of the tickets in a fair draw should expect to win about 40 percent of the prizes. The expected number of events in group A at event time j is therefore the total number of events at that time multiplied by group A's share of the risk set. Doing this at every event time, rather than once for the whole study, matters because the share of each group in the risk set changes as follow-up goes on: a group that has more events early will make up a smaller share of the people left later, and its expected count shrinks accordingly. Equation 8.6 adds these expected numbers over the event times and gives the test statistic that compares them with the observed number of events in group A.

Expected events in group A under the null hypothesis
EA = ∑j dj × nAj / nj     χ² = (OA − EA)² / VEq 8.6
The expected number of events in group A adds up, over every event time, the total events at that time multiplied by the number at risk in group A divided by the total number at risk. The test statistic compares the observed events in group A with this expected number, scaled by its variance V, and is referred to a chi-squared distribution with one degree of freedom.

Worked Example 8.4 applies this logic to the twenty participants in Figure 8.6, with the high-loneliness group as group A; its Table 8.5 lists the risk sets and events at each event time. At month 12, one low-loneliness participant screened positive and high-loneliness participant 7 was censored; following the convention from Section 3, participant 7 is counted in the risk set at month 12.

Worked Example 8.4: Observed and expected events at each event time

Table 8.5. Observed and expected events in the high-loneliness group (A) at each event time, for the twenty participants in Figure 8.6.

MonthAt risk, AEvents, AAt risk, BEvents, BTotal eventsExpected in A
210110011 × 10/20 = 0.500
5829022 × 8/17 = 0.941
6609111 × 6/15 = 0.400
10517011 × 5/12 = 0.417
12407111 × 4/11 = 0.364
15316011 × 3/9 = 0.333
20205111 × 2/7 = 0.286
TotalOA = 5OB = 38EA = 3.24

The high-loneliness group had 5 events where 3.24 were expected under the null hypothesis, and the low-loneliness group had 3 where 8 − 3.24 = 4.76 were expected. The variance of OA − EA, summed over the event times, is 1.86, so the log-rank statistic is (5 − 3.24)² / 1.86 = 1.67 with one degree of freedom, giving p = 0.20. A simpler approximation that is often taught, (OA − EA)² / EA + (OB − EB)² / EB, gives 1.61 and p = 0.21.

Calculator 8.6 performs the observed-and-expected arithmetic for up to eight event times. It opens with Table 8.5. Moving one event from group A to group B at the same time shows how sensitive a comparison with few events is.

6.1.2 Interpreting the Test

The curves in Figure 8.6 look quite different, yet the test in Worked Example 8.4 does not reject the null hypothesis. With ten participants per group and eight events in total, a large difference in survival is compatible with chance. This is a property of the design and says nothing in favour of equal survival. By this we mean that the study was simply too small to tell the two explanations apart: the data are compatible with a real difference and also with no difference, so a non-significant result here is an absence of evidence rather than evidence that the groups are the same. The information in a time-to-event comparison comes from the events, and eight events provide very little of it; subsection 7.1.2 shows how to plan for enough events. The ratio of observed to expected events also gives a rough estimate of the hazard ratio: (5 ÷ 3.24) ÷ (3 ÷ 4.76) = 2.45.

The test is usually attributed to Mantel (1966) and to Peto and Peto (1972), and Bland and Altman (2004) give a short account for applied readers. Three of its properties matter for interpretation. It gives every event time the same weight, so late differences, where few participants remain at risk, count as much as early ones. It is most powerful when one group has a consistently higher hazard throughout follow-up, the situation described by the proportional hazards assumption in subsection 6.4, and it can miss a real difference when curves cross. The reason is that the test adds up the differences between observed and expected events across all event times. If group A has more events than expected early in follow-up and fewer than expected later, the positive and negative differences partly cancel in the sum, and the total can be close to zero even though the groups clearly differed at each stage. It extends directly to more than two groups and to comparisons within strata of a confounder, the stratified log-rank test, in the same way that the Mantel-Haenszel approach in Lesson 7 extends a single two-by-two table.

The log-rank test addresses whether two curves differ by more than chance would produce. A measure of how much faster events occur in one group needs the hazard, which subsection 6.2 defines.

6.2 The Hazard: An Event Rate Among Those Still at Risk

The hazard at time t is the rate at which events occur among participants who are still event-free at t, expressed per unit of time. It is the incidence rate from Lesson 4 computed over a very short interval around t. By this we mean that the hazard looks only at the people who have made it to time t without the event and asks how quickly events are happening among them right now. It is a measure of the current pace of events, much as a car's fuel consumption display shows how fast fuel is being used at the present moment. The survival probability is more like the fuel gauge: it reflects everything that has happened so far, so it can only stay level or fall as time passes. The hazard, in contrast, can rise, fall or stay constant, because the pace of events at one moment does not have to match the pace at another. The hazard of death after major surgery is highest in the days after the operation and then falls; the hazard of death from most chronic diseases rises with age; and the hazard of a sudden accidental event may be roughly constant.

The life table from Section 2 gives an estimate of the hazard within each interval. Dividing the events in an interval by the person-time at risk in that interval gives the average hazard over the interval. With the half-interval assumption applied to both withdrawals and events, the person-time in an interval of width h is approximately h × (rj − dj / 2). The reasoning follows the same logic as the effective number at risk. A participant who has the event stops contributing person-time at that moment, because they are no longer at risk of a first event, and on average this happens halfway through the interval. The effective number at risk, rj, has already removed half of each withdrawal, so subtracting half of each event as well leaves the average number of people under observation and at risk across the interval. Multiplying that average by the width of the interval gives the person-time. Unlike the conditional probability qj, which covers the whole interval and has no unit, the hazard is a rate and is always stated per unit of time. Table 8.6 applies this approximation to the four six-month intervals of the high-loneliness life table in Worked Example 8.2.

Table 8.6. Estimated hazard of a first positive screen in each six-month interval for the 200 high-loneliness participants in the hypothetical Campus Connection Follow-up.

MonthsEventsPerson-months at riskHazard per person-monthPer 100 person-months
0 to 6146 × (194 − 7) = 1,1220.01251.25
6 to 12126 × (169 − 6) = 9780.01231.23
12 to 1896 × (145 − 4.5) = 8430.01071.07
18 to 2476 × (125 − 3.5) = 7290.00960.96
0 to 24423,6720.01141.14

In this hypothetical cohort the hazard of a first positive screen declined slowly over follow-up, from about 1.25 to about 0.96 per 100 person-months. The overall rate in the last row, 42 events over 3,672 person-months, is the average of the interval hazards weighted by person-time.

The overall hazard of 1.14 per 100 person-months summarizes the high-loneliness group, and subsection 6.3 compares it with the hazard in the low-loneliness group.

6.3 The Hazard Ratio as a Ratio of Rates

The hazard ratio compares the hazard in one group with the hazard in another at the same time since time zero. By this we mean that it divides the current pace of events among exposed participants who are still event-free by the current pace among unexposed participants who are still event-free. A hazard ratio of 2, for example, means that at a given point in follow-up, exposed participants who have not yet had the event are having it at twice the rate of comparable unexposed participants. If both hazards are constant over follow-up, the hazard ratio equals the incidence rate ratio from Lesson 6, because a constant hazard is simply an incidence rate that does not change over time. It can then be computed from the events and person-time in each group. Equation 8.7 gives the hazard ratio under constant hazards with its confidence interval.

Hazard ratio under constant hazards
HR = (a1 / T1) / (a0 / T0)    95% CI = exp[ln(HR) ± 1.96 × √(1/a1 + 1/a0)]Eq 8.7
The hazard ratio is the event rate in the exposed group (events divided by person-time) divided by the event rate in the unexposed group. Its confidence interval is computed on the log scale, with a standard error that depends only on the number of events in the exposed group and the number of events in the unexposed group.

The 400 low-loneliness participants in the Campus Connection Follow-up had 40 first positive screens over 8,800 person-months, a rate of 0.45 per 100 person-months, compared with 1.14 per 100 person-months in the high-loneliness group. The hazard ratio is (42 ÷ 3,672) ÷ (40 ÷ 8,800) = 2.52, with a 95 percent confidence interval from 1.63 to 3.88. In words, at any point during the 24 months, participants with high loneliness who had not yet screened positive did so at about two and a half times the rate of participants with low loneliness. The standard error depends only on the numbers of events, 42 and 40, which is another way of seeing that events carry the information in a time-to-event comparison. Calculator 8.7 computes the hazard ratio and its confidence interval from the events and person-time in each group, with a preset for the Campus Connection cohort.

In practice, hazard ratios are usually estimated with the Cox proportional hazards model (Cox, 1972). The Cox model does not assume that the hazards are constant. It allows the baseline hazard, which is the hazard in the reference or unexposed group, to take any shape over time, rising, falling or rising and then falling, and it assumes only that the ratio of the hazards stays the same. For example, the hazard of a first positive screen might be highest in the first months of follow-up and lower afterwards in both loneliness groups; the Cox model does not need to describe that shape, provided that the high-loneliness hazard remains the same multiple of the low-loneliness hazard throughout. Like logistic regression for the odds ratio, it can adjust a hazard ratio for confounders, and it is the time-to-event analogue of the regression adjustment described in Lesson 7. HSCI 341 interprets the hazard ratio from a Cox model without fitting one. For protocol writing, the point is that a hazard ratio from a Cox model has the same interpretation as the rate ratio above, provided its central assumption holds.

A single hazard ratio, whether computed from rates or from a Cox model, is a complete summary only if the ratio of the hazards stays the same over follow-up, and subsection 6.4 examines that assumption.

6.4 Proportional Hazards in Plain Language

The proportional hazards assumption states that the ratio of the hazards in the two groups is the same at every time during follow-up. Each hazard may rise or fall, but they rise and fall together. If participants with high loneliness screen positive at two and a half times the rate of participants with low loneliness in month 2, the assumption says they also do so at two and a half times the rate in month 20. A single hazard ratio is then a complete summary of how the groups differ over time.

The assumption fails when the effect of the exposure changes over follow-up. A surgical treatment compared with medical management may carry a higher hazard of death in the weeks after the operation and a lower hazard afterwards, so the hazard ratio is above 1 early and below 1 later, and a single hazard ratio averages these into a number that describes neither period. Figure 8.7 shows schematic hazards and survival curves for a situation in which the assumption holds and for one, like the surgical example, in which it fails.

Proportional hazards 0.00 0.05 0.10 0 12 24 Hazard 0.0 0.5 1.0 0 12 24 Months Survival Hazards not proportional 0.00 0.05 0.10 0 12 24 Hazard 0.0 0.5 1.0 0 12 24 Months Survival Unexposed Exposed
Figure 8.7. Schematic hazards (top) and survival curves (bottom). On the left, the exposed hazard is 2.5 times the unexposed hazard at every time, although both fall, and the survival curves separate steadily. On the right, the exposed hazard is higher early and lower later, the hazard ratio changes over time, and the survival curves cross.

The hazards themselves cannot be seen on a Kaplan-Meier plot, so the shape of the survival curves is the first check. When the hazards are proportional, the group with the higher hazard loses event-free participants faster at every point in follow-up, so its curve stays below the other curve throughout follow-up and the two curves do not cross. Kaplan-Meier curves that cross, or that separate early and then converge, therefore suggest that the hazards are not proportional, because they show that the group with the faster pace of events early on is no longer the group with the faster pace later. More formal checks compare the log of the cumulative hazard in each group over time or test whether the hazard ratio drifts with time.

When the hazards are not proportional, the protocol can provide alternatives. The analyst can report separate hazard ratios for prespecified periods, such as the first six months and the remainder of follow-up; report the difference in survival at prespecified times; or report the difference in restricted mean survival time, which Royston and Parmar (2013) recommend as a summary that does not depend on proportional hazards. Hernán (2010) adds a further caution. Period-specific hazard ratios compare the participants who remain at risk at each time, and in later periods those participants are a selected group, because the most susceptible members of the higher-risk group have already had the event. Survival curves and risks at fixed times are less vulnerable to this problem, and he concludes that survival curves are more informative than hazard ratios and should be used more widely in observational studies.

Even when the hazards are proportional, a hazard ratio is not a ratio of risks, and subsection 6.5 shows how far the two can differ.

6.5 Why a Hazard Ratio Is Not a Risk Ratio

The hazard ratio and the risk ratio answer different questions. The hazard ratio compares the pace of events among people still at risk at each moment, whereas the risk ratio compares the proportions of each group who have had the event by a fixed time. The two are linked through the survival curves. Under proportional hazards, the survival curve of the exposed group is the survival curve of the unexposed group raised to the power of the hazard ratio. By this we mean that, if the unexposed group's probability of remaining event-free at some time is a number between 0 and 1, the exposed group's probability at the same time is found by raising that number to the power of the hazard ratio. With a hazard ratio of 2, for example, an unexposed survival of 0.90 becomes 0.90 × 0.90 = 0.81 in the exposed group. Because raising a number between 0 and 1 to a power greater than 1 makes it smaller, a hazard ratio above 1 always gives the exposed group a lower survival curve. Equation 8.8 states this relationship.

Survival under proportional hazards
S1(t) = S0(t)HREq 8.8
Under proportional hazards, the probability of remaining event-free in the exposed group at time t equals the probability of remaining event-free in the unexposed group at the same time raised to the power of the hazard ratio.

The relationship shows how far the hazard ratio can differ from the risk ratio at a fixed time. If 90 percent of low-loneliness participants remain event-free at 24 months and the hazard ratio is 2.5, then 0.902.5 = 0.768 of high-loneliness participants remain event-free. The 24-month risks are 0.100 and 0.232, a risk ratio of 2.32. If the event were common, with only half of the unexposed group event-free at 24 months, the same hazard ratio of 2.5 would give risks of 0.500 and 0.823, a risk ratio of 1.65. The reason is that a risk cannot exceed 1: when the event is common, the exposed group's risk has little room to rise above the unexposed group's risk, so the risk ratio is pulled toward 1 even though the hazard ratio, which compares rates among those still at risk, is unchanged. The hazard ratio and the risk ratio are close when the event is rare and diverge as it becomes common, in the same way that the odds ratio and the risk ratio diverged in Lesson 6.

Calculator 8.8 applies Equation 8.8 to translate a hazard ratio into the probability of remaining event-free, the cumulative risk, the risk ratio and the risk difference at a chosen time, and its presets include the uncommon and common events described above.

The check of the proportional hazards assumption, the summary to report if it fails and the choice of effect measure are decisions for the analysis plan, and subsection 7.1 gathers them, with the other decisions in this lesson, into the content of a protocol.

7.1 What a Protocol With a Time-to-Event Outcome Must Specify

The decisions in this lesson must be written into the protocol before data collection begins. Most of them cannot be corrected later, and stating them in advance prevents analytic choices from being shaped by the results. A protocol specifies two kinds of content: the definitions and rules that give the outcome its meaning, and the number of events, and therefore participants, needed to answer the question.

7.1.1 The Elements of the Protocol

Table 8.7 lists the elements with the Campus Connection Follow-up as the example. Each row draws on an earlier part of the lesson: time zero, eligibility, the event and the censoring rules on Section 1, and the analysis on Sections 3 and 4.

Table 8.7. Elements that a protocol with a time-to-event outcome must specify, with the Campus Connection Follow-up as the example.

ElementWhat the protocol statesCampus Connection Follow-up
Time zeroThe moment at which eligibility, exposure assignment and follow-up coincideDate of completing the baseline survey
Eligibility at time zeroCriteria that make every participant event-free and at riskAged 18 to 29 and a baseline PHQ-9 score below 10
ExposureMeasured at or before time zero, or handled as time-varyingBaseline loneliness, classified as high or low at a prespecified cut-off
EventCriterion, ascertainment method, schedule and dating rule, the same in every groupFirst monthly PHQ-9 score of 10 or more, dated to that month
Follow-upMaximum duration and assessment scheduleMonthly questionnaires for 24 months
Censoring rulesDefinitions of loss, withdrawal, administrative end and competing eventsCensored at the last completed questionnaire after three consecutive misses, at withdrawal, or at 24 months; deaths recorded as a competing event and, because they are very rare at these ages, censored in the main analysis
Informative censoringRetention procedures, records of reasons, comparisons and sensitivity analysesReminders by e-mail and text, a reason recorded for each withdrawal, baseline comparison of censored and retained participants, and a worst-case analysis
AnalysisEstimators, tests, effect measure, assumption checks and alternativesKaplan-Meier curves with numbers at risk; survival at 12 and 24 months; log-rank test; hazard ratio from a Cox model adjusted for prespecified confounders; proportional hazards check, with restricted mean survival time as the prespecified alternative
Sample sizeNumber of events required, then participantsComputed with Equation 8.9 below

The last row of Table 8.7, the sample size, needs a calculation of its own, which subsection 7.1.2 sets out.

7.1.2 Planning for Enough Events

The log-rank example in subsection 6.1 showed that a time-to-event comparison with few events has little power, whatever the number of participants. This is because each comparison of observed and expected events happens at an event time, so a participant who remains event-free throughout adds to the risk sets but never supplies a comparison of their own. For this reason, sample size for a time-to-event study is planned in two steps: first the number of events, and then the number of participants needed to produce them. Schoenfeld (1983) derived the number of events needed to detect a given hazard ratio with a two-sided test. The number of participants follows by dividing the required events by the proportion of participants expected to have the event during follow-up. Equation 8.9 gives both quantities.

Events needed to detect a hazard ratio
D = (z1−α/2 + z1−β)² / [p(1 − p) × (ln HR)²]     N = D / πEq 8.9
The number of events required is the squared sum of the standard normal values for the significance level and the power, divided by the product of the proportion of participants who are exposed, one minus that proportion, and the squared natural logarithm of the hazard ratio to be detected. Dividing by the proportion expected to have the event gives the number of participants.

For a new cohort designed to detect a hazard ratio of 1.8 with a two-sided significance level of 0.05 and 80 percent power, with one third of participants in the high-loneliness group, the formula gives (1.960 + 0.842)² ÷ [(1/3) × (2/3) × (ln 1.8)²] = 102.2, which rounds up to 103 events. If about 15 percent of participants are expected to screen positive within 24 months, the study needs 103 ÷ 0.15 = 687 participants (rounded up) before any allowance for loss to follow-up. The protocol targets a hazard ratio of 1.8, smaller than the 2.52 observed in the hypothetical pilot, because pilot estimates from small samples are imprecise and tend to be too large when a pilot is continued only if its results look promising, and because the target should be the smallest effect that would matter for campus mental health planning.

Calculator 8.9 evaluates Equation 8.9 and adds an allowance for loss to follow-up, with a preset for the Campus Connection protocol.

Worked Example 8.5 shows how the elements of Table 8.7 and this sample size calculation are written as the time-to-event subsection of the Campus Connection Follow-up protocol.

Worked Example 8.5: The time-to-event subsection of the Campus Connection Follow-up protocol

Outcome and follow-up. The primary outcome is time from completion of the baseline survey (time zero) to the first monthly PHQ-9 score of 10 or more. Eligible participants are adults aged 18 to 29 with a baseline PHQ-9 score below 10. Participants will receive an online PHQ-9 at the same point in each month for 24 months, with identical schedules and reminders in both loneliness groups, and an event will be dated to the month of the first qualifying score.

Censoring. Participants who miss three consecutive questionnaires will be censored at the date of their last completed questionnaire. Participants who withdraw will be censored at the date of withdrawal, and those who remain event-free will be censored administratively at 24 months. Deaths will be recorded as competing events and, because they are expected to be very rare at ages 18 to 29, censored in the main analysis. The reason for each withdrawal will be recorded, the baseline characteristics of participants censored before 24 months will be compared with those of participants followed to an event or to 24 months, and the hazard ratio will be recomputed under the assumption that every participant lost to follow-up screened positive at the time of censoring.

Analysis. Kaplan-Meier curves will be presented for each loneliness group with censoring marks and numbers at risk at 0, 6, 12, 18 and 24 months, together with the estimated probability of remaining event-free at 12 and 24 months and 95 percent confidence intervals. The groups will be compared with the log-rank test, and the hazard ratio with its 95 percent confidence interval will be estimated with a Cox model adjusted for the confounders identified in the study's causal diagram. If the proportional hazards assumption is not supported, the difference in restricted mean survival time to 24 months will be reported as the primary comparison.

Sample size. To detect a hazard ratio of 1.8 with 80 percent power at a two-sided significance level of 0.05, with one third of participants in the high-loneliness group, 103 events are required. Assuming that 15 percent of participants screen positive within 24 months, 687 participants are needed, increased to 859 to allow for 20 percent loss to follow-up.

The inflation for loss to follow-up in the last paragraph of Worked Example 8.5 divides 687 by 0.80 and rounds up, the same approach used to inflate a survey sample for expected non-response. Losses reduce the number of observed events, so a protocol that expects heavy loss should either plan a larger cohort or a longer follow-up.

This section has compared groups with the log-rank test and the hazard ratio, set out the proportional hazards assumption and its alternatives, and gathered the design decisions of the whole lesson into the content of a protocol. The note below describes how the lesson applies to writing the time-to-event subsection of a protocol, and the key takeaways and knowledge check that follow review the section before the final review of the lesson.

Applying this lesson: writing a time-to-event subsection

A protocol that follows participants over time contains a time-to-event subsection that covers each row of Table 8.7, as Worked Example 8.5 does. It states time zero and confirms that eligibility, exposure assignment and the start of follow-up coincide at that moment; defines the event, its ascertainment and its dating rule; lists every expected source of censoring and how each will be recorded; and reports the number of events and participants needed, which Calculator 8.9 computes. For a cross-sectional study, a useful check on the design is to work out what time zero, the event and the censoring rules would be if a follow-up phase were added, and which source of censoring would most threaten the non-informative censoring assumption. Informative censoring and loss to follow-up also belong in the protocol's threats to validity and mitigation subsection, described in Lesson 7 Section 4.

Key Takeaways

  • 6.1 The log-rank test asks whether two survival curves differ by more than chance would produce if the groups really had the same survival at every time. At each event time it pools the participants at risk in both groups and shares the events out in proportion to each group's share of the risk set, so the expected number in group A at that time is the total number of events × nA / n; adding these over all event times gives EA, which is compared with the observed OA. When you work through a table such as Table 8.5, recount the risk set in each group at every event time (a participant censored at an event time still counts as at risk), and check that the expected events in the two groups add up to the total number of events. If OA is larger than EA, group A had more events than equal survival would predict, but whether that is more than chance depends on the test statistic and its p-value. A non-significant result with few events, such as p = 0.20 with only eight events in Worked Example 8.4, reflects low power rather than evidence that survival is the same, and your interpretation should say so.
  • 6.2 The hazard is the rate at which events occur among the people who are still event-free at a given time, so it is the incidence rate from Lesson 4 computed over a short stretch of follow-up. Unlike survival, which can only stay level or fall, the hazard can rise, fall or stay constant: the hazard of death falls after major surgery, rises with age for most chronic diseases, and may be roughly constant for sudden accidental events. To estimate it from a life-table interval of width h, divide the events by the person-time at risk, approximately h × (r − d/2); for the first six months of the running case this gives 14 / [6 × (194 − 7)] = 14 / 1,122 = 0.0125 per person-month, or 1.25 per 100 person-months. A common trap is to report the conditional probability q = d/r as the hazard. The probability q covers the whole interval and has no time unit, while the hazard is a rate per unit of time, so always state its units.
  • 6.3 When the hazards in both groups are roughly constant, the hazard ratio is simply the ratio of the two incidence rates, HR = (a1 / T1) / (a0 / T0), and its 95 percent confidence interval is exp[ln(HR) ± 1.96 × √(1/a1 + 1/a0)]. For the Campus Connection cohort, (42 / 3,672) / (40 / 8,800) = 2.52, with a 95 percent confidence interval from 1.63 to 3.88. Interpret it as a comparison of rates among people still at risk, using a sentence such as: at any point during the 24 months, participants with high loneliness who had not yet screened positive did so at about two and a half times the rate of participants with low loneliness. Then report the confidence interval and whether it excludes 1, and express a ratio below 1 as a lower rate (a hazard ratio of 0.65 is a 35 percent lower hazard); a hazard ratio from a Cox model is read in the same way, provided its proportional hazards assumption holds. Notice that the standard error depends only on the numbers of events, a reminder that events, not participants, carry the information in a time-to-event comparison.
  • 6.4 The proportional hazards assumption says that the ratio of the hazards in the two groups stays the same throughout follow-up: each hazard may rise or fall, but they rise and fall together, so a single hazard ratio is a complete summary. You cannot see the hazards directly on a Kaplan-Meier plot, so look at the shape of the curves. Curves that separate steadily and do not cross are consistent with the assumption, while curves that cross, or that separate early and then converge, suggest that the effect changes over time. In that situation a single hazard ratio averages an early effect and a later effect into a number that describes neither period, as with surgery that carries a higher hazard just after the operation and a lower one afterwards. When you critique such a result, name the problem and suggest an alternative: separate hazard ratios for prespecified periods, the difference in survival at prespecified times, or the difference in restricted mean survival time. Remember that steadily separating curves support the assumption but do not prove it, so a formal check is still needed.
  • 6.5 A hazard ratio compares event rates among people still at risk, whereas a risk ratio compares the proportions who have had the event by a fixed time, and the two drift apart as the event becomes common. Because a risk cannot exceed 1, when many people in the unexposed group have the event, the exposed group's risk has little room to rise further, so the risk ratio is pulled toward 1 even though the hazard ratio is unchanged. Under proportional hazards you can translate one into the other with S1(t) = S0(t)HR: with a hazard ratio of 2.5 and 90 percent of the unexposed group event-free, the risks are 0.100 and 0.232 (a risk ratio of 2.32), but with only 50 percent event-free they are 0.500 and 0.823 (a risk ratio of 1.65). So if a question or a colleague reads a hazard ratio of 2 as twice the risk, the correction is that this is only approximately true when the event is rare. To find the actual risks, raise the unexposed survival to the power of the hazard ratio, subtract each survival from 1, and then form the risk ratio or risk difference.
  • 7.1 A time-to-event outcome is only as good as the decisions made before the first participant is enrolled, so the protocol states each of them in advance: time zero (the moment at which eligibility, exposure assignment and the start of follow-up coincide), eligibility at time zero, the exposure, the event with its ascertainment schedule and dating rule, the length and schedule of follow-up, the censoring rules, the plan for detecting and handling informative censoring, and the analysis, including how proportional hazards will be checked and what will be reported if it fails. The sample size starts from events, not people. With Equation 8.9, first calculate the number of events D needed to detect the target hazard ratio, then divide by the proportion expected to have the event during follow-up to get the number of participants, and finally divide by the proportion expected to be retained to allow for loss to follow-up. In Worked Example 8.5 this gives 103 events, 103 / 0.15 = 687 participants and 687 / 0.80 = 859 participants after allowing for 20 percent loss, with each step rounded up. Two common slips are stopping at the number of events and inflating for loss by multiplying by 1.20 instead of dividing by 0.80; Table 8.7 and Worked Example 8.5 make a good checklist when you write or critique this subsection.
Knowledge Check: this section

1. A log-rank comparison has two event times. At the first, 30 participants are at risk in group A and 20 in group B, and 5 events occur (4 in A). At the second, 24 are at risk in A and 16 in B, and 5 events occur (4 in A). What is the expected number of events in group A if both groups had the same survival, and what does the comparison with the observed number suggest?

Splitting the events in half ignores that group A holds more of each risk set. Expected events are shared in proportion to the numbers at risk: 5 × 30/50 + 5 × 24/40 = 6.0.
4.0 is the expected number for group B, using its share of each risk set (5 × 20/50 + 5 × 16/40). Group A's share gives 6.0.
E A = 5 × 30/50 + 5 × 24/40 = 6.0, and A had 8. More observed than expected events means events occurred faster in A, so its survival is lower; the test statistic judges whether this exceeds chance.
E A of 6.0 is right, but the reading is reversed. More events than expected means events occurred faster in A, which points to lower survival in A, not higher.
Correct: EA = 6.0, and A had more events than expected. The information needed is the total events and group A's share of the risk set at each event time. At the first time, 5 × 30/50 = 3.0; at the second, 5 × 24/40 = 3.0; so EA = 6.0, while A had OA = 4 + 4 = 8. More observed than expected events means that events occurred faster in A than equal survival would predict, so A's survival is lower; the log-rank statistic then judges whether the excess is larger than chance would produce. Splitting the events in half ignores the unequal risk sets, and 4.0 is the expected number for group B (5 × 20/50 + 5 × 16/40). (Section 4, 6.1 The Log-Rank Test, Equation 8.6 and Worked Example 8.4; Objective 6.1)

2. In one six-month interval of a life table, the effective number at risk is 98 and 8 events occur. Using the approximation in this section, in which the person-time at risk is the interval width × (r − d/2), what is the estimated hazard per 100 person-months?

Dividing by 6 × 98 = 588 forgets that participants who have the event stop contributing time, on average halfway through the interval. The person-time is 6 × (98 − 4) = 564.
Person-time is about 6 × (98 − 8/2) = 564 person-months, and the hazard is 8 ÷ 564 = 0.0142 per person-month, or 1.42 per 100 person-months.
8 ÷ 98 is the conditional probability of the event over the whole interval, which has no time unit. The hazard is a rate per unit of time and divides by person-time.
8 ÷ 94 leaves out the interval width. The person-time at risk is the average number at risk multiplied by 6 months, so the denominator is 564, not 94.
Correct: 1.42 per 100 person-months. The information needed is the interval width (6 months), the effective number at risk (r = 98) and the events (d = 8). The person-time at risk is about 6 × (98 − 8/2) = 6 × 94 = 564 person-months, because participants who have the event stop contributing time, on average halfway through the interval; the hazard is 8 ÷ 564 = 0.0142 per person-month, or 1.42 per 100 person-months. Dividing by 6 × 98 = 588 gives 1.36 because it forgets that step, 8 ÷ 98 = 0.082 (8.16 per 100) is the conditional probability of the event over the whole interval rather than a rate per month, and 8 ÷ 94 (8.51) leaves out the interval width. (Section 4, 6.2 The Hazard: An Event Rate Among Those Still at Risk and Table 8.6; Objective 6.2)

3. In a cohort of factory workers, 36 cases of carpal tunnel syndrome occurred over 4,000 person-years in high-repetition jobs and 30 over 10,000 person-years in low-repetition jobs. Assuming constant hazards, the 95 percent confidence interval for the hazard ratio is 1.85 to 4.87. Which statement is correct?

The ratio of counts ignores the different amounts of person-time. The rates are 36/4,000 = 0.009 and 30/10,000 = 0.003 per person-year, a hazard ratio of 3.0.
The hazard ratio is right, but it compares rates among workers still free of the condition, not the proportions affected by the end of follow-up. A risk ratio would differ, especially for a common outcome.
0.33 puts the low-repetition rate on top, reversing the reference group. With high-repetition work as the exposure, the hazard ratio is 0.009/0.003 = 3.0.
The rates are 0.009 and 0.003 per person-year, so HR = 3.0: workers still free of the condition develop it at three times the rate, and the interval of 1.85 to 4.87 excludes 1.
Correct: HR = 3.0, a threefold rate among those still at risk. The information needed is the events and person-time in each group. The rates are 36/4,000 = 0.009 and 30/10,000 = 0.003 per person-year (0.9 and 0.3 per 100 person-years), so HR = 0.009/0.003 = 3.0: at any time, workers in high-repetition jobs who had not yet developed the condition did so at three times the rate, and the data are compatible with rates about 1.85 to 4.87 times as high. The ratio of counts, 1.2, ignores the different amounts of person-time, 0.33 reverses the reference group, and a hazard ratio compares rates among those still at risk, not the proportions affected by the end of follow-up. (Section 4, 6.3 The Hazard Ratio as a Ratio of Rates, Equation 8.7 and Calculator 8.7; Objective 6.3)

4. A trial compares surgery with medical treatment for time to death. The Kaplan-Meier curves show more deaths after surgery in the first three months, then cross at about month 9, with better survival after surgery from then on. The report gives a single hazard ratio of 0.95 (95 percent confidence interval 0.80 to 1.13) and concludes that surgery makes no difference to survival. What is the best critique?

Surgery has a higher hazard early and a lower one later, so the ratio of hazards changes over follow-up. A hazard ratio near 1 averages two opposite effects; period-specific ratios, fixed-time survival or restricted mean survival time describe it better.
An interval including 1 does not show that surgery makes no difference here. The single hazard ratio averages an early harm and a later benefit, so it describes neither period.
Crossing curves suggest non-proportional hazards; they say nothing by themselves about whether censoring was related to prognosis.
The log-rank test is most powerful when one group has a consistently higher hazard. When curves cross, early and late differences partly cancel, so it can miss a real difference.
Correct: the hazards are not proportional, so a single hazard ratio is a poor summary. The information needed is how the curves behave over time. A single hazard ratio is a complete summary only if the ratio of the hazards is the same throughout follow-up; here surgery has a higher hazard early and a lower one later, so a hazard ratio near 1 averages two opposite effects and describes neither period. Hazard ratios for prespecified periods, differences in survival at fixed times, or the difference in restricted mean survival time do not depend on the assumption. The log-rank test is most powerful when one group has a consistently higher hazard and can miss real differences when curves cross, and crossing says nothing by itself about censoring. (Section 4, 6.4 Proportional Hazards in Plain Language and Figure 8.7; Objective 6.4)

5. Under proportional hazards, 80 percent of unexposed participants remain event-free at three years and the hazard ratio for the exposure is 2.0. What is the three-year risk ratio?

The hazard ratio and the risk ratio are close only when the event is rare. With 20 percent of unexposed participants having the event, the risk ratio is pulled toward 1.
Exposed survival is 0.80 raised to the power 2.0, which is 0.64. The risks are 0.36 and 0.20, so the risk ratio is 1.8, closer to 1 than the hazard ratio because risks cannot exceed 1.
1.25 is 0.80/0.64, a ratio of survival probabilities. The risk ratio compares the proportions who had the event, 0.36 and 0.20.
0.80 is 0.64/0.80, a ratio of survival probabilities with the exposed group on top. The risk ratio compares the risks, 0.36/0.20 = 1.8.
Correct: 1.8. The information needed is the unexposed survival at three years (0.80), the hazard ratio (2.0) and the relationship S1(t) = S0(t)HR. The exposed survival is 0.802.0 = 0.64, so the three-year risks are 1 − 0.64 = 0.36 and 1 − 0.80 = 0.20, and the risk ratio is 0.36/0.20 = 1.8. It is closer to 1 than the hazard ratio because risks accumulate and cannot exceed 1, while the hazard ratio compares rates among those still at risk; the gap widens as the event becomes more common. The values 1.25 and 0.80 are ratios of survival probabilities (0.80/0.64 and 0.64/0.80), not of risks. (Section 4, 6.5 Why a Hazard Ratio Is Not a Risk Ratio, Equation 8.8 and Calculator 8.8; Objective 6.5)

6. A team plans a cohort study to detect a hazard ratio of 1.5 with a two-sided significance level of 0.05 and 80 percent power, with half of the participants exposed. Schoenfeld's formula gives the events needed as D = 7.849 ÷ [p(1 − p) × (ln HR)²], where p is the proportion exposed, and (ln 1.5)² = 0.1644. If 20 percent of participants are expected to have the event during follow-up, how many participants are needed before any allowance for loss to follow-up?

191 is the number of events needed, not the number of participants. Only 20 percent are expected to have the event, so 191 ÷ 0.20 = 955 participants must be enrolled.
38 multiplies the events by 0.20 instead of dividing. Enrolling 38 participants would produce only about 8 events, far short of the 191 needed.
D = 7.849 ÷ (0.5 × 0.5 × 0.1644) = 191 events, and N = 191 ÷ 0.20 = 955 participants before any allowance for loss.
1,495 puts the proportion with the event, 0.20, into p(1 − p). In Schoenfeld's formula p is the proportion exposed, here 0.5.
Correct: 955. The information needed is the proportion exposed (p = 0.5), the hazard ratio (1.5) and the proportion expected to have the event (0.20). The events needed are D = 7.849 ÷ (0.5 × 0.5 × 0.1644) = 7.849 ÷ 0.0411 = 190.97, rounded up to 191, and the participants needed are N = 191 ÷ 0.20 = 955. Stopping at 191 confuses events with participants, multiplying by 0.20 (38) goes the wrong way, and 1,495 comes from putting the proportion with the event, 0.20, into p(1 − p) in place of the proportion exposed. Power comes from the events, so a protocol sizes the study in events first and then inflates the number of participants for expected loss. (Section 4, 7.1.2 Planning for Enough Events, Equation 8.9 and Worked Example 8.5; Objective 7.1)

7. A cohort study follows adults aged 45 to 64 without hypertension for up to five years, comparing adults in food-insecure and food-secure households. The Kaplan-Meier estimates of the probability of remaining free of hypertension at five years are 0.67 in the food-insecure group and 0.80 in the food-secure group, and the hazard ratio is 1.80. A news release states that "adults in food-insecure households were 1.8 times as likely to develop hypertension within five years." Which assessment is correct?

The hazard ratio and risk ratio coincide only when the outcome is rare, even under proportional hazards. Here the risks are 0.33 and 0.20, a risk ratio of 1.65.
0.80/0.67 is a ratio of survival probabilities, not of risks. The five-year risks are 1 − 0.67 = 0.33 and 1 − 0.80 = 0.20.
The risk ratio is closer to 1 than the hazard ratio, not further from it, because a risk cannot exceed 1. The risks of 0.33 and 0.20 give 1.65.
The risks are 0.33 and 0.20, so the risk ratio is 1.65 and the risk difference 0.13. With a common outcome, the risk ratio is pulled toward 1 while the hazard ratio stays at 1.8.
Correct: the five-year risk ratio is 1.65, not 1.8. The information needed is the five-year risk in each group, one minus the survival estimate: 1 − 0.67 = 0.33 and 1 − 0.80 = 0.20. The risk ratio is 0.33 / 0.20 = 1.65 and the risk difference is 0.13, or 13 more diagnoses per 100 adults over five years. Because a risk cannot exceed 1, when the outcome is common the exposed group's risk has less room to rise, so the risk ratio is pulled toward 1 while the hazard ratio is unchanged; under proportional hazards 0.801.8 = 0.67, consistent with the reported curves. Dividing the survival probabilities gives a ratio of survival, not of risk, and the two measures coincide only when the outcome is rare. (Section 4, 6.5 Why a Hazard Ratio Is Not a Risk Ratio and Equation 8.8; Objective 6.5)

✦ Pass the knowledge check with 100% to continue

Section 5

Final Review & Assessment

⏱ Estimated time: 25 minutes

Bringing It All Together

This lesson treated time-to-event analysis as a way of estimating incidence when follow-up is incomplete. Section 1 set out the design decisions that give a time-to-event outcome its meaning (time zero, the event and the end of follow-up) and the forms of censoring that make follow-up incomplete. It showed that the shortcuts of treating censored participants as event-free or dropping them misstate the risk, and that the methods of the lesson depend on censoring being non-informative. Sections 2 and 3 estimated the probability of remaining event-free over time, first with the actuarial life table and then with the Kaplan-Meier estimator, and showed how to read survival at a time, the median, censoring marks and numbers at risk from a curve.

Section 4 compared groups. The log-rank test compares observed with expected events, the hazard ratio compares event rates among participants still at risk, and the proportional hazards assumption states that this ratio is the same throughout follow-up. Because the information in these comparisons comes from events, the number of events needed is the starting point of a sample size calculation. Each of these decisions belongs in the protocol, written before any data are collected.

Key Takeaways from this lesson

  1. You can now describe a time-to-event outcome as a follow-up time and an event status for each participant, specify the three design decisions that give them meaning (time zero, the event with its ascertainment and dating rule, and the end of follow-up), and turn a follow-up record into a time and a status. You can also recognize immortal time bias and lead-time bias as the result of starting the clock at the wrong moment. The most useful check on any design is to confirm that eligibility, exposure assignment and the start of follow-up coincide at time zero for every participant.
  2. You can distinguish right censoring (from loss to follow-up, withdrawal, moving away and the administrative end of a study) from left censoring, interval censoring and late entry by asking which part of the event time is unknown. You can explain that every method in this lesson assumes non-informative censoring, meaning that people who leave have the same future risk as those who stay. When a scenario describes higher-risk people dropping out, such as participants whose health is worsening, say that survival will be overstated and propose a design step: retention procedures, recorded reasons for withdrawal, a baseline comparison of those censored early, or a worst-case sensitivity analysis.
  3. You can explain why the two shortcuts fail when follow-up is incomplete: treating censored participants as event-free understates the risk, and dropping them tends to overstate it. You can also use Equation 8.1 to show that the true risk lies between E / N and (E + C) / N. Whenever you see a risk calculated as a simple proportion in a cohort with early losses, check which shortcut was used and which way it is biased.
  4. You can build an actuarial life table by hand, using r = l − w/2, q = d/r and p = 1 − q for each interval and multiplying the p values to obtain cumulative survival, and you can describe its assumptions: non-informative censoring, withdrawals at the midpoint on average and stable survival across enrolment dates. The practical reminder is to carry each row forward correctly, with l − w − d entering the next interval, and to report the risk as one minus the final cumulative survival.
  5. You can calculate a Kaplan-Meier estimate by hand, multiplying (n − d) / n at each event time while keeping censored participants in the risk set until they leave, and you can read a Kaplan-Meier curve for survival and risk at a chosen time, the median survival time (or "not reached"), the censoring marks and the numbers at risk. The most useful reminder is to count the risk set carefully at every event time and to check the numbers at risk before you trust the right-hand end of any curve.
  6. You can interpret the log-rank test as a comparison of observed and expected events, remembering that a non-significant result with few events reflects low power rather than equal survival. You can calculate and interpret a hazard ratio as a ratio of event rates among those still at risk, explain proportional hazards as a hazard ratio that stays the same over follow-up (doubtful when curves cross or converge), and explain why a hazard ratio moves further from the risk ratio as the event becomes common. When you put a hazard ratio into words, describe it as a rate among those still event-free rather than as a risk, and use S1(t) = S0(t)HR when you need the actual risks.
  7. You can plan the time-to-event subsection of a protocol, covering time zero, eligibility, the event and its ascertainment, follow-up, censoring rules, the plan for informative censoring and the analysis. You can also calculate the number of events needed to detect a target hazard ratio and turn it into a number of participants with an allowance for loss to follow-up. Remember that the sample size starts from events: divide the events by the proportion expected to have the event, then divide by the proportion expected to be retained.

Core Concepts Reviewed

Section 1: time-to-event data, time zero, the event, follow-up, right, left and interval censoring, late entry, informative and non-informative censoring, competing events, and immortal time and lead-time bias.

Section 2: the actuarial life table, conditional probabilities of the event and of survival, the effective number at risk and the half-interval assumption, and cumulative survival as a running product.

Section 3: the Kaplan-Meier product-limit estimator, risk sets at event times, ties and censoring conventions, survival at a time, median survival, censoring marks, numbers at risk and restricted mean survival time.

Section 4: the log-rank test, the hazard, the hazard ratio as a ratio of rates, proportional hazards, the relationship between hazard ratios and risk ratios, protocol elements and the number of events needed.

Final Knowledge Assessment

Complete all 17 questions below with 100% accuracy to finish this lesson. You must also pass every section knowledge check before submitting.

Final Assessment: Time-to-Event Data

1. A team uses pharmacy and hospital records to compare time to a first hip fracture among adults aged 65 and older who start one of two sleep medications, drug X or drug Y. Which choice of time zero best follows the principle taught in this lesson?

At the 65th birthday the person meets the age criterion, but their exposure group, drug X or Y, is not yet known. Eligibility, exposure assignment and follow-up do not coincide.
Requiring a third dispensing means each person must stay fracture-free until then to be classified, which creates immortal time credited to the exposure.
At the first dispensing the person is an eligible new user aged 65 or older, their exposure group is determined, and follow-up for fractures begins, so all three conditions coincide.
A calendar date common to the database is not a time zero for any participant. Time is measured from each person's own time zero, when eligibility, exposure and follow-up coincide.
Correct: the date of the first dispensing. The information needed is the moment at which eligibility, exposure assignment and the start of follow-up coincide. At the first dispensing the person is an eligible new user aged 65 or older, their exposure group (X or Y) is determined, and follow-up for fractures can begin. The third dispensing requires each person to remain fracture-free until then, which creates immortal time; at the 65th birthday the exposure group is not yet known; and a calendar date for the database is not a time zero for any participant. (Section 1, 1.2.1 Time Zero; Objective 1.2)

2. A province introduces lung cancer screening for long-term smokers. Its annual report notes that five-year survival from diagnosis is 60 percent for screen-detected cancers and 20 percent for cancers found after symptoms appeared, and concludes that screening extends life. What is the main problem with this conclusion, and what comparison would avoid it?

Screening moves diagnosis earlier, so survival from diagnosis lengthens even if death comes on the same date. Measuring time from randomization to screening or no screening removes that dependence.
Immortal time bias arises when exposure is assigned after time zero. The problem here is that screening moves time zero, the date of diagnosis, earlier; requiring two screens would add immortal time rather than fix this.
Nothing describes participants leaving according to prognosis. The survival gap comes from starting the clock earlier for screen-detected cancers, and excluding people lost would itself misstate the risk.
Diagnosis looks like a common starting event, but it falls at different points in the disease course in the two groups. Screen-detected cases gain survival time from the earlier start alone.
Correct: lead-time bias. The information needed is what time zero is and whether it depends on the exposure. Screening moves the date of diagnosis earlier, so when time zero is diagnosis, screen-detected cases gain survival time even if death comes on the same date it would have without screening. Diagnosis looks like a common starting point, but it falls at different points in the course of the disease in the two groups; starting the clock at randomization to screening or no screening, or comparing mortality in the whole screened and unscreened populations, removes the dependence on the date of detection. (Section 1, 1.3 Biases That Start at Time Zero, lead-time bias; Objective 1.3)

3. A study of time to a first chlamydia infection among college students tests each student once a year for three years. A student who tests negative at year 1 and positive at year 2 is recorded as having the event at year 2. Which statement is correct?

A positive test after a negative one is an observed event, not right censoring. Its timing is only known to lie between the two tests, and a year-long gap makes dating it to the test inaccurate.
Left censoring means the event happened before observation began. This student was observed infection-free at year 1, so the infection is known to fall between years 1 and 2.
Late entry means joining the risk set after time zero. The student was under observation from the start; the issue is how the event time is known.
The infection is known only to fall between the year 1 and year 2 tests. With tests a year apart over three years, dating it to the test places events up to a year late, so interval-censored methods or a yearly life table fit better.
Correct: the event is interval-censored, and the yearly gap is too wide to ignore. The information needed is how often the outcome is assessed compared with the length of follow-up. A negative test at year 1 and a positive test at year 2 show only that infection occurred at some point in between. Dating events to the test that detects them is acceptable when assessments are close together relative to follow-up, as with monthly screens over 24 months, but a one-year gap in a three-year study places events up to a year late and creates many ties; methods for interval-censored data, or an actuarial life table in yearly intervals, suit data known only by interval. Left censoring would mean that the event happened before observation began, and late entry concerns joining the risk set after time zero. (Section 1, 2.1 Types of Censoring; Section 2, 4.5 Assumptions and the Width of the Intervals; Objective 2.1)

4. An online cohort follows adults who start a smartphone program for problem drinking, with weekly check-ins, for time to a return to heavy drinking. Participants who miss four weekly check-ins in a row are censored at their last check-in. Staff notice that people who return to heavy drinking often stop checking in before reporting it. Which statement is correct?

Applying a rule equally ensures consistency, not non-informative censoring. If many of those censored have already relapsed, they have a different future risk from those who remain.
Many censored participants have already returned to heavy drinking, so the remaining risk set is healthier, fewer events are observed, and survival is too high. A worst-case analysis tests whether conclusions hold.
The direction is reversed and the fix fails. Losing participants who relapsed overstates survival, and excluding them discards their event-free time, one of the shortcuts that misstates the risk.
The assumption cannot be tested from the observed data, because the event times of censored participants are unknown. A log-rank test compares groups' survival; it cannot reveal what happened after censoring.
Correct: censoring is informative, survival is overstated, and a worst-case analysis helps. The information needed is whether the people who are censored have a different future risk from those who remain. Many of those censored have already returned to heavy drinking, so the risk set that remains is healthier than the group as a whole, fewer events are observed than occur, and the estimated probability of remaining free of heavy drinking is too high. A rule applied equally to everyone ensures consistency, not non-informative censoring, and the assumption cannot be tested from the observed data; recorded reasons, baseline comparisons and a worst-case sensitivity analysis are the available checks, while excluding those lost discards their event-free time. (Section 1, 2.2 Informative and Non-Informative Censoring; Objective 2.2)

5. In a cohort of 40 participants followed for two years, 10 had the event, 8 were censored before two years and 22 completed follow-up event-free. A report states that the two-year risk was 25 percent (10 of 40). Which statement best describes this estimate?

10/40 treats all 8 censored participants as event-free for two years, which understates the risk whether or not censoring is non-informative. It is the lower limit, not an unbiased estimate.
10/40 keeps the censored participants in the denominator; it does not drop them. Dropping them would give 10/32 = 0.31, which tends to be too high.
E/N = 10/40 = 0.25 assumes none of the 8 censored participants had the event, so it is the lowest value the data allow. Counting every early censoring as an event gives the upper limit, 18/40 = 0.45.
The highest value would count every early-censored participant as an event, (10 + 8)/40 = 0.45. The reported 0.25 treats them as event-free, which is the lowest value.
Correct: 0.25 is the lowest value the data allow. The information needed is the number enrolled (N = 40), the events (E = 10) and the early censorings (C = 8). Dividing the events by everyone enrolled, E/N = 10/40 = 0.25, treats every censored participant as event-free for the full two years, which understates the risk whether or not censoring is non-informative. Dropping the censored participants gives 10/32 = 0.31, which tends to be too high, and counting every early censoring as an event gives the upper limit (10 + 8)/40 = 0.45; a life table or Kaplan-Meier estimate uses the censoring times to place the risk within these limits. (Section 1, 3.1 Why Ordinary Summaries Misstate the Risk and Equation 8.1; Objective 3.1)

6. In a life table with three-month intervals, 80 participants enter the third interval, 16 withdraw during it and 9 have the event. Cumulative survival at the end of the second interval is 0.80. What is the cumulative survival at the end of the third interval?

r = 80 − 16/2 = 72, so q = 9/72 = 0.125 and p = 0.875, and S = 0.80 × 0.875 = 0.700.
0.710 counts the 16 withdrawals as fully at risk (9/80), which understates the probability of the event. The half-interval rule gives a denominator of 72.
0.688 removes the withdrawals entirely (9/64), discarding their time at risk and overstating the probability of the event. The half-interval rule gives 72.
0.80 − 0.125 subtracts a conditional probability as if it applied to everyone who started. q applies only to those entering the third interval, so survival is 0.80 × (1 − 0.125).
Correct: 0.700. The information needed is the number entering (l = 80), the withdrawals (w = 16), the events (d = 9) and the previous cumulative survival (0.80). The effective number at risk is r = 80 − 16/2 = 72, so q = 9/72 = 0.125 and p = 0.875, and S3 = 0.80 × 0.875 = 0.700. Counting the withdrawals as fully at risk gives 0.80 × (1 − 9/80) = 0.710, removing them gives 0.80 × (1 − 9/64) = 0.688, and subtracting q from 0.80 (0.80 − 0.125 = 0.675) treats a conditional probability as if it applied to everyone who started. (Section 2, 4.3 Calculating a Life Table by Hand, Equations 8.2 and 8.3 and Calculator 8.3; Objective 4.3)

7. Three analysts compute the conditional probability of the event for the same life-table interval, in which 50 participants enter, 10 withdraw and 4 have the event. Analyst 1 counts the withdrawals as fully at risk, Analyst 2 uses the actuarial half-interval rule and Analyst 3 removes the withdrawals entirely. Which statement is correct?

Withdrawals do not change the number of events, but they change the denominator. The three rules give 50, 45 and 40, so the three probabilities differ.
Counting withdrawals fully at risk adds them to the denominator, not as events, which gives 4/50 = 0.080, and removing them gives 4/40 = 0.100. The values are attached to the wrong analysts.
Removing withdrawals discards the time they spent at risk before leaving, so 0.100 overstates the probability. The half-interval value, 0.089, is the actuarial estimate.
4/50 = 0.080 understates the probability, 4/40 = 0.100 overstates it, and the half-interval rule's 4/45 = 0.089 lies between them.
Correct: 0.080, 0.089 and 0.100. The information needed is the number entering (50), the withdrawals (10) and the events (4). Counting withdrawals fully at risk gives 4/50 = 0.080, which understates the probability because they were not observed to the end of the interval; the half-interval rule gives 4/(50 − 10/2) = 4/45 = 0.089; and removing them gives 4/40 = 0.100, which overstates it because it discards the time they spent at risk before leaving. The gap between the extremes grows as withdrawals become more common or intervals wider. (Section 2, 4.4 Why Withdrawals Are Counted as Half a Person; Objective 4.4)

8. Twelve participants are followed for up to 12 months. The table gives the number of events and the number censored at each follow-up time. What are the Kaplan-Meier estimate after month 9 and the median survival time?

MonthEventsCensored
120
302
510
601
920
1204
0.583 keeps the censored participants in the risk set. After two are censored at month 3 and one at month 6, only 6 are at risk at month 9, which gives 0.486, below 0.50.
4/9 = 0.444 drops the censored participants from the start. Kaplan-Meier keeps them at risk until they leave, which gives 0.833, 0.729 and then 0.486.
Month 1: 10/12 = 0.833. Month 5: 8 at risk, 0.833 × 7/8 = 0.729. Month 9: 6 at risk, 0.729 × 4/6 = 0.486, the first value at or below 0.50, so the median is 9 months.
The estimate is right, but the median is the earliest time the curve falls to 0.50 or below, here month 9. Later follow-up does not change it.
Correct: 0.486 and a median of 9 months. The information needed is the number at risk just before each event time. Month 1: 12 at risk and 2 events, Ŝ = 10/12 = 0.833; two participants are then censored at month 3. Month 5: 8 at risk and 1 event, Ŝ = 0.833 × 7/8 = 0.729; one is censored at month 6. Month 9: 6 at risk and 2 events, Ŝ = 0.729 × 4/6 = 0.486. The curve first falls to 0.50 or below at month 9, so the median is 9 months, whatever happens later in follow-up. Keeping the censored participants in the risk set gives 0.583, and dropping them from the start gives 4/9 = 0.444. (Section 3, 5.2 Calculating a Kaplan-Meier Estimate by Hand, Worked Example 8.3 and 5.4 The Median Survival Time; Objectives 5.2 and 5.4)

9. A Kaplan-Meier analysis of time to a first readmission among 400 adults discharged after heart failure reports the estimates in the table below. Which statement is correct?

MonthNumber at riskŜ(t)
04001.00
63100.82
122200.71
18950.64
24120.52
Ŝ(12) = 0.71 is the probability of remaining free of readmission. The estimated 12-month risk of readmission is 1 − 0.71 = 0.29.
The median is the first time the curve falls to 0.50 or below. At 24 months it is still at 0.52, so the median is not reached, and being close to 0.50 does not count.
Precision depends on the number still at risk, not the number enrolled. Only 12 remain at 24 months against 310 at 6 months, so the late estimate is far less precise.
One minus 0.71 gives a 12-month risk of 0.29. With only 12 patients at risk at 24 months, the end of the curve rests on very few people and has a wide confidence interval.
Correct: the 12-month risk is 0.29 and the 24-month estimate is imprecise. The information needed is the survival estimate at 12 months and the numbers at risk. Ŝ(12) = 0.71 is the estimated probability of remaining free of readmission, so the estimated 12-month risk is 1 − 0.71 = 0.29, not 0.71. The curve is still above 0.50 at 24 months (0.52), so the median is not reached, and with only 12 patients at risk at 24 months the last part of the curve rests on very few people and has a wide confidence interval. Precision depends on the number still at risk, not on the number enrolled. (Section 3, 5.3 Reading Survival and Risk at a Chosen Time and 5.5 Censoring Marks, Numbers at Risk and Precision; Objectives 5.3 and 5.5)

10. A cohort compares time to a first diagnosis of hypertension between adults living in neighbourhoods with high traffic noise (group A) and adults in quieter neighbourhoods (group B). The log-rank output gives OA = 46, EA = 34.5, OB = 30 and EB = 41.5, with χ² = 7.4 on 1 degree of freedom and p = 0.007. Which interpretation is correct?

Group A had 46 diagnoses where 34.5 were expected under equal survival, and p = 0.007 means a difference this large would rarely arise by chance. The test measures evidence, not the size of the effect.
O/E in one group is not a risk ratio. The log-rank test compares observed and expected events; a hazard ratio with its confidence interval describes the magnitude.
A p-value is not the probability that survival is equal. It is the probability of a difference at least this large if survival were equal.
Group A had 46 diagnoses where 34.5 were expected, more than expected, not fewer. Events occurred faster in A, so its survival was lower.
Correct: group A had more events than expected, and chance is an unlikely explanation. The information needed is the observed and expected events in each group and the p-value. If survival were the same, group A would have had 34.5 of the 76 diagnoses, in proportion to its share of the risk sets, but it had 46, while group B had 30 where 41.5 were expected, so events occurred faster in group A. A p-value of 0.007 means that a difference at least this large would arise rarely (about 7 times in 1,000) if survival were equal; it is not the probability that survival is equal. The test measures evidence, not size: O/E in one group is not a risk ratio, and a hazard ratio with its confidence interval describes the magnitude. (Section 4, 6.1 The Log-Rank Test and Worked Example 8.4; Objective 6.1)

11. A cohort study of hospital nurses reports a hazard ratio of 1.40 (95 percent confidence interval 1.10 to 1.78) for a first needlestick injury, comparing nurses on rotating night shifts with nurses on day shifts. Which sentence interprets this result correctly?

A hazard ratio is not the proportion who had the event. 1.40 compares rates of first injury among nurses still uninjured, not the share of night-shift nurses injured.
The hazard is the event rate among those still at risk, so 1.40 means uninjured night-shift nurses were injured at 1.4 times the rate of day-shift nurses, with the interval compatible with rates 10 to 78 percent higher.
A hazard ratio is not a ratio of cumulative risks. When injuries are common, the risk ratio is pulled toward 1, so the two differ.
A hazard ratio compares the pace of events among those still at risk; it does not measure how much sooner injuries occur.
Correct: a rate about 1.4 times as high among nurses still uninjured. The information needed is the hazard ratio, its confidence interval and the definition of the hazard as the event rate among those still at risk. A hazard ratio of 1.40 means that, at any time since time zero (under proportional hazards), the rate of first injury among night-shift nurses who were still uninjured was 40 percent higher than among day-shift nurses, and the interval from 1.10 to 1.78 excludes 1. It is not the proportion injured, it is not a ratio of cumulative risks (which is closer to 1 when injuries are common), and it does not measure how much sooner injuries occur. (Section 4, 6.3 The Hazard Ratio as a Ratio of Rates; Objective 6.3)

12. In a cohort study, the Kaplan-Meier curves for two groups separate sharply in the first six months and then slowly come back together, ending at almost the same value at 36 months. The analysis plan calls for a single hazard ratio from a Cox model. Which response is most appropriate?

Curves need not cross for the assumption to fail. Curves that separate early and then converge show that the hazard ratio changes over follow-up.
Converging curves suggest non-proportional hazards; they say nothing by themselves about censoring. The log-rank test also loses power when the effect changes over time.
A difference concentrated early means one group's hazard is higher early and lower later, so a single hazard ratio averages different periods. Period-specific ratios, fixed-time survival or restricted mean survival time do not depend on the assumption.
A hazard ratio for the last six months alone would discard the early period where the difference lies. Those still at risk later are also a selected group, so it would misdescribe the effect.
Correct: proportional hazards is doubtful, so a single hazard ratio should be supplemented or replaced. The information needed is how the gap between the curves changes over time. Curves that separate early and then converge mean that one group's hazard is higher early and lower later, so the ratio of the hazards changes during follow-up and a single hazard ratio averages periods with different effects. Prespecified period-specific hazard ratios, survival differences at fixed times or the difference in restricted mean survival time do not depend on the assumption. Curves need not cross for the assumption to fail, and the pattern says nothing by itself about censoring. (Section 4, 6.4 Proportional Hazards in Plain Language; Objective 6.4)

13. A colleague writes that a hazard ratio of 2.0 means that exposed people were twice as likely as unexposed people to have the event by five years. In this cohort, 50 percent of unexposed people had the event by five years, and proportional hazards holds. What is the five-year risk ratio?

Exposed survival is 0.50 raised to the power 2.0, 0.25. The risks are 0.75 and 0.50, so the risk ratio is 1.5; the common event leaves little room for the exposed risk to double.
A hazard ratio of 2 means twice the risk only approximately, when the event is rare. With half the unexposed having the event, a risk cannot double past 1, and the risk ratio is 1.5.
3.0 is the odds ratio, (0.75/0.25) ÷ (0.50/0.50). The risk ratio compares the risks, 0.75 and 0.50, which gives 1.5.
0.50 is the ratio of survival probabilities, 0.25/0.50. The risk ratio compares the proportions who had the event, 0.75/0.50 = 1.5.
Correct: 1.5. The information needed is the unexposed five-year survival (1 − 0.50 = 0.50), the hazard ratio (2.0) and S1(t) = S0(t)HR. The exposed survival is 0.502.0 = 0.25, so the five-year risks are 0.75 and 0.50 and the risk ratio is 0.75/0.50 = 1.5. Because the event is common, the risk ratio is pulled toward 1: a risk cannot exceed 1, so the exposed group's risk has little room to double. The value 3.0 is the odds ratio [(0.75/0.25) ÷ (0.50/0.50)], and 0.50 is the ratio of the survival probabilities (0.25/0.50). (Section 4, 6.5 Why a Hazard Ratio Is Not a Risk Ratio and Equation 8.8; Objective 6.5)

14. A protocol aims to detect a hazard ratio of 2.0 with a two-sided significance level of 0.05 and 80 percent power, with one quarter of participants exposed. The events needed are D = 7.849 ÷ [p(1 − p) × (ln HR)²], where p is the proportion exposed, and (ln 2.0)² = 0.4805. About 10 percent of participants are expected to have the event, and 20 percent loss to follow-up is expected. How many participants should be enrolled?

88 is the number of events needed, not participants. With 10 percent expected to have the event, 880 participants are needed before allowing for loss.
880 participants produce 88 events only if everyone is followed to the end. With 20 percent loss expected, enrolment must be 880 ÷ 0.80 = 1,100.
Multiplying by 1.20 inflates by the wrong method: 20 percent of 1,056 lost leaves about 845, fewer than 880. The correct inflation divides by the proportion retained, 0.80.
D = 7.849 ÷ (0.25 × 0.75 × 0.4805) = 88 events; 88 ÷ 0.10 = 880 participants; 880 ÷ 0.80 = 1,100 to allow for 20 percent loss.
Correct: 1,100. The information needed is the proportion exposed (p = 0.25), the hazard ratio (2.0), the proportion expected to have the event (0.10) and the expected loss (20 percent). Events: D = 7.849 ÷ (0.25 × 0.75 × 0.4805) = 7.849 ÷ 0.0901 = 87.1, rounded up to 88. Participants: 88 ÷ 0.10 = 880. Allowing for loss: 880 ÷ 0.80 = 1,100, because only 80 percent of those enrolled are expected to be followed to the end. Stopping at 88 confuses events with participants, stopping at 880 ignores loss, and 880 × 1.20 = 1,056 inflates by the wrong method and leaves fewer than 880 once 20 percent are lost. (Section 4, 7.1.2 Planning for Enough Events, Equation 8.9 and Worked Example 8.5; Objective 7.1)

15. A team is drafting the time-to-event subsection of a protocol for a study that compares time to a first relapse after discharge from a treatment program between participants offered peer mentoring and participants not offered it. Which of these draft statements is written correctly?

Starting the clock three months after discharge misaligns eligibility and the start of follow-up and leaves out relapses in the first three months. Time zero should be discharge, when all three coincide.
A censoring rule written in advance, dated to the last event-free contact and applied equally in both groups, cannot be shaped by the results.
Excluding those lost discards their event-free time while keeping every relapse, which tends to overstate the risk. Censoring uses their follow-up up to the point they left.
The Cox model leaves the baseline hazard unspecified but assumes proportional hazards. The protocol must state how that assumption will be checked and what will be reported if it fails.
Correct: the censoring rule stated in advance and applied equally in both groups. The information needed is what a protocol must fix before data collection: time zero, the event, the censoring rules, the analysis and the number of events. A censoring rule written in advance, dated to the last event-free contact and the same in both groups, cannot be shaped by the results. Starting the clock three months after discharge misaligns eligibility and the start of follow-up and leaves out relapses in the first three months; excluding those lost discards their event-free time and tends to overstate the risk; and the Cox model does assume proportional hazards, so the protocol must say how the assumption will be checked and what will be reported if it fails. (Section 4, 7.1 What a Protocol With a Time-to-Event Outcome Must Specify, Table 8.7 and Worked Example 8.5; Objective 7.1)

16. A city plans a cohort study of the time to a first return to homelessness among adults housed through its Housing First program, comparing scattered-site apartments with a supportive housing building. The wait from acceptance into the program to moving in averages about three months for the building and about two weeks for scattered-site apartments. A colleague proposes to start each participant's clock on the date of acceptance into the program. What would this create?

Scattered-site residents wait only about two weeks, so they gain little immortal time. The longer wait for the building adds more event-free time to that group, favouring it, not the apartments.
Lead-time bias concerns earlier diagnosis moving the start of the clock. Here the problem is event-free waiting time before exposure is in place, which is immortal time.
Before moving in, a participant cannot return to homelessness, so the wait is event-free by definition. Building residents gain about three months of it, apartment residents two weeks, so the building looks better.
A common kind of starting event is not enough when the exposure is not yet in place. At acceptance, follow-up begins but neither type of housing has started, so the three conditions do not coincide.
Correct: immortal time bias favouring the supportive housing building. The information needed is whether eligibility, exposure assignment and the start of follow-up coincide at the proposed time zero. Between acceptance and moving in, a participant has not yet been housed and so cannot return to homelessness, so the wait is event-free by definition. Counting it adds about three months of event-free time for building residents but only about two weeks for apartment residents, lowering the apparent hazard in the building group even if the two types of housing have the same effect. Starting the clock on the move-in date aligns the three conditions. A common kind of starting event is not enough when the exposure group is not yet in place, and lead-time bias concerns earlier diagnosis, a different problem. (Section 1, 1.2.1 Time Zero and 1.3 Biases That Start at Time Zero; Objectives 1.2 and 1.3)

17. In the Housing First study, a return to homelessness is identified as a first stay in any city shelter, recorded in the city's shelter database, and participants are followed for two years with case-worker contacts every three months. Which source of censoring is most likely to be informative, and what would it do to the estimated probability of remaining housed?

People who lose housing may stay outside the city rather than use a city shelter, so those censored when they leave have a higher risk. Survival would be overstated; recorded reasons and a worst-case analysis help.
Administrative censoring at the planned end is usually non-informative, because the closing date has nothing to do with any participant's risk. It does not bias the estimate in either direction.
Shelter stays are captured in the database regardless of contacts, so missed contacts need not cause censoring. Censoring at the first missed contact would discard observed follow-up.
Death is a competing event, which makes a return to homelessness impossible. Treating it as ordinary censoring assumes the person could still have the event, which overstates the cumulative incidence.
Correct: leaving the city. The information needed is which reason for censoring could be related to the risk of the event. Some participants who lose their housing may move away or stay with friends outside the city rather than use a city shelter, so those censored when they leave have a higher risk than those who remain; the estimated probability of remaining housed would be too high, and if moves are more common in one type of housing the comparison would also be biased. Recording the reason for each departure, comparing the baseline characteristics of those who left and stayed, and a worst-case sensitivity analysis that treats each departure as a return to homelessness help detect it. Administrative censoring is usually non-informative; missed contacts need not cause censoring because shelter stays are still captured in the database; and death is a competing event, so treating it as ordinary censoring would overstate the risk of returning to homelessness. (Section 1, 2.1 Types of Censoring and 2.2 Informative and Non-Informative Censoring; Objectives 2.1 and 2.2)

✦ Pass every section knowledge check (100%) before submitting