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.

Subcommand Order<br />

• VARIABLES must be specified first.<br />

• INTO must immediately follow VARIABLES.<br />

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

AUTORECODE 163<br />

A variable cannot be recoded into itself. More generally, target variable names cannot duplicate<br />

any variable names already in the working file.<br />

Operations<br />

• The values of each variable to be recoded are sorted and then assigned numeric values.<br />

By default, the values are assigned in ascending order: 1 is assigned to the lowest nonmissing<br />

value of the original variable, 2 to the second-lowest nonmissing value, and so<br />

on for each value of the original variable.<br />

• Values of the original variables are unchanged.<br />

• Missing values are recoded into values higher than any nonmissing values, with their<br />

order preserved. For example, if the original variable has 10 nonmissing values, the first<br />

missing value is recoded as 11 and retains its user-missing status. System-missing values<br />

remain system-missing.<br />

• AUTORECODE does not sort the cases in the working file. As a result, the consecutive<br />

numbers assigned to the target variables may not be in order in the file.<br />

• Target variables are assigned the same variable labels as the original source variables. To<br />

change the variable labels, use the VARIABLE LABELS command after AUTORECODE.<br />

• Value labels are automatically generated for each value of the target variables. If the original<br />

value had a label, that label is used for the corresponding new value. If the original<br />

value did not have a label, the old value itself is used as the value label for the new value.<br />

The defined print format of the old value is used to create the new value label.<br />

• AUTORECODE ignores SPLIT FILE specifications. However, any SELECT IF specifications<br />

are in effect for AUTORECODE.

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

Saved successfully!

Ooh no, something went wrong!