Define the estimand before you estimate anything
Every survival analysis begins by fixing when follow-up starts, which event ends the event-free period and which time scale is used. Changing any of these changes the risk set and the interpretation, so they should be specified before modelling.
Time-to-event data should keep each person's follow-up time and event indicator, rather than collapsing outcomes to whether an event occurred by one arbitrary date.
Source concept: Survival Analysis — HealthEconomics.wiki (content version 1.0.0, term code HE-EM-SM-083). All numbers in this demonstrator are illustrative teaching values, not empirical estimates.
For each person we observe Yi = min(Ti, Ci) and an event indicator δi = I(Ti ≤ Ci). A censored person's event time is known only to exceed their follow-up. They stay in the risk set until censoring but never enter the event count.
1. Choose or build a cohort
| Person | Follow-up time | Status | Remove |
|---|
Times must be positive. Where an event and a censoring share a time, the censored person is treated as still at risk at that event time.
Estimated survival, Ŝ(t)
3. Step through the product-limit calculation
| Event time tj | At risk nj | Events dj | Censored at tj | 1 − dj/nj | Ŝ(tj) | Greenwood SE | Symmetric 95% interval |
|---|
The symmetric interval (Ŝ ± 1.96 SE) is shown deliberately: it can stray outside 0–1, which is why transformed intervals such as log-log are commonly used. Whichever method is used should be stated. As the risk set shrinks, later estimates become less precise.
The hazard is the instantaneous event rate among people still event free just before time t. It is a rate, not a probability, and can exceed one. Survival and cumulative hazard are linked by S(t) = exp[−H(t)]. Below, a Weibull baseline uses the concept page's parameterisation, and a treatment arm applies a proportional-hazards ratio: h1(t) = HR × h0(t), so S1(t) = S0(t)HR.
Set the baseline and treatment effect
Survival, S(t)
Hazard, h(t) — events per person per year
| Quantity | Control | Treatment | Comparison |
|---|
Trials often end before the economic model horizon. Statistical fit is necessary but not sufficient: several models can match the observed period and differ substantially later. Here an exponential and a Weibull model are both anchored to the same illustrative survival at the end of follow-up; the Weibull also passes through the mid-point value. Expected life-years are the area under the curve, LY(T) = ∫0T S(t) dt.
Observed period (illustrative)
Economic model settings
Survival within and beyond follow-up
Implied hazard, events per person per year
| Model | Parameters | LY within follow-up | LY beyond follow-up | Total LY | Share beyond follow-up | Discounted LY | S at horizon |
|---|
Survival analysis is most useful when event timing, incomplete follow-up and long-term uncertainty remain explicit. Reliable economic conclusions need statistically credible survival estimates and transparent assumptions about what happens after the observed data end.
Method, safeguards and limitations
This demonstrator is educational. Every cohort, parameter and hazard is an illustrative teaching value, not empirical evidence about any treatment or population, and nothing here is medical advice.
- The Kaplan-Meier lab assumes right censoring that is independent of the future event process, conditional on modelled information. It does not handle left censoring, interval censoring or delayed entry (left truncation), which require other methods.
- Greenwood standard errors and symmetric intervals are shown for teaching. With very small cohorts they are unreliable, and transformed intervals that respect 0–1 bounds are usually preferred.
- The hazard-ratio module assumes proportional hazards. When hazards are not proportional, a single hazard ratio averages time-varying effects; alternatives include time-varying coefficients, flexible parametric models, accelerated failure-time models or restricted mean survival.
- The extrapolation module compares only two simple distributions and uses a constant illustrative population hazard. Real extrapolation should consider several clinically plausible models, external data, life-table background mortality, cure or waning assumptions, and structural uncertainty through scenarios or model averaging.
- Weibull parameterisation follows the source concept page: S(t) = exp(−λtp). Software packages parameterise scale differently; reconcile before transferring parameters into an economic model.
- Competing risks, multi-state models, recurrent events and treatment switching are described on the concept page but are not simulated here.