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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Basic Specification<br />

VARSTOCASES 1649<br />

The basic specification is one or more MAKE subcommands, each of which specifies a list of<br />

variables to be combined into a single variable in which each value is displayed on a separate<br />

row.<br />

Subcommand Order<br />

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

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

• The MAKE subcommand is required and can be specified as many times as needed.<br />

• The rest of the subcommands can be specified only once.<br />

Operations<br />

• Row order. New rows are created in the order in which the variables are specified on the<br />

FROM list.<br />

• Propagated variables. Variables that are not named on the MAKE or DROP subcommands<br />

are kept in the new data file. Their values are propagated for each new row.<br />

• Split file processing. The SPLIT FILE command does not affect the results of VARSTOCASES.<br />

If split file processing is in effect, it will remain in effect in the new data file unless a variable<br />

that is used to split the file is named on the MAKE or DROP subcommands.<br />

• Weighted files. The WEIGHT command does not affect the results of VARSTOCASES. If<br />

original data are weighted, the new data will be weighted unless the variable that is used<br />

to split the file is named on the MAKE or DROP subcommands.<br />

• Selected cases. The FILTER and USE commands do not affect the results of VARSTOCASES.<br />

It processes all cases.<br />

Limitations<br />

Example<br />

The TEMPORARY command cannot be in effect when VARSTOCASES is executed.<br />

The following is the LIST output for a data file where repeated measurements for the same<br />

case are stored in variables on a single row:<br />

caseid var1 var2 var3 var4<br />

001 .00 .05 5.00 3.00<br />

002 7.00 1.00 5.00 4.00<br />

003 6.00 3.00 6.00 2.00

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

Saved successfully!

Ooh no, something went wrong!