BIOSTATISTICS • REGRESSION & MODELING

Time-to-Event Data & Censoring — Time-to-event data and censoring concepts

Understanding how survival analysis handles incomplete observations to draw valid inferences about event timing.

Historical Context & Motivation

The study of time-to-event data — often called survival analysis — arose from an urgent practical need: researchers wanted to estimate how long patients survive after diagnosis, how quickly machines fail in industrial settings, or how rapidly individuals adopt new behaviors, but their data were frequently incomplete. A patient might move away before the study ended, a trial might be stopped for ethical reasons, or a piece of equipment might still be running when the observation window closed. Discarding these partial records would waste valuable information and bias results, so statisticians developed a formal framework to incorporate such censored observations into their analyses.

1662
John Graunt's Life Table
John Graunt published Natural and Political Observations Made upon the Bills of Mortality, constructing one of the first life tables — a precursor to modern survival analysis that tracked mortality rates across age intervals in London.
1958
Kaplan–Meier Estimator
Edward Kaplan and Paul Meier published their landmark paper introducing the product-limit estimator, which elegantly handles censored observations when estimating the survival function. This remains the most widely cited statistical methodology paper in history.
1966
Competing Risks Framework
Prentice and colleagues formalized competing risks, where subjects may experience one of several mutually exclusive events, refining how censoring is conceptualized when multiple event types exist.
1972
Cox Proportional Hazards Model
David Cox introduced the semi-parametric proportional hazards model, enabling researchers to relate covariates to survival times while properly accounting for censoring — becoming the workhorse of biomedical survival regression.
2000s
Modern Extensions
Interval censoring models, cure-rate models, and machine-learning approaches for survival prediction emerged, extending classical censoring concepts to high-dimensional genomics and electronic health record data.

The central question this framework addresses is deceptively simple: how do we analyze durations when we don't always observe the actual event? Standard regression techniques assume we have complete outcome measurements for every subject, but in longitudinal studies this assumption is routinely violated. Time-to-event methodology transforms this limitation into a tractable statistical problem by encoding what we do and do not know about each subject's timeline.

Core Principles & Definitions

Time-to-event analysis revolves around a handful of foundational concepts that distinguish it from ordinary regression and frequentist testing. Every observation in a survival dataset carries two pieces of information: a time value and an event indicator (sometimes called a censoring indicator), which together encode whether the event of interest was actually observed or whether the observation was cut short. Grasping these building blocks is essential before engaging with estimation procedures such as the Kaplan–Meier curve or the Cox regression model.

1

Time-to-Event (Survival Time)

The duration from a well-defined time origin (e.g., date of diagnosis) until the event of interest (e.g., death, relapse, device failure) occurs. Denoted T, this random variable is non-negative and often right-skewed.
2

Event (Failure)

The outcome being studied — death, disease recurrence, first hospitalization, component breakdown, or any clearly defined transition. The event indicator δ equals 1 if the event was observed and 0 if the observation is censored.
3

Censoring

Incomplete observation of a subject's event time. We know the event did not occur before the censoring time but lack information beyond that point. Censoring must be non-informative — independent of the event mechanism — for standard methods to be valid.
4

Survival Function S(t)

The probability that the event has not yet occurred by time t: S(t) = P(T > t). It starts at 1 and decreases monotonically. The survival function is the primary target of estimation in survival analysis.
5

Hazard Function h(t)

The instantaneous rate of event occurrence at time t, given survival up to that moment. Conceptually, h(t) describes the risk intensity at each instant, and integrates over time to give the cumulative hazard H(t).
KEY TAKEAWAY
Think of time-to-event data like tracking marathon runners. Some runners cross the finish line (events), but others drop out mid-race (censored). You wouldn't ignore the dropouts entirely — you know they ran at least to mile 15 before stopping, and that information tells you something about the race's difficulty. Censoring lets us use every runner's partial result instead of throwing away incomplete observations.

Visual Explanation — Observing Subjects Over Time

The most intuitive way to understand time-to-event data and censoring is through a swimmer plot (also called a follow-up diagram), where each horizontal bar represents one subject's timeline from study entry to either the event or censoring. The diagram below shows six hypothetical patients enrolled in a clinical trial studying time to disease relapse. Some patients experience relapse (marked with an ×), while others are censored — either because the study ended while they were still relapse-free, or because they were lost to follow-up.

