STATUS Subcommand (SURVIVAL command)

To determine whether the terminal event has occurred for a particular observation, SURVIVAL checks the value of a status variable. STATUS lists the status variable associated with each survival variable and the codes that indicate that a terminal event occurred.

  • Specify a status variable followed by a value range enclosed in parentheses. The value range identifies the codes that indicate that the terminal event has taken place. All cases with non-negative times that do not have a code in the value range are classified as censored cases, which are cases for which the terminal event has not yet occurred.
  • If the status variable does not apply to all the survival variables, specify FOR and the name of the survival variable(s) to which the status variable applies.
  • Each survival variable on TABLE must have an associated status variable identified by a STATUS subcommand.
  • Only one status variable can be listed on each STATUS subcommand. To specify multiple status variables, use multiple STATUS subcommands.
  • If FOR is omitted on the STATUS specification, the status-variable specification applies to all of the survival variables not named on another STATUS subcommand.
  • If more than one STATUS subcommand omits the keyword FOR, the final STATUS subcommand without FOR applies to all survival variables not specified by FOR on other STATUS subcommands. No warning is printed.

Example

SURVIVAL  ONSSURV BY TREATMNT (1,3)
  /INTERVAL = THRU 50 BY 5, THRU 100 BY 10
  /STATUS = OUTCOME (3,4) FOR ONSSURV.
  • STATUS specifies that a code of 3 or 4 on OUTCOME means that the terminal event for the survival variable ONSSURV occurred.

Example

SURVIVAL TABLE = NOARREST MOSFREE BY TREATMNT(1,3)
  /STATUS = ARREST (1) FOR NOARREST
  /STATUS = PRISON (1)
  /INTERVAL=THRU 24 BY 3.
  • STATUS defines the terminal event for NOARREST as a value of 1 for ARREST. Any other value for ARREST is considered censored.
  • The second STATUS subcommand defines the value of 1 for PRISON as the terminal event. The keyword FOR is omitted. Thus, the status-variable specification applies to MOSFREE, which is the only survival variable not named on another STATUS subcommand.