StatLabStudent EditionUser guideGalleryFeaturesAbout

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?

What are the assumptions?

How do I run it in StatLab?

  1. Choose the time and status variables and which status code is the event.
  2. Optionally add a factor to compare groups.

How do I read the output?

OutputMeaning
StepsEach drop is an event; + marks censored cases.
Log rankTests 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?

Open StatLab   All guide topics