Each horizontal bar tracks one patient from enrollment to outcome. Patients 2, 4, and 5 experienced relapse (×), while Patients 1, 3, and 6 were right-censored — their bars end at the study's close or at loss to follow-up without the event having occurred. The dashed pink line marks the administrative end of the study.

In the swimmer plot above, notice that Patient 1 and Patient 6 both have bars extending to the study's end at 36 months, indicating they were observed for the full duration without relapsing — these are administratively censored. Patient 3, however, was censored at approximately 30 months, likely due to loss to follow-up. The critical insight is that all three censored patients contribute information: we know their event-free time is at least as long as their observed bar, even though we cannot pinpoint when (or whether) they will ultimately relapse. This partial information, properly handled by survival methods, prevents the systematic bias that would result from either excluding censored subjects or treating their censoring time as the event time.

Mathematical Framework

The mathematical formalism of survival analysis centers on several interconnected functions — the survival function, the hazard function, and the cumulative hazard function — that fully characterize the distribution of the event time T. Let T be a continuous, non-negative random variable with probability density function f(t) and cumulative distribution function F(t) = P(T ≤ t). The observed data for each subject i consist of the pair (ti, δi), where ti = min(Ti, Ci) and δi = I(Ti ≤ Ci).

SURVIVAL FUNCTION
S(t) = P(T > t) = 1 − F(t)
S(t) gives the probability that the event has not yet occurred by time t. By definition, S(0) = 1 and S(∞) = 0. The survival function is monotonically non-increasing.
HAZARD FUNCTION
h(t) = lim[Δt→0] P(t ≤ T < t + Δt | T ≥ t) / Δt = f(t) / S(t)
The hazard h(t) is the instantaneous rate of event occurrence at time t, conditional on survival to time t. It is not a probability (it can exceed 1) — it is a rate with units of inverse time.
CUMULATIVE HAZARD
H(t) = ∫₀ᵗ h(u) du = −ln S(t)
The cumulative hazard H(t) accumulates instantaneous risk from time 0 to t. This identity connects the hazard and survival functions: S(t) = exp(−H(t)).
KAPLAN–MEIER ESTIMATOR
Ŝ(t) = ∏[tᵢ ≤ t] (1 − dᵢ / nᵢ)
Here, dᵢ is the number of events at time tᵢ and nᵢ is the number of subjects at risk just before tᵢ. Censored subjects reduce the risk set but do not contribute events — this is how censoring is naturally accommodated in estimation.
Non-Informative Censoring Assumption
All standard survival methods require the assumption that censoring is independent of the event process. Formally, T and C must be independent (conditional on covariates). If patients drop out because they are getting sicker (informative censoring), the Kaplan–Meier estimator and Cox model can yield biased results. Sensitivity analyses or joint modeling approaches are required in such settings.

Types of Censoring & Truncation

Not all incomplete observations arise in the same way. The type of censoring — and the related concept of truncation — determines which statistical methods are appropriate and how the likelihood function is constructed. Censoring means the event time is only partially known, while truncation means certain subjects are never observed at all because they fall outside the study's observation window. The diagram below classifies the main types.

Censoring (left branch) means the event time is partially known; truncation (right branch) means certain subjects are invisible to the study entirely. Right censoring is the most common form encountered in clinical trials and epidemiological studies.
Summary of censoring types and their associated data structures
TypeWhat Is KnownCommon Scenario
Right CensoringT > observed time cStudy ends while patient still alive; patient lost to follow-up
Left CensoringT < observed time cEvent already occurred before first observation (e.g., tooth decay present at first dental visit)
Interval CensoringL < T ≤ REvent detected between two periodic assessments (e.g., annual screening)
Type I (Fixed)Censoring time C is pre-specifiedStudy has a fixed end date; all event-free subjects censored simultaneously
Type II (Order)Study stops after r eventsIndustrial life testing: run n components until r fail, then stop and record remaining as censored
Random CensoringCensoring time C varies across subjectsPatients enroll at different times; drop out unpredictably (most realistic clinical scenario)

Worked Example — Kaplan–Meier Estimation with Censoring

