KM

KM is available in SPSS® Statistics Standard Edition or the Advanced Statistics Option.

KM uses the Kaplan-Meier (product-limit) technique to describe and analyze the length of time to the occurrence of an event, often known as survival time.

KM varname [BY factor varname]

   /STATUS = varname [EVENT](vallist) [LOST(vallist)]

   [/STRATA = varname]

   [/PLOT = [SURVIVAL][LOGSURV][HAZARD][OMS]]

   [/ID  = varname]

   [/PRINT = [TABLE**][MEAN**][NONE]]

   [/PERCENTILES = [(]{25, 50, 75 }[)]]
                      {value list }

   [/TEST = [LOGRANK**][BRESLOW][TARONE]]

   [/COMPARE = [{OVERALL**}][{POOLED**}]]
                {PAIRWISE }  {STRATA  }

   [/TREND = [(METRIC)]]

   [/SAVE = tempvar[(newvar)],...]

**Default if the subcommand or keyword is omitted.

Temporary variables created by Kaplan-Meier are:

SURVIVAL

HAZARD

SE

CUMEVENT

This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.

Syntax for the KM command can be generated from the Kaplan-Meier Survival Analysis dialog.

Example

KM LENGTH BY SEXRACE
 /STATUS=EMPLOY  EVENT (1) LOST (2)
 /STRATA=LOCATION.