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.

CASESTOVARS<br />

Overview<br />

CASESTOVARS<br />

[/ID = varlist]<br />

[/FIXED = varlist]<br />

[/AUTOFIX = {YES**}]<br />

{NO }<br />

[/VIND [ROOT = rootname]]<br />

[/COUNT = new variable ["label"]]<br />

[/RENAME varname=rootname varname=rootname ...]<br />

[/SEPARATOR = {"." }]<br />

{“string”}]<br />

[/INDEX = varlist]<br />

[/GROUPBY = {VARIABLE**}]<br />

{INDEX }]<br />

[/DROP = varlist]<br />

**Default if the subcommand is omitted.<br />

Example<br />

CASESTOVARS /ID idvar /INDEX var1.<br />

A variable contains information that you want to analyze, such as a measurement or a test<br />

score. A case is an observation, such as an individual or an institution.<br />

In a simple data file, each variable is a single column in your data, and each case is a<br />

single row in your data. So, if you were recording the score on a test for all students in a<br />

class, the scores would appear in only one column and there would be only one row for each<br />

student.<br />

Complex data files store data in more than one column or row. For example, in a<br />

complex data file, information about a case could be stored in more than one row. So, if you<br />

were recording monthly test scores for all students in a class, there would be multiple rows<br />

for each student—one for each month.<br />

CASESTOVARS restructures complex data that has multiple rows for a case. You can use<br />

it to restructure data in which repeated measurements of a single case were recorded in<br />

multiple rows (row groups) into a new data file in which each case appears as separate<br />

variables (variable groups) in a single row. It replaces the working data file.<br />

180

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

Saved successfully!

Ooh no, something went wrong!