Login

Recoding Variables in SPSS Statistics (cont...)

Recode a given range in SPSS Statistics

Example: The data given below represents the scores of 10 students in a final examination. Recode the data giving code "1" to scores between 75 - 100, code 2 to scores between 61 - 74, code 3 to scores between 41 - 60 and code 4 to scores between 0 - 40.

Final examination scores of 10 students
Scores 58 86 74 70 79 60 35 42 55 91
Testimonials
TAKE THE TOUR


  1. Enter the data in the SPSS Statistics Data Editor and name the variable "Scores".
    Remember that each individual's results go on a separate line (row) in SPSS Statistics.
    Recoding Variables in SPSS

    Published with written permission from SPSS Statistics, IBM Corporation.

  2. Click on Transform > Recode Into Different Variables... in the top menu.
    Recoding Variables in SPSS

    Published with written permission from SPSS Statistics, IBM Corporation.

  3. Transfer the variable you want to recode by selected it and pressing the SPSS Right Arrow Button button, and give the new variable a name and label. In this example, we have given the new variable a name of "NScores" and label of "New Scores" as shown below:
    Recoding Variables in SPSS

    Published with written permission from SPSS Statistics, IBM Corporation.

  4. Click on the SPSS Change Button button.
  5. Click on the SPSS Old and New Values Button button.
  6. Enter the first range of "75 - 100" into the Range: box within the –Old Value– area, and set the new code to "1" into the Value: box within the –New Value– area, as shown below:
    Recoding Variables in SPSS

    Published with written permission from SPSS Statistics, IBM Corporation.

  7. Click on the SPSS Add Button button.
  8. Repeat for all other values, such that you are presented with the following screen:
    Recoding Variables in SPSS

    Published with written permission from SPSS Statistics, IBM Corporation.

  9. Click on the Continue button.
  10. You will have returned to the previous screen and will now have to click on the SPSS OK Button button. This will take you to the Data View Editor, which will now show that you have created a new variable that is based on recoding your existing variable:
    Recoding Variables in SPSS

    Published with written permission from SPSS Statistics, IBM Corporation.

Join the 10,000s of students, academics and professionals who rely on Laerd Statistics.TAKE THE TOUR
« prevnext »