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.

Options<br />

CASESTOVARS 181<br />

Automatic classification of fixed variables. The values of fixed variables do not vary within a<br />

row group. You can use the AUTOFIX subcommand to let the procedure determine which<br />

variables are fixed and which variables are to become variable groups in the new data file.<br />

Naming new variables. You can use the RENAME, SEPARATOR, and INDEX subcommands to<br />

control the names for the new variables.<br />

Ordering new variables. You can use the GROUPBY subcommand to specify how to order the<br />

new variables in the new data file.<br />

Creating indicator variables. You can use the VIND subcommand to create indicator variables.<br />

An indicator variable indicates the presence or absence of a value for a case. An indicator<br />

variable has the value of 1 if the case has a value; otherwise, it is 0.<br />

Creating a count variable. You can use the COUNT subcommand to create a count variable that<br />

contains the number of rows in the original data that were used to create a row in the new<br />

data file.<br />

Variable selection. You can use the DROP subcommand to specify which variables from the<br />

original data file are dropped from the new data file.<br />

Basic Specification<br />

The basic specification is simply the command keyword.<br />

• If split file processing is in effect, the basic specification creates a row in the new data file<br />

for each combination of values of the SPLIT FILE variables. If split file processing is not<br />

in effect, the basic specification results in a new data file with one row.<br />

• Because the basic specification can create quite a few new columns in the new data file,<br />

the use of an ID subcommand to identify groups of cases is recommended.<br />

Subcommand Order<br />

Subcommands can be specified in any order.<br />

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

Each subcommand can be specified only once.<br />

Operations<br />

• Original row order. CASESTOVARS assumes that the original data are sorted by SPLIT and<br />

ID variables.<br />

• Identifying row groups in the original file. A row group consists of rows in the original data<br />

that share the same values of variables listed on the ID subcommand. Row groups are

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

Saved successfully!

Ooh no, something went wrong!