Module 2 Assignment
Module 2 Assignment
SPSS-TRANSFORMING DATA
ffected
a f etus NOT total
fetus affected
ositive
p 285 970 1,255
screening
egative
n 15 8,730 8,745
screening
A
● re there any outside values in this data set?yes
● Does the boxplot show evidence of asymmetry?no, the data set is skewed
xercise 6 (optional):
E
(1 point extra for each output – 1, 2, 3)
This week we are going to learn how to recode data into the same variable and how to record data into a
different variables. This is a very helpful tool in SPSS.
1. R
ecoding data into single values
The first data set represents runs scored by 5 baseball players in a national tournament. We want to
recode this data so that the players are rank ordered by their number of runs, with the player with the
highest runs given a code of “1” and the player with the lowest score given a 5.
a. Enter the following data in SPSS: # of runs by players
b. Recode the data so that the players are rank ordered by their number of runs, with the player
with the highest runs given a code of "1" and the batsman with the lowest runs given a "5".
c. Run frequencies of the new created variable.
2. R
ecoding data into a given range of values
The second data set represents the scores of 10 MPH students in their final biostatistics exam. We
want to recode the data giving a code of 1 to scores between 75 - 100, code 2 to scores between 61 -
75, code 3 to scores between 41 - 60 and code 4 to scores between 0 - 40.
a. Enter the following data in SPSS
b. Recode the data giving code "1" to scores between 75 - 100, code 2 to scores between 61 -
75, code 3 to scores between 41 - 60 and code 4 to scores between 0 – 40
c. Run frequencies of the new created variable.
3. R
ecoding data into two categories
The third dataset represents 12 patient satisfaction scores for a dental provider. The satisfaction
scores goes from 1 to 10 with 10 being extremely satisfied and 1 extremely dissatisfied. The
providerwantstocodeallthosewhorespondedbygivingratingsabove5a"Satisfactory"codeand
those below 5 a "Dissatisfactory" code.
a. Enter the data in SPSS
b. Recode the data so that all those who responded by giving ratings above 5 have a
"Satisfactory" code and those below 5 have a "Dissatisfactory" code
c. Run frequencies of the new created variable