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.

1552 SURVIVAL<br />

HAZARD Plot the hazard function.<br />

DENSITY Plot the density function.<br />

OMS Plot the one-minus-survival function.<br />

Example<br />

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

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

/STATUS = PRISON (1) FOR MOSFREE<br />

/INTERVALS = THRU 24 BY 3<br />

/PLOT (SURVIVAL,HAZARD) = MOSFREE.<br />

• Separate life tables are produced for each of the survival variables (NOARREST and<br />

MOSFREE) for each of the three values of the control variable TREATMNT.<br />

• PLOT produces plots of the cumulative survival distribution and the hazard rate for<br />

MOSFREE for the three values of TREATMNT (even though TREATMNT is not included<br />

on the PLOT specification).<br />

• Because plots are requested only for the survival variable MOSFREE, no plots are generated<br />

for the variable NOARREST.<br />

PRINT Subcommand<br />

By default, SURVIVAL prints life tables. PRINT can be used to suppress the life tables.<br />

TABLE Print the life tables. This is the default.<br />

NOTABLE Suppress the life tables. Only plots and comparisons are printed. The WRITE<br />

subcommand, which is used to write the life tables to a file, can be used when<br />

NOTABLE is in effect.<br />

Example<br />

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

/STATUS = PRISON (1) FOR MOSFREE<br />

/INTERVALS = THRU 24 BY 3<br />

/PLOT (ALL)<br />

/PRINT = NOTABLE.<br />

• PRINT NOTABLE suppresses the printing of life tables.<br />

COMPARE Subcommand<br />

COMPARE compares the survival experience of subgroups defined by the control variables.<br />

At least one first-order control variable is required for calculating comparisons.<br />

• When specified by itself, the COMPARE subcommand produces comparisons using the<br />

TABLES variable list.<br />

• Alternatively, specify the survival and control variables for the comparisons. Use the<br />

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

omitting the value ranges. Only variables that appear on the TABLES subcommand

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

Saved successfully!

Ooh no, something went wrong!