recode age variable in spss

24
HOW TO RECODE THE AGE VARIABLE in SPSS Ruth M. Tappin © 2013 1 Permission is granted for the use of this presentation for any purpose. Please attribute according to appropriate APA, MLA or other formatting conventions

Upload: ruth-m-tappin

Post on 07-Dec-2014

6.489 views

Category:

Education


3 download

DESCRIPTION

A step by step guide to recoding AGE variables into generational groups in SPSS. Screenshots of every step is provided in an easy to follow tutorial of how to change or transform a list of ages into generational categories in SPSS

TRANSCRIPT

Page 1: Recode  Age  Variable in SPSS

1

HOW TO RECODE THE AGE VARIABLE

in SPSS

Ruth M. Tappin © 2013

Permission is granted for the use of this presentation for any purpose. Please attribute according to appropriate APA, MLA or other formatting conventions

Page 2: Recode  Age  Variable in SPSS

2

Precautionary Message: After re-coding, please remember to choose the right measurement for

your new variable!

NOTE: Check the codes for your missing values. You may have to recode those if you have the Silent Generation in the 90 range, for example.

You will have to decide if you will include them, or treat them as outliers and possibly select them out.

The generational groups are: GenY = 18 – 27 GENX = 28 (NOT 27) – 43 Boomers = 44 – 60 Traditional (Silent) = 61 – * (89 was actually chosen as a cut-off date for this group see

notes below)

Page 3: Recode  Age  Variable in SPSS

3

Step 1: Click on highlighted areas

Page 4: Recode  Age  Variable in SPSS

4

•You will see this box•Choose the variable that you want to recode. In this case, AGE

Page 5: Recode  Age  Variable in SPSS

5

1) Type a new name for the variable, e.g. “age1”2) Under label type “Age Recoded to Generational Groups”3) Click on “Change”4) Click on “Old and New Values”

Page 6: Recode  Age  Variable in SPSS

6

This window will open. The two value buttons will be highlighted. Leave as is. The old value one will disappear after the subsequent choice.

Page 7: Recode  Age  Variable in SPSS

7

a) Click on “Range”. Type in “18” b) and “27” as shown. This is the age range for Generation Yc) In “Value” box, type in 1d) Click on “Add” button. This will bring you to the next screen.

Page 8: Recode  Age  Variable in SPSS

8

• The age range of 18 thru 27 has now been transferred to the Old -> New window• Add another range (e.g. 28 through 43, which is Generation X). Click “ADD”• Type “2” in Value box, under “NEW Value”• Repeat for each range of years. Number each group consecutively

Page 9: Recode  Age  Variable in SPSS

9

The third age range of 44 – 60 is shown.

This range will be added when you click “Add”

Page 10: Recode  Age  Variable in SPSS

10

Follow the previous procedures and you will get the following result.

Click on “Continue”. You will return to the original “Recode into New Variables” window (next slide)

Page 11: Recode  Age  Variable in SPSS

11

Click “OK”

Page 12: Recode  Age  Variable in SPSS

12

You will get this syntax read out that tells you what you just did.

Page 13: Recode  Age  Variable in SPSS

13

• Click on the “Variable View” at the bottom of your screen and scroll all the way down• You will see the new variable “age1”• NOTE!! Save your data under a new name! (e.g. GSS1-2006_Recoded)

Page 14: Recode  Age  Variable in SPSS

14

Look at the highlighted area under “Values”. Click on it. A blue button will appear.Click on the blue button. A new window will appear.

Page 15: Recode  Age  Variable in SPSS

15

This is where each age group will be labeled

Page 16: Recode  Age  Variable in SPSS

16

Type “1” for the first label (genY).

Click “Add”

Page 17: Recode  Age  Variable in SPSS

17

• In “Value” box type “2”. In “Label” box type “genX”• NEXT: In “Value” box type “3”. In “label box” type “genBoom”• NEXT: In “Value” box type “4”. In “label box” type “genTrad/Slnt”• Click on “OK”• NOTE: If you need to change or remove something, click of the item and make choice

Page 18: Recode  Age  Variable in SPSS

18

• All labels have now been entered•Click “OK”. You will return to the “Variable View” window

Page 19: Recode  Age  Variable in SPSS

19

• At the “Variable View”• Click on blue button that will appear in the highlighted “Label” box• You will see the labels for each of the values • You will now run a Frequency analysis…

Page 20: Recode  Age  Variable in SPSS

20

• Go to “Analyze”• Choose “Descriptive” > “Frequencies”

Page 21: Recode  Age  Variable in SPSS

21

Scroll down to the bottom of the variables list.Choose “Age Recoded…”Transfer to “Variable(s)” windowYou will come to the next screen

Page 22: Recode  Age  Variable in SPSS

22

Click on “OK”(This is just a quick check, do not choose any frequencies to run)NOTE: Measurement level on Age Recoded has not been changed.

Page 23: Recode  Age  Variable in SPSS

23

Congratulations!! You have now learned how to recode variables into groups with specified ranges! (Please read the cautionary message in the next slide)NOTE: Remember to choose the appropriate measurement level for age1 before actually running any analyses!

Page 24: Recode  Age  Variable in SPSS

24

CAUTIONARY MESSAGE! Please remember to choose the right measurement for your new “age1” variable!

The generational groups are:

GenY = 18 – 27GENX = 28 – 43Boomers = 44 – 60Traditional (Silent) = 61 – *

NOTE: You may have to choose an end range for the Traditional/Silent Generation grouping. NOTE: Check the codes for missing values in your dataset. You may have to recode those so that they will not conflict with ages that are 90+ (see NOTES section in this slide).