Skip to Main Content

Getting Started with SPSS

Recoding Variables

Recoding can be used in different situations:

  • To categorize a variable. For example, you may want to use people’s age to create different age groups.
  • To merge categories.
  • To change string into numerical data.

Recode into Different Variables

  1. From the menu, choose Transform > Recode into Different Variables. The “Recode into Different Variables” dialog box will appear.
  2. Select the variable you want to recode.
  3. In the Output Variable area, enter the name for the new variable and click Change.

  1. Click Old and New Values to specify how to recode values.
  2. Specify an old value and a new value. Click Add to place the specification into the Old –> New list. In this example, the age variable is recoded into four age groups (below 20, 21 to 40, 41 to 60, 61 and older).

  1. Click Continue and return to the previous dialog box.
  2. Click OK.

McGill LibraryQuestions? Ask us!
Privacy notice