Examples (KM command)

KM LENGTH BY SEXRACE
 /STATUS=EMPLOY EVENT (1) LOST (2)
 /STRATA=LOCATION.
  • Survival analysis is used to examine the length of unemployment. The survival variable LENGTH contains the number of months a subject is unemployed. The factor variable SEXRACE combines sex and race factors.
  • A value of 1 on the variable EMPLOY indicates the occurrence of the event (employment). All other observed cases are censored. A value of 2 on EMPLOY indicates cases lost to follow-up. Cases with other values for EMPLOY are known to have remained unemployed during the course of the study. KM separates the two types of censored cases in the KM table if LOST is specified.
  • For each combination of SEXRACE and LOCATION, one KM table is produced, followed by the mean and median survival times with standard errors and confidence intervals.