Kaplan-Meier survival plot
Draws survival curves that account for censored cases, compares groups with the log-rank test and reports the median survival time.
Menu: Graphs → More charts → Kaplan-Meier survival plot…
When should I use it?
- Time-to-event data such as dropout, relapse or failure.
What are the assumptions?
- Independent censoring; a time variable and an event/censored status.
How do I run it in StatLab?
- Choose the time and status variables and which status code is the event.
- Optionally add a factor to compare groups.
How do I read the output?
| Output | Meaning |
|---|---|
| Steps | Each drop is an event; + marks censored cases. |
| Log rank | Tests whether the curves differ. |
Worked example
On the practice survey dataset (File → Sample dataset), this command — which the dialog's Paste button also produces — runs the procedure:
PROC vizKM /x=score /state=group /event=max /color='' /ci=''.
Output tables: Case Processing Summary and Median Survival.
Computed by StatLab's validated procedure code when this page was built. The example only illustrates the steps; choose variables that fit your own research question.
What are common mistakes?
- Treating censored cases as events, or dropping them.