PSPP for Beginners

Recoding Variables - Same Variables

Recoding can also be done for the same variable. This will change the values of the variable to a new coding scheme.

The original file uses a code of 1 = male and 2 = female. Let's say that we want to change this coding scheme to 0 = male and 1 = female. To make this change select Transform > Recode into Same Variables.

Dialog box for recoding into the same variable. First, move the source variable to the Variables column. Next, enter the new coding scheme.

The first step is to select the variable to be recoded and move it to the Variables field. Next, enter the new coding scheme. This works like the Recode into Different Variables command. This simple example will convert all 1 values to 0 and all 2 values to 1. Click on the "Continue" and "Ok" buttons to make this desired coding change.

Making this change will replace the 1 and 2 values with 0 and 1 values. Be aware that the original data will be lost. Make sure that this new coding scheme is what you really want before performing this command.


Index | Next - Descriptive Statistics

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License that allows sharing, adapting, and remixing.