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 aSTATUS
subcommand. - Only one status variable can be listed on each
STATUS
subcommand. To specify multiple status variables, use multipleSTATUS
subcommands. - If
FOR
is omitted on theSTATUS
specification, the status-variable specification applies to all of the survival variables not named on anotherSTATUS
subcommand. - If more than one
STATUS
subcommand omits the keywordFOR
, the finalSTATUS
subcommand withoutFOR
applies to all survival variables not specified byFOR
on otherSTATUS
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 keywordFOR
is omitted. Thus, the status-variable specification applies to MOSFREE, which is the only survival variable not named on anotherSTATUS
subcommand.