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.

186 CASESTOVARS<br />

• Fixed variables appear as a single column in the new data file. Their values are simply<br />

copied to the new file.<br />

• The AUTOFIX subcommand can automatically determine which variables in the original<br />

data are fixed. By default, the AUTOFIX subcommand overrides the FIXED subcommand.<br />

AUTOFIX Subcommand<br />

The AUTOFIX subcommand evaluates candidate variables and classifies them as either fixed<br />

or as the source of a variable group.<br />

• A candidate variable is a variable in the original data that does not appear on the SPLIT<br />

command or on the ID, INDEX, and DROP subcommands.<br />

• An original variable that does not vary within the row group is classified as a fixed<br />

variable and is copied into a single variable in the new data file.<br />

• An original variable that does vary within the row group is classified as the source of a<br />

variable group. It becomes a variable group in the new data file.<br />

YES Evaluate and automatically classify all candidate variables. The procedure automatically<br />

evaluates and classifies all candidate variables. This is the default.<br />

If there is a FIXED subcommand, the procedure displays a warning message for<br />

each misclassified variable and automatically corrects the error. Otherwise, no<br />

warning messages are displayed.<br />

This option overrides the FIXED subcommand.<br />

NO Evaluate all candidate variables and issue warnings. The procedure evaluates all<br />

candidate variables and determines if they are fixed.<br />

If a variable is listed on the FIXED subcommand but it is not actually fixed (that is,<br />

it varies within the row group), a warning message is displayed and the command<br />

is not executed.<br />

If a variable is not listed on the FIXED subcommand but it is actually fixed (that is,<br />

it does not vary within the row group), a warning message is displayed and the<br />

command is executed. The variable is classified as the source of a variable group<br />

and becomes a variable group in the new data file.<br />

RENAME Subcommand<br />

CASESTOVARS creates variable groups with new variables. The first part of the new variable<br />

name is either derived from the name of the original variable or is the rootname specified on<br />

the RENAME subcommand.<br />

• The specification is the original variable name followed by a rootname.<br />

• The named variable cannot be a SPLIT FILE variable and cannot appear on the ID, FIXED,<br />

INDEX, or DROP subcommands.<br />

• A variable can be renamed only once.<br />

• Only one RENAME subcommand can be used, but it can contain multiple specifications.

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

Saved successfully!

Ooh no, something went wrong!