Consider a small clinical study tracking time to tumor recurrence (in months) for eight patients following surgery. The observed data are: 3, 5+, 7, 9+, 10, 12+, 15, 18+, where the + symbol denotes right-censored observations. We will estimate the survival function Ŝ(t) using the Kaplan–Meier product-limit estimator.

Kaplan–Meier Survival Estimate
1
Step 1 — Organize the DataSort all observations and identify event times versus censored times. Events occurred at months 3, 7, 10, and 15 (δ = 1). Censored observations occurred at months 5, 9, 12, and 18 (δ = 0). The distinct ordered event times are: t₁ = 3, t₂ = 7, t₃ = 10, t₄ = 15.
2
Step 2 — Compute the Risk Set at Each Event TimeAt each event time tᵢ, count the number of subjects at risk (alive and uncensored just before tᵢ). At t₁ = 3: n₁ = 8 (all patients at risk), d₁ = 1. At t₂ = 7: the patient censored at 5 has left, so n₂ = 6, d₂ = 1. At t₃ = 10: the patient censored at 9 has left, so n₃ = 4, d₃ = 1. At t₄ = 15: the patient censored at 12 has left, so n₄ = 2, d₄ = 1.
3
Step 3 — Compute Conditional Survival ProbabilitiesAt each event time, compute (1 − dᵢ/nᵢ): at t₁ = 3: 1 − 1/8 = 7/8 = 0.875. At t₂ = 7: 1 − 1/6 = 5/6 ≈ 0.833. At t₃ = 10: 1 − 1/4 = 3/4 = 0.750. At t₄ = 15: 1 − 1/2 = 1/2 = 0.500.
Conditional probabilities: 0.875, 0.833, 0.750, 0.500
4
Step 4 — Compute the Kaplan–Meier Estimate via Cumulative ProductŜ(t) is the running product of conditional survival probabilities. Ŝ(3) = 0.875. Ŝ(7) = 0.875 × 0.833 = 0.729. Ŝ(10) = 0.729 × 0.750 = 0.547. Ŝ(15) = 0.547 × 0.500 = 0.274.
Ŝ(3) = 0.875, Ŝ(7) = 0.729, Ŝ(10) = 0.547, Ŝ(15) = 0.274
5
Step 5 — Interpret the ResultsThe estimated probability of remaining recurrence-free beyond 3 months is 87.5%, beyond 10 months is 54.7%, and beyond 15 months is 27.4%. The survival curve is a step function that drops only at observed event times. Censored observations reduced the risk set without causing a drop in the survival curve, allowing the information they contribute (event-free time) to influence the estimate without assuming they experienced the event.
The median survival time is between 10 and 15 months (where Ŝ(t) first drops below 0.5).

Strengths, Limitations & Practical Considerations

Strengths and limitations of standard time-to-event methods with censoring
AspectStrengthLimitation
Information UtilizationCensored subjects contribute partial information, increasing effective sample size and statistical efficiencyHeavy censoring (>50%) can produce wide confidence intervals and unstable tail estimates
AssumptionsNon-informative censoring assumption is plausible in well-designed randomized trials with administrative censoringInformative censoring (e.g., sicker patients dropping out) violates the independence assumption and biases results
FlexibilityKaplan–Meier is non-parametric — no distributional assumption required for the event timeCannot directly adjust for covariates; requires Cox regression or parametric models for multivariable analysis
Censoring TypeRight censoring is naturally handled by all standard survival methodsLeft and interval censoring require specialized methods (e.g., Turnbull estimator) that are less widely available
Competing RisksFramework can be extended to competing risks using cumulative incidence functionsNaively censoring at competing events overestimates the marginal probability of the event of interest
KEY TAKEAWAY
Censoring is both the defining feature and the Achilles' heel of survival analysis. When the mechanism generating censored observations is unrelated to the event process (non-informative), survival methods extract maximum information from every subject. When censoring is related to the outcome — patients dropping out because they are deteriorating — the mathematical machinery breaks down. Always interrogate why subjects were censored before trusting the results of any survival analysis.

Connection to Advanced Survival Modeling

The foundational concepts of time-to-event data and censoring serve as the entry point to an extensive family of regression and modeling techniques. Understanding how censoring enters the likelihood function is critical for grasping why the Cox proportional hazards model uses a partial likelihood, why accelerated failure time models model log(T) directly, and why frailty models introduce subject-level random effects. The table below maps the progression from basic to advanced methods.

