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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

788 KM<br />

Options<br />

KM Tables. You can include one factor variable on the KM command. A KM table is produced<br />

for each level of the factor variable. You can also suppress the KM tables in the output with<br />

the PRINT subcommand.<br />

Survival Status. You can specify the code(s) indicating that an event has occurred as well as<br />

code(s) for cases lost to follow-up using the STATUS subcommand.<br />

Plots. You can plot the survival functions on a linear or log scale or plot the hazard function<br />

for each combination of factor and stratum with the PLOT subcommand.<br />

Test Statistics. When a factor variable is specified, you can specify one or more tests of equality<br />

of survival distributions for the different levels of the factor using the TEST subcommand. You<br />

can also specify a trend metric for the requested tests with the TREND subcommand.<br />

Display ID and Percentiles. You can specify an ID variable on the ID subcommand to identify<br />

each case. You can also request display of percentiles in the output with the PERCENTILES<br />

subcommand.<br />

Comparisons. When a factor variable is specified, you can use the COMPARE subcommand to<br />

compare the different levels of the factor, either pairwise or across all levels, and either<br />

pooled across all strata or within a stratum.<br />

Add New Variables to Working Data File. You can save new variables appended to the end of the<br />

working data file with the SAVE subcommand.<br />

Basic Specification<br />

• The basic specification requires a survival variable and the STATUS subcommand naming<br />

a variable that indicates whether the event occurred.<br />

• The basic specification prints one survival table followed by the mean and median<br />

survival time with standard errors and 95% confidence intervals.<br />

Subcommand Order<br />

• The survival variable and the factor variable (if there is one) must be specified first.<br />

• Remaining subcommands can be specified in any order.<br />

<strong>Syntax</strong> Rules<br />

• Only one survival variable can be specified. To analyze multiple survival variables, use<br />

multiple KM commands.<br />

• Only one factor variable can be specified following the BY keyword. If you have multiple<br />

factors, use the transformation language to create a single factor variable before<br />

invoking KM.

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

Saved successfully!

Ooh no, something went wrong!