27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

SURVIVAL 1551<br />

SURVIVAL ONSSURV BY TREATMNT (1,3)<br />

/INTERVALS = THRU 50 BY 5, THRU 100 BY 10<br />

/STATUS = OUTCOME (3,4) FOR ONSSURV.<br />

• STATUS specifies that a code of 3 or 4 on OUTCOME means that the terminal event for the<br />

survival variable ONSSURV occurred.<br />

Example<br />

SURVIVAL TABLES = NOARREST MOSFREE BY TREATMNT(1,3)<br />

/STATUS = ARREST (1) FOR NOARREST<br />

/STATUS = PRISON (1)<br />

/INTERVAL=THRU 24 BY 3.<br />

• STATUS defines the terminal event for NOARREST as a value of 1 for ARREST. Any other<br />

value for ARREST is considered censored.<br />

• The second STATUS subcommand defines the value of 1 for PRISON as the terminal event.<br />

The keyword FOR is omitted. Thus, the status-variable specification applies to MOSFREE,<br />

which is the only survival variable not named on another STATUS subcommand.<br />

PLOT Subcommand<br />

PLOT produces plots of the cumulative survival distribution, the hazard function, and the<br />

probability density function. The PLOT subcommand can plot only the survival functions<br />

generated by the TABLES subcommand; PLOT cannot eliminate control variables.<br />

• When specified by itself, the PLOT subcommand produces all available plots for each<br />

survival variable. Points on each plot are identified by values of the first-order control<br />

variables. If second-order controls are used, a separate plot is generated for every value<br />

of the second-order control variables.<br />

• To request specific plots, specify, in parentheses following PLOT, any combination of the<br />

keywords defined below.<br />

• Optionally, generate plots for only a subset of the requested life tables. Use the same<br />

syntax as used on the TABLES subcommand for specifying survival and control variables,<br />

omitting the value ranges. Each survival variable named on PLOT must have as<br />

many control levels as were specified for that variable on TABLES. However, only one<br />

control variable needs to be present for each level. If a required control level is missing<br />

on the PLOT specification, the default BY ALL is used for that level. The keyword ALL<br />

can be used to refer to an entire set of survival or control variables.<br />

• To determine the number of plots that will be produced, multiply the number of functions<br />

plotted by the number of survival variables times the number of first-order controls times<br />

the number of distinct values represented in all of the second-order controls.<br />

ALL Plot all available functions. ALL is the default if PLOT is used without<br />

specifications.<br />

LOGSURV Plot the cumulative survival distribution on a logarithmic scale.<br />

SURVIVAL Plot the cumulative survival distribution on a linear scale.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!