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.

SAVE Subcommand<br />

KM 795<br />

SAVE saves the temporary variables created by KM. The following temporary variables can<br />

be saved:<br />

SURVIVAL Survival function evaluated at current case.<br />

SE Standard error of the survival function.<br />

HAZARD Cumulative hazard function evaluated at current case.<br />

CUMEVENT Cumulative number of events.<br />

• To specify variable names for the new variables, assign the new names in parentheses<br />

following each temporary variable name.<br />

• Assigned variable names must be unique in the working data file. Scratch or system variable<br />

names cannot be used (that is, variable names cannot begin with # or $).<br />

• If new variable names are not specified, KM generates default names. The default name is<br />

composed of the first three characters of the name of the temporary variable (two for SE),<br />

followed by an underscore and a number to make it unique.<br />

• A temporary variable can be saved only once on the same SAVE subcommand.<br />

Example<br />

KM LENGTH BY SEXRACE<br />

/STATUS=EMPLOY EVENT (1) LOST (3,5 THRU 8)<br />

/STRATA=LOCATION<br />

/SAVE SURVIVAL HAZARD.<br />

• KM saves cumulative survival and cumulative hazard rates in two new variables, SUR_1<br />

and HAZ_1, provided that neither name exists in the working data file. If one does, the<br />

numeric suffixes will be incremented to make a distinction.

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

Saved successfully!

Ooh no, something went wrong!