27.03.2013 Views

Brian S. Everitt A Handbook of Statistical Analyses using SPSS

Brian S. Everitt A Handbook of Statistical Analyses using SPSS

Brian S. Everitt A Handbook of Statistical Analyses using SPSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Display 1.11 Selecting subsets <strong>of</strong> cases for later analyses.<br />

in the Data View spreadsheet and ignores these rows in subsequent analyses.<br />

It also automatically includes a filter variable, labeled filter_$ in the<br />

spreadsheet which takes the value “1” for selected rows and “0” for<br />

unselected rows. Filter variables are kept to enable replication <strong>of</strong> the case<br />

selection at a later stage by simply selecting cases for which filter_$ takes<br />

the value “1.” Once the selection is active, the status bar displays “Filter<br />

On” for information. (It is also possible to remove unselected cases<br />

permanently by checking Unselected Cases Are Deleted in the Select Cases<br />

dialogue box, Display 1.11.)<br />

1.5.2 Generating New Variables<br />

The Transform drop-down menu provides procedures for generating new<br />

variables or changing the values <strong>of</strong> existing ones (Display 1.12).<br />

The Compute… command is frequently used to generate variables suitable<br />

for statistical analyses or the creation <strong>of</strong> graphics. The resulting<br />

Compute dialogue can be used to create new variables or replace the values<br />

<strong>of</strong> existing ones (Display 1.13). The name <strong>of</strong> the variable to be created<br />

or for which values are to be changed is typed in the Target Variable list.<br />

For new variables, the Type&Label sub-dialogue box enables specification<br />

<strong>of</strong> variable type and label. The expression used to generate new values<br />

can be typed directly in the Expression field or constructed automatically<br />

by pasting in functions from the Functions list or selecting arithmetic<br />

operators and numbers from the “calculator list” seen in Display 1.13.<br />

When pasting in functions, the arguments indicated by question marks<br />

must be completed. Here, for example, we request a new variable, the<br />

age <strong>of</strong> a person in months (variable month), to be generated by multiplying<br />

the existing age variable in years (age) by the factor 12 (Display 1.13).<br />

© 2004 by Chapman & Hall/CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!