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.

TEMPORARY<br />

TEMPORARY<br />

Example<br />

SORT CASES BY SEX.<br />

TEMPORARY.<br />

SPLIT FILE BY SEX.<br />

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.<br />

FREQUENCIES VARS=INCOME /STATISTICS=MEDIAN.<br />

Overview<br />

TEMPORARY signals the beginning of temporary transformations that are in effect only for the<br />

next procedure. New numeric or string variables created after the TEMPORARY command are<br />

temporary variables. Any modifications made to existing variables after the TEMPORARY<br />

command are also temporary.<br />

With TEMPORARY you can perform separate analyses for subgroups in the data and then<br />

repeat the analysis for the file as a whole. You can also use TEMPORARY to transform data<br />

for one analysis but not for other subsequent analyses.<br />

TEMPORARY can be applied to the following commands:<br />

• Transformation commands COMPUTE, RECODE, IF, and COUNT, and the DO REPEAT<br />

utility.<br />

• The LOOP and DO IF structures.<br />

• Format commands PRINT FORMATS, WRITE FORMATS, and FORMATS.<br />

• Data selection commands SELECT IF, SAMPLE, FILTER, and WEIGHT.<br />

• Variable declarations NUMERIC, STRING, and VECTOR.<br />

• Labeling commands VARIABLE LABELS and VALUE LABELS, and the MISSING VALUES<br />

command.<br />

• SPLIT FILE.<br />

• XSAVE.<br />

Basic Specification<br />

The only specification is the keyword TEMPORARY. There are no additional specifications.<br />

Operations<br />

• Once TEMPORARY is specified, you cannot refer to previously existing scratch variables.<br />

• Temporary transformations apply to the next command that reads the data. Once the data<br />

are read, the temporary transformations are no longer in effect.<br />

1563

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

Saved successfully!

Ooh no, something went wrong!