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.

AUTORECODE<br />

AUTORECODE VARIABLES=varlist<br />

/INTO new varlist<br />

[/DESCENDING]<br />

[/PRINT]<br />

Example<br />

AUTORECODE VARIABLES=COMPANY /INTO RCOMPANY.<br />

Overview<br />

Options<br />

AUTORECODE recodes the values of string and numeric variables to consecutive integers and<br />

puts the recoded values into a new variable called a target variable. The value labels or<br />

values of the original variable are used as value labels for the target variable. AUTORECODE<br />

is useful for creating numeric independent (grouping) variables from string variables for<br />

procedures like ONEWAY, ANOVA, MANOVA, and DISCRIMINANT. AUTORECODE can also<br />

recode the values of factor variables to consecutive integers, which is required by MANOVA<br />

and which reduces the amount of workspace needed by other statistical procedures like<br />

ANOVA. AUTORECODE is also useful with the TABLES procedure, where string values are<br />

truncated to eight characters but value labels can be displayed in full. (See the SPSS Tables<br />

manual for more information.)<br />

AUTORECODE is similar to the RECODE command. The main difference is that<br />

AUTORECODE automatically generates the values. In RECODE, you must specify the new<br />

values.<br />

Displaying Recoded Variables. You can display the values of the original and recoded<br />

variables using the PRINT subcommand.<br />

Ordering of Values. By default, values are recoded in ascending order (lowest to highest).<br />

You can recode values in descending order (highest to lowest) using the DESCENDING<br />

subcommand.<br />

Basic Specification<br />

The basic specification is VARIABLES, and INTO. VARIABLES specifies the variables to be<br />

recoded. INTO provides names for the target variables that store the new values. VARIABLES<br />

and INTO must name or imply the same number of variables.<br />

162

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

Saved successfully!

Ooh no, something went wrong!