Uncertainty and models

Survival / Kaplan-Meier curve

Estimates the probability of remaining event-free beyond each time while accounting for censoring.

  • Plot
  • Time to event
  • Comparison

What it answers

What fraction remains event-free over time?

Shape
Descending steps and censor marks
What it shows
Event timing and group survival differences.

Example

The question

Do customers on annual plans stay longer than monthly ones?

Share of customers still subscribed by months since joining (Kaplan-Meier)

Share of customers still subscribed by months since joining (Kaplan-Meier)Step curves fall each time customers leave; small ticks mark customers still subscribed when data ended. After 12 months 80% of annual and 52% of monthly customers remain; after 24 months 74% and 45%.Annual planMonthly planStill subscribed (%)0%25%50%75%100%06121824Months since joining
Share of customers still subscribed by months since joining (Kaplan-Meier)Step curves fall each time customers leave; small ticks mark customers still subscribed when data ended. After 12 months 80% of annual and 52% of monthly customers remain; after 24 months 74% and 45%.Annual planMonthly planStill subscribed (%)0%25%50%75%100%06121824Months since joining
Step curves fall each time customers leave; small ticks mark customers still subscribed when data ended. After 12 months 80% of annual and 52% of monthly customers remain; after 24 months 74% and 45%.

Illustrative data. It belongs to no company.

When to use it

Use it when

Time-to-event data with valid censoring assumptions.

Avoid it when

Treating censored follow-up as a known event-free lifetime.

How to read it

Follow descending steps and distinguish event drops from censor marks.

Note

Event and censoring indicators are essential.

The data you need

Layout
Long table
Fields
SubjectID: text; Duration: nonnegative number; Event: 0/1
One row is
One subject follow-up, ending in an event or censoring. What is the grain?
Rules
Define Event=1 and censoring=0, a common time origin and time units. Use appropriate methods for truncation or competing risks.
Optional
Group,EntryTime. A precomputed curve needs Time,Survival or CumulativeHazard and optional bounds.
Preparation
Define time origin and event/censor indicators; calculate risk sets and a Kaplan-Meier estimate under appropriate assumptions.
Units
Survival probability uses successive event-risk sets; time uses declared follow-up units. Censoring changes risk sets, not event counts.
Example of the input layout: Long tableA long table: one row per observation, few columns. New data adds rows.SubjectIDDurationEventAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

Three subjects: event 12, censored 18, event 25. Kaplan-Meier survival drops to 2/3 at 12, stays at 18, then drops to 0 at 25 with one subject at risk.

SubjectIDDurationEvent
S1121
S2180
S3251