SlideShare une entreprise Scribd logo
1  sur  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
Precautionary Message:
2
 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)
Step 1: Click on highlighted areas
3
•You will see this box
•Choose the variable that you want to recode. In this case, AGE
4
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”
5
This window will open. The two value buttons will be highlighted. Leave as
is. The old value one will disappear after the subsequent choice.
6
a) Click on “Range”. Type in “18”
b) and “27” as shown. This is the age range for Generation Y
c) In “Value” box, type in 1
d) Click on “Add” button. This will bring you to the next screen.
7
• 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
8
The third age range of 44 – 60 is shown.
This range will be added when you click “Add”
9
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)
Click “OK”
11
You will get this syntax read out that tells you what you just did.
12
• 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)
13
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.
14
This is where each age group will be labeled
15
16
Type “1” for the first label (genY).
Click “Add”
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
18
• All labels have now been entered
•Click “OK”. You will return to the “Variable View” window
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…
20
• Go to “Analyze”
• Choose “Descriptive” > “Frequencies”
21
Scroll down to the bottom of the variables list.
Choose “Age Recoded…”
Transfer to “Variable(s)” window
You will come to the next screen
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.
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!
CAUTIONARY MESSAGE!
24
 Please remember to choose the right measurement for
your new “age1” variable!
The generational groups are:
GenY = 18 – 27
GENX = 28 – 43
Boomers = 44 – 60
Traditional (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).

Contenu connexe

Tendances

Data Analysis With Spss - Reliability
Data Analysis With Spss -  ReliabilityData Analysis With Spss -  Reliability
Data Analysis With Spss - Reliability
Dr Ali Yusob Md Zain
 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSS
Phi Jack
 
Mortality and mobidity indicators
Mortality and mobidity indicatorsMortality and mobidity indicators
Mortality and mobidity indicators
Priyamadhaba Behera
 

Tendances (20)

Data management through spss
Data management through spssData management through spss
Data management through spss
 
Basic Statistical Concepts and Methods
Basic Statistical Concepts and MethodsBasic Statistical Concepts and Methods
Basic Statistical Concepts and Methods
 
ANOVA (Educational Statistics)
ANOVA (Educational Statistics)ANOVA (Educational Statistics)
ANOVA (Educational Statistics)
 
Data Analysis With Spss - Reliability
Data Analysis With Spss -  ReliabilityData Analysis With Spss -  Reliability
Data Analysis With Spss - Reliability
 
Two-way Repeated Measures ANOVA
Two-way Repeated Measures ANOVATwo-way Repeated Measures ANOVA
Two-way Repeated Measures ANOVA
 
Introduction to Mediation using SPSS
Introduction to Mediation using SPSSIntroduction to Mediation using SPSS
Introduction to Mediation using SPSS
 
Software packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSSSoftware packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSS
 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSS
 
Categorical data analysis
Categorical data analysisCategorical data analysis
Categorical data analysis
 
Reporting Mann Whitney U Test in APA
Reporting Mann Whitney U Test in APAReporting Mann Whitney U Test in APA
Reporting Mann Whitney U Test in APA
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
 
Spss guidelines
Spss guidelinesSpss guidelines
Spss guidelines
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1
 
Measures of mortality
Measures of mortalityMeasures of mortality
Measures of mortality
 
Multiple regression in spss
Multiple regression in spssMultiple regression in spss
Multiple regression in spss
 
6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test
 
Mortality and mobidity indicators
Mortality and mobidity indicatorsMortality and mobidity indicators
Mortality and mobidity indicators
 
Getting Familiar with SPSS Menus and Icons
Getting Familiar with SPSS Menus and IconsGetting Familiar with SPSS Menus and Icons
Getting Familiar with SPSS Menus and Icons
 
SPSS introduction Presentation
SPSS introduction Presentation SPSS introduction Presentation
SPSS introduction Presentation
 
Reporting a one way repeated measures anova
Reporting a one way repeated measures anovaReporting a one way repeated measures anova
Reporting a one way repeated measures anova
 

Similaire à Recode Age Variable in SPSS

Spss guideline
Spss guidelineSpss guideline
Spss guideline
ASDFGGK
 
This image appears when a project instruction has changed to accommo.docx
This image appears when a project instruction has changed to accommo.docxThis image appears when a project instruction has changed to accommo.docx
This image appears when a project instruction has changed to accommo.docx
juan1826
 
Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)
Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)
Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)
christineshearer
 
I need this done ASAP, You have to have SPSS Software on your comput.docx
I need this done ASAP, You have to have SPSS Software on your comput.docxI need this done ASAP, You have to have SPSS Software on your comput.docx
I need this done ASAP, You have to have SPSS Software on your comput.docx
anthonybrooks84958
 

Similaire à Recode Age Variable in SPSS (20)

Spss guideline
Spss guidelineSpss guideline
Spss guideline
 
Introduction to spss 1
Introduction to spss 1Introduction to spss 1
Introduction to spss 1
 
(Manual spss)
(Manual spss)(Manual spss)
(Manual spss)
 
Sampling
SamplingSampling
Sampling
 
SPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptxSPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptx
 
Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020
 
SPSS How to use Spss software
SPSS How to use Spss softwareSPSS How to use Spss software
SPSS How to use Spss software
 
111249-140817070204-phpapp02.pdf
111249-140817070204-phpapp02.pdf111249-140817070204-phpapp02.pdf
111249-140817070204-phpapp02.pdf
 
Tutorial of SPSS
Tutorial of SPSSTutorial of SPSS
Tutorial of SPSS
 
This image appears when a project instruction has changed to accommo.docx
This image appears when a project instruction has changed to accommo.docxThis image appears when a project instruction has changed to accommo.docx
This image appears when a project instruction has changed to accommo.docx
 
spss intro.ppt
spss intro.pptspss intro.ppt
spss intro.ppt
 
Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)
Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)
Poli_399_Tutorial_Week_Three_-_Sept_29th_(2)
 
Spss beginners
Spss beginnersSpss beginners
Spss beginners
 
Material 1 introduction to eviews
Material 1 introduction to eviewsMaterial 1 introduction to eviews
Material 1 introduction to eviews
 
I need this done ASAP, You have to have SPSS Software on your comput.docx
I need this done ASAP, You have to have SPSS Software on your comput.docxI need this done ASAP, You have to have SPSS Software on your comput.docx
I need this done ASAP, You have to have SPSS Software on your comput.docx
 
Spss notes
Spss notesSpss notes
Spss notes
 
Introduction to spss 2
Introduction to spss 2Introduction to spss 2
Introduction to spss 2
 
Spss (1)
Spss (1)Spss (1)
Spss (1)
 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSS
 
Spss lesson
Spss lessonSpss lesson
Spss lesson
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 

Recode Age Variable in SPSS

  • 1. 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
  • 2. Precautionary Message: 2  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)
  • 3. Step 1: Click on highlighted areas 3
  • 4. •You will see this box •Choose the variable that you want to recode. In this case, AGE 4
  • 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” 5
  • 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. 6
  • 7. a) Click on “Range”. Type in “18” b) and “27” as shown. This is the age range for Generation Y c) In “Value” box, type in 1 d) Click on “Add” button. This will bring you to the next screen. 7
  • 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 8
  • 9. The third age range of 44 – 60 is shown. This range will be added when you click “Add” 9
  • 10. 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)
  • 12. You will get this syntax read out that tells you what you just did. 12
  • 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) 13
  • 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. 14
  • 15. This is where each age group will be labeled 15
  • 16. 16 Type “1” for the first label (genY). Click “Add”
  • 17. 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
  • 18. 18 • All labels have now been entered •Click “OK”. You will return to the “Variable View” window
  • 19. 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…
  • 20. 20 • Go to “Analyze” • Choose “Descriptive” > “Frequencies”
  • 21. 21 Scroll down to the bottom of the variables list. Choose “Age Recoded…” Transfer to “Variable(s)” window You will come to the next screen
  • 22. 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.
  • 23. 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!
  • 24. CAUTIONARY MESSAGE! 24  Please remember to choose the right measurement for your new “age1” variable! The generational groups are: GenY = 18 – 27 GENX = 28 – 43 Boomers = 44 – 60 Traditional (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).

Notes de l'éditeur

  1. The age range for Traditional/Silent generation is 61+If you have Silent Generation members in the 90s+ age range, you will have to pay attention to how other variables such as “missing” are coded. Often values such as 90, 99, etc are used to indicate these values. You may have to either (1) choose to define the Traditional/Silent generation withinIn this case you will have to treat age ranges that fall outside of 89 as outliers.You will have to decide if you will include them, or treat them as outliers and possibly select them out.If you choose to include them in your analysis, you will have to recode missing values so that they do not fall into that generation’s age range, thus confusing your data and analysis
  2. The age range for Traditional/Silent generation is 61+ If you have Silent Generation members in the 90s+ age range, you will have to pay attention to how other variables such as “missing” are coded. Often values such as 90, 99, etc are used to indicate missing values. You may have to either (1) choose to define the Traditional/Silent generation within a range with a cut-off age (e.g. “89” is shown as the cut-off age)In this case you will have to treat age ranges that fall outside of 89 as outliers. If so, you will have to decide if you will select them out, for example OR: (2) You will have to recode missing values. Why? Often missing values are coded with values in the 90+ range. If you choose to include age values in your analysis that are in the 90+ range, you will have to recode those missing values in your data so that they do not fall into that generation’s age range, thus confusing your data and subsequent analysis
  3. NOTE: genTrad/Slnt = Traditional/Silent generation
  4. The age range for Traditional/Silent generation is 61+If you have Silent Generation members in the 90s+ age range, you will have to pay attention to how other variables such as “missing” are coded. Often values such as 90, 99, etc are used to indicate these values. You may have to either (1) choose to define the Traditional/Silent generation withinIn this case you will have to treat age ranges that fall outside of 89 as outliers.You will have to decide if you will include them, or treat them as outliers and possibly select them out.If you choose to include them in your analysis, you will have to recode missing values so that they do not fall into that generation’s age range, thus confusing your data and analysis