Progression from foundational concepts to advanced survival modeling
Foundation (This Lesson)Advanced Extension
Kaplan–Meier survival curve (non-parametric, no covariates)Cox proportional hazards model — incorporates covariates via h(t|X) = h₀(t) × exp(βX)
Right censoring enters likelihood as S(cᵢ) for censored subjectsPartial likelihood eliminates h₀(t), focusing only on the order of events
Non-informative censoring assumptionJoint models for longitudinal and survival data handle informative dropout
Single event of interestCompeting risks models and multi-state models for complex event histories
Interval censoringCurrent status data models and non-parametric maximum likelihood estimation (NPMLE)

The full likelihood for right-censored data illustrates why censoring matters at the mathematical level. For subject i with observed time tᵢ and event indicator δᵢ, the contribution to the likelihood is Li = [f(tᵢ)]δᵢ × [S(tᵢ)]1−δᵢ. When the event is observed (δ = 1), the density f(tᵢ) contributes; when censored (δ = 0), only the survival probability S(tᵢ) contributes, reflecting our knowledge that the true event time exceeds tᵢ. This elegant construction permeates every subsequent survival regression model, making the censoring concepts introduced in this lesson the essential prerequisite for all advanced work in the field.

Practice Problems

PROBLEM 1CONCEPTUAL
In a 5-year clinical trial studying time to heart failure hospitalization, a patient enrolls at year 1 and is still event-free when the study ends at year 5. Another patient enrolls at year 2 and withdraws at year 3 to participate in a different trial. Classify the type of censoring for each patient and explain why their data should not simply be discarded.
PROBLEM 2BASIC CALCULATION
Six patients have the following ordered survival times (in months): 4, 8+, 10, 14+, 18, 22, where + indicates censoring. Compute the Kaplan–Meier estimate of the survival function at each event time.
PROBLEM 3INTERMEDIATE
A study of time to device failure reports the following: 10 devices deployed, 3 fail at times 100, 250, and 400 hours, 4 are right-censored at 150, 200, 350, and 500 hours, and 3 are interval-censored with event windows (50, 100], (200, 300], and (400, 500]. Identify which standard Kaplan–Meier method can handle and which observations require a different approach. Compute the Kaplan–Meier estimate using only the exactly observed and right-censored data.
PROBLEM 4APPLIED
A pharmaceutical company conducts a trial comparing a new drug versus placebo for time to progression in cancer patients. After 24 months, 40% of patients in the drug arm and 25% of patients in the placebo arm are right-censored. A reviewer notes that censored patients in the drug arm had worse baseline tumor burden than those who remained in the study. Should the company's analysis be trusted? Explain the statistical implications.
PROBLEM 5CRITICAL THINKING
A researcher studying age at onset of type 2 diabetes recruits participants aged 40–70 from an endocrinology clinic. Some participants already had diabetes at enrollment (prevalent cases), while others are followed prospectively. The researcher plans to use Kaplan–Meier to estimate age-specific onset probabilities. Identify at least two distinct biases arising from the study design and explain which survival analysis techniques address them.

Summary & Review

Time-to-event data measures the duration from a defined origin to an event of interest and is characterized by the pair (tᵢ, δᵢ), encoding both the observed time and whether the event occurred. The survival function S(t) gives the probability of remaining event-free beyond time t, while the hazard function h(t) captures the instantaneous risk at each moment. Censoring — the hallmark of survival analysis — occurs when the event time is only partially observed, most commonly as right censoring (event not yet occurred at last observation), but also as left censoring and interval censoring.

The Kaplan–Meier estimator uses a product-limit formula Ŝ(t) = ∏(1 − dᵢ/nᵢ) to estimate survival while naturally incorporating censored observations by removing them from the risk set without counting them as events. The validity of all standard methods depends on the non-informative censoring assumption — that censoring is independent of the event process. When this assumption is violated, joint models, IPCW, or sensitivity analyses are required. These foundational concepts underpin all advanced survival regression, from the Cox proportional hazards model to competing risks and multi-state frameworks.

Varsity Tutors • Biostatistics • Time-to-Event Data & Censoring