Kaplan–Meier survival curves
Estimate survival probabilities over time using Kaplan–Meier curves, for an entire cohort or separately for groups defined by a clinical variable.
Estimate survival probabilities over time using Kaplan–Meier curves, for an entire cohort or separately for groups defined by a clinical variable.
Kaplan-Meier survival curves
Description
Analysis summary
Estimates, for the cohort, the probability of remaining free of the event over time (e.g. overall survival, progression-free survival), optionally one curve per level of a single grouping variable.
Computation
A Kaplan-Meier estimator is fitted per group (or a single 'Overall' curve when no group is given): at each event time the survival probability is the share of patients still at risk who have not yet had the event, with patients leaving the cohort without the event (censored) withdrawn from the at-risk count. The descriptive stats table carries, per curve, the patient and event counts, the median survival time with its 95% confidence bounds, and the time at which survival drops through 10/25/50/75/90% — None where the curve never reaches that level. Statistical tests compare survival between the groups: for two groups a pairwise Cox proportional-hazards regression, for more a global Cox test plus pairwise comparisons (log-rank when the Cox model fails to converge), with p-values FDR-adjusted for the multiple comparisons and the group with the longer survival named per contrast.
When to use
Use for time-to-event questions: overall survival, progression-free survival, time to relapse, optionally broken down by a categorical variable (tumour stage, treatment arm). For hazard-ratio 'prognostic effects' of one or more clinical variables, use survival_analysis instead.
Caveats
The estimator treats censored patients as event-free until they leave the cohort, so heavy or informative censoring biases the curves. Confidence bounds and medians are unstable near the tail, where few patients remain at risk; the CI band is not drawn below five patients in a curve. Comparisons assume no time-varying confounding.
Example questions
Input columns
Visualizations
kaplan_meierHow to read: One step curve per group (a single curve when the data is unstratified): each step down is one or more events, and the flatter the curve the longer the cohort stays event-free. Shaded bands around each curve are 95% confidence intervals — overlapping bands signal uncertainty, not necessarily significance; significance comes from the accompanying statistical table, whose stars mark group pairs with FDR-adjusted p<0.05 (★ p<0.05, ★★ p<0.01, ★★★ p<0.001, ★★★★ p<0.0001) and which names the group with the longer survival per pair. The y-axis is the probability of remaining event-free (labelled with the outcome, e.g. Overall Survival); the x-axis is time since baseline, in the chosen unit. Hovering a curve shows its survival probability and the number of patients still at risk at that time.
Example analysis 1
Name — Progression-Free Survival by Lymphocyte Density in Tumor (Age > 40)
Analysis parameters
Visualization — kaplan_meier

Output table
Last updated
Was this helpful?