Professional Documents
Culture Documents
Chapter
S P S S M A N U A L
S
uppose we ask survey respondents to write down their exact age. We may have
responses from teenagers to octogarians. Although this information is
important, it may be too cumbersome to work with in many statistical tests.
You may decide to condense ratio data into interval or ordinal groups. This
example uses the “age” variable in the GSS91 (SPSS
Student Assistant)
Ages 19-29 will be recoded into a new variable and labeled young adults
Ages 30-50 will be recoded into a new variable and labeled middle-age adults.
Ages 51-70 will be recoded into a new variable and labeled older-adults.
31
S P S S M A N U A L
Warning:
If you select “Into Same Variable” your
original data will be permanently changed. It
is always safe to recode “Into Different
Variable.”
Select the arrow and move the variable to the box under Numeric Variable. You can
only recode one variable at a time. In the Output Variable section, you need to create a
new 8-digit variable name and label. As you can see in Figure 5.4, the new variable is
called “newage” and the label is “condensed age variable.”
Fig. 5.4
32
S P S S M A N U A L
Under the old value you have a few options. They are as follows:
• Range Lowest Through: select all the numbers below and including a specified
number
• Range Though Highest: select all the numbers above and including a specified
number
33
S P S S M A N U A L
34
S P S S M A N U A L
• Step 1: Place the values that you want to recode into the appropriate options under
Old Value, see Figure 5.6.
• Step 2: You need to place the corresponding new value in the box.
• Step 3: Select add; the old value with its new value will appear in the box on the
right.
I M P O R T A N T N O T E S
1. If I entered a number, such as 19, in the option Range Lowest Through, that
range would include all possible ages up to and including 19.
2. If I entered a number, such as 71, in Range Though Highest, that range would
include all possible ages beginning from 71.
3. After you are finished entering data, you should select all other values from the
old value options, then select system-missing from new values. Any values that
you failed to include in the recoding will be declared missing.
4. Figure 5.7 illustrates the completed recode.
5. When you are finished select Continue; you will be
back to Figure 5.4.
6. You must select Change, then OK, see Figure
5.8.
7. The new variable appears at the last column on the
SPSS spreadsheet.
Figure 5.8 Change Key
35
S P S S M A N U A L
36
S P S S M A N U A L
Figure 5.11 above illustrates the value label box after all three age groups have been
added. Now, let’s look at the frequencies of our new variable below (Figure 5.12).
condensed age
Cumulative
Frequency Percent Valid Percent Percent
Valid young adults 52 21.0 21.6 21.6
middle age adults 147 59.3 61.0 82.6
older adults 42 16.9 17.4 100.0
Total 241 97.2 100.0
Missing System 7 2.8
Total 248 100.0
Please note that the new variable is now ordinal. Thus, the proper Univariate statistics
to obtain are the median and the mode. Also, you can obtain either bar or pie charts.
It is worth emphasizing again that you do not obtain a histogram for either nominal or
ordinal data.
37
S P S S M A N U A L
Age of Respondents
700
600
500
400
300
200
Frequency
100
0
young adults middle age adults older adults
NEWAGE
Source: GSS91 Survey
Title
Source
Output
33
34