Alberto Lusoli
February 01, 2022
150

# CMNS201 - Lab 3. SPSS Variables recoding

## Alberto Lusoli

February 01, 2022

## Transcript

1. Recoding variables
SPSS LABORATORY 3

2. 1. Calendar
2. Previous lecture recap
3. Recoding Variables
4. Exercise
INDEX

3. Photo: Startup Weekend Hackathon. Nov.2014
…BEFORE WE START
Still having problems installing SPSS?
○ Book an appointment for oﬃce hour (Thursday, 12.30 - 1.20)
○ Tech problem? Email [email protected]
No extensions for technical problems after Lab 3 assignment.

5. Photo: Startup Weekend Hackathon. Nov.2014
SET UP SPSS
Open the SPSS project ﬁle we were working on last week. If you do not have a saved copy:
■ Go to Canvas
○ Assignments > SPSS Lab 3 - Variables recoding
■ Open the ﬁle on SPSS
○ Launch SPP
■ File > Open > Data…
■ Find and open the Week-3.sav ﬁle

6. Photo: Startup Weekend Hackathon. Nov.2014
VARIABLES IN THE MUSIC-1 DATASET
8

7. Photo: Startup Weekend Hackathon. Nov.2014
Scale
VARIABLES MEASURE
Ordinal
Nominal
From Ahmed Al-Rawi’s Week 4 slides

8. Photo: Startup Weekend Hackathon. Nov.2014
Scale
VARIABLES MEASURE
Ordinal
Nominal

9. Photo: Startup Weekend Hackathon. Nov.2014
Scale
CHANGING LEVEL OF MEASUREMENT
Ordinal
Nominal

10. Photo: Startup Weekend Hackathon. Nov.2014
CHANGING LEVEL
OF MEASUREMENT

11. Photo: Startup Weekend Hackathon. Nov.2014
CHANGING MEASURE

12. Photo: Startup Weekend Hackathon. Nov.2014
CHANGING MEASURE

13. Photo: Startup Weekend Hackathon. Nov.2014
WHY CHANGING LEVEL OF MEASUREMENT?
Sometime we do not need the maximum level of detail. In these cases, reducing the measurement level facilitates
the management of data and the analysis of results.
Examples of measurement-level reductions:
● Age. From Scale (x years) to Ordinal
○ children [0-12 yrs], teens [13-19], young adult [20-29], adult [30-49], seniors [49+]
● Income. From Ordinal:
○ \$0 - \$4999, \$5000 - \$9,999, \$10,000 - \$14,999, \$15,000 - \$19,999, \$20,000 - \$24,999, \$25,000 - \$29,000
to Nominal:
○ Below poverty line (0 - \$14,999), Above poverty line (\$15,000 and above)

14. CHANGING MEASUREMENT LEVEL IN SPSS:
VARIABLE RECODING

15. FROM SCALE TO NOMINAL
● If tempo is less than 100 BPM, then is Slow
● If tempo is greater than 101 BPM, then is Fast
Scale
Nominal

16. FROM SCALE TO ORDINAL
● Lento – slow (45–59 bpm)
● Larghetto – rather slow and broad (60–65 bpm)
● Adagio – slow with great expression (66–75 bpm)
● Andante – at a walking pace (76–107 bpm)
● Moderato – at a moderate speed (108–119 bpm)
● Allegro – fast, quick, and bright (120–155 bpm)
● Vivace – lively and fast (156–175 bpm)
● Presto – very, very fast (176+ bpm)
Scale
Ordinal

17. IMPORTANT: ALWAYS CHECK YOUR NEW
VARIABLE PROPERTIES

18. Photo: Startup Weekend Hackathon. Nov.2014
IN CLASS EXERCISE
Recode the variable Popularity into a new nominal variable names “Popularity_new”
● If popularity is below 75, then the new variable value is “Popular”
● If popularity is 76 or above, then the new variable value is “Super popular”
To begin, click on Transform > Recode into diﬀerent variable.

19. 1: select the
variable to
recode
2: type the new
variable name and
3: click change
4: click Old and
New Values
6: tick the checkbox
and deﬁne width 15
7: deﬁne the new
variable value for the
range
repeat steps 5-7-8 for
the second range.
10: click OK
9: once deﬁned all
ranges, click Continue

20. Photo: Startup Weekend Hackathon. Nov.2014
IN CLASS EXERCISE
● Go back to the Data View. Your new variable will be the last one on the right.
● Drag and drop the new variable next to the original Popularity
● Sort the original popularity Ascending (right click on the column header > “Sort Ascending”)
● Scroll to popularity = 75 to check if the new variable is correctly recoded
● Take a screenshot of the dataset showing that the new Popularity variable correctly changes value
when old popularity is above 75

21. Photo: Startup Weekend Hackathon. Nov.2014
EXAMPLE

22. Photo: Startup Weekend Hackathon. Nov.2014
BONUS TIP: CHECK THE NEW VARIABLE PROPERTIES
8
Go to Variable View. Make sure the properties of your new recoded variable are correct (they should be).

23. Photo: Startup Weekend Hackathon. Nov.2014
TO CONCLUDE…
8