Basic data operations in SPSS - ISS - University of Leeds
Basic data operations in SPSS - ISS - University of Leeds
Basic data operations in SPSS - ISS - University of Leeds
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Basic</strong> <strong>data</strong> <strong>operations</strong> <strong>in</strong> <strong>SPSS</strong> for W<strong>in</strong>dows 17<br />
Version 6 (November 2009)<br />
Figure 10: The result <strong>of</strong> the count operation<br />
The variable spend<strong>in</strong>g, added to the end <strong>of</strong> the list <strong>of</strong> variables, conta<strong>in</strong>s the appropriate count (width and<br />
decimal places have been changed to 1 and 0 respectively us<strong>in</strong>g the Variable View w<strong>in</strong>dow s<strong>in</strong>ce the value <strong>of</strong><br />
spend<strong>in</strong>g is a number <strong>in</strong> the range 0 to 7). If required, value labels may be def<strong>in</strong>ed for spend<strong>in</strong>g us<strong>in</strong>g the<br />
Variable View w<strong>in</strong>dow.<br />
We can exam<strong>in</strong>e the distribution <strong>of</strong> values <strong>of</strong> the variable spend<strong>in</strong>g us<strong>in</strong>g Frequencies or Graph. The results<br />
are shown <strong>in</strong> Figure 11. The list <strong>of</strong> frequencies reveals that only 0.5% <strong>of</strong> those surveyed feel that spend<strong>in</strong>g is<br />
‘About Right’ <strong>in</strong> all <strong>of</strong> the areas <strong>of</strong> Government spend<strong>in</strong>g.<br />
Figure 11: Frequency distribution and bar chart for spend<strong>in</strong>g<br />
Figure 12 shows the <strong>SPSS</strong> commands used to perform the transformation.<br />
COUNT spend<strong>in</strong>g = natenvir natheal natcrime natdrug nateduc<br />
natdef natmass (2) .<br />
VARIABLE LABELS<br />
spend<strong>in</strong>g 'Satisfaction with Government Spend<strong>in</strong>g' .<br />
EXECUTE .<br />
Figure 12: COUNT command<br />
Information Systems Services Page 14 <strong>of</strong>36<br />
Version 4.1 (December 2006) tut113_vn17nov2009.doc}