PLOT Subcommand (KM command)

PLOT plots the cumulative survival distribution on a linear or logarithmic scale or plots the cumulative hazard function. A separate plot with all factor levels is produced for each stratum. Each factor level is represented by a different symbol or color. Censored cases are indicated by markers.

  • When PLOT is omitted, no plots are produced. The default is NONE.
  • When PLOT is specified without a keyword, the default is SURVIVAL. A plot of survival functions for each stratum is produced.
  • To request specific plots, specify, following the PLOT subcommand, any combination of the keywords defined below.
  • Multiple keywords can be used on the PLOT subcommand, each requesting a different plot. The effect is cumulative.

SURVIVAL. Plot the cumulative survival distribution on a linear scale. SURVIVAL is the default when PLOT is specified without a keyword.

LOGSURV. Plot the cumulative survival distribution on a logarithmic scale.

HAZARD. Plot the cumulative hazard function.

OMS. Plot the one-minus-survival function.

Example

KM LENGTH BY SEXRACE
 /STATUS=EMPLOY EVENT (1) LOST (3,5 THRU 8)
 /STRATA=LOCATION
 /PLOT = SURVIVAL HAZARD.
  • PLOT produces one plot of the cumulative survival distribution on a linear scale and one plot of the cumulative hazard rate for each value of LOCATION.