Javatpoint Logo
Javatpoint Logo

Recode into Different Variable in SPSS

In this section, we will learn Recode into Same or Different variables in SPSS using the Recode function. We are currently using recode into different variable options because we want to preserve my original data set. So first we need clear about our problem. In this case, this is the data set about the personality, and we want to find out the total personality score. The purpose of the total is that it should give us the desirable personality characteristics at the workplace, which means the person should be high on Extroversion and high on Stability. We have a scale that measures Extroversion and Stability, which also contains their opposite sides, i.e., Introversion and instability. So Extroversion items have been marked by E, and Introversion items have been marked by I. Stability items have been marked by S and instability items have been marked by N. N stands for Neuroticism, which reflects the extent of instability in the personality of the individuals.

Recode into Different Variable in SPSS

For doing total, we need to reverse score all those items which have been marked by the asterisk, and we called them negatively worded items. A high score on this Scale reflects high Extroversion and high stable personality trades, so overall desirable personality trades at the workplace. To do that first, we need to clear about those items which need to be reverse scored. In this case, we have already marked all those items through an asterisk at the end. It is the standard practice in the psychometrics or research methods. So the questions that need to be reverse scored are questions no 1, 3, 7, 11, and 13.

Recode into Different Variable in SPSS

Now we go to the Transform menu and create Recode into Different Variables. We are already clear about what are the items that need to be reverse scored so we can send all those items under the Input Variables Output Variables, as shown below.

Recode into Different Variable in SPSS

We can send all those items in one go and reverse score them in one go, or we can send them one by one and reverse score them one by one. So we will not send them one by one just to save time. We will send all of them in one go. So we will click on ctrl and select only all those items which we want to send. So we will send question no 1, 3, 7, 11, and 13 in the right-hand side box, and then we will do the reverse scoring.

Recode into Different Variable in SPSS

Since we have chosen, Recode into different variables. Now we have to define the Output variable name as well. For the sake of consistency, we are creating new variables by appending R at the end where R stands for a reverse score or recoded. So we will write variable no 1 Q1_NR in the Name section, and then we need to click on Change as follows:

Recode into Different Variable in SPSS

Now we will write variable Q3_NR, and then we will click on Change.

Recode into Different Variable in SPSS

Similarly, we will write Q7_IR, Q11_IR, Q13_R, and then click on the Change option.

Recode into Different Variable in SPSS

All the new output labels and variables names have been given. So once we have given name to all the output variables, and we have appended R at the end. We can do anything else, depending upon our convenience. The next step is to define the Old and New values. So we need to click on the Old and New values option as follows:

Recode into Different Variable in SPSS

Once we click on this, we will see a dialog box. Here we will define what has been the old and what are the desirable new values.

Recode into Different Variable in SPSS

For defining old and new values, we need to understand the Scale. The Scale is given below:

Recode into Different Variable in SPSS

In this, we measure personality trades based on some statements. Responses are varying from Strongly disagree to Strongly agree. Suppose we convert this item I often feel sad. This is a negatively worded item, but we want to measure the overall scale as reflecting the positive personality trades. So we need just to reverse the score. For example, if somebody says that He often feels sad and gives a rating of 7, it means the person is very moody. He is falling in the Neurotic category. If our focus is on positive or desirable personality trades and gives a high rating on this item, he should get a corresponding low rating for this item. So if he gives 7, he should be given a score of 1. If he rates himself as 6, he should be given a score of 2. If he rates himself as 5, he should be given a score of 3. Since 4 is the midpoint, so there will not be any change.

So we know that our old ratings are 1 to 7. Where 1 stands for Strongly disagree and 7 stands for Strongly agree. The new rating would be 7 converted to 1, 6 converted to 2, 5 converted to 3, and 4 no change. Now we will enter these values in SPSS. So if the old value is 1, the new value is 7. Then click on Add like this:

Recode into Different Variable in SPSS

If the old value is 2, the new value is 6. Then click on Add. If the old value is 3, the new value is 5. Then click on add. If the old value is 4, the new value will remain 4. Then click Add.

Recode into Different Variable in SPSS

If it is 5, the new value will be 3. If it is 6, the new value will be 2. If it is 7, the new value will be 1. We will click on the Add button while defining old and new values.

Recode into Different Variable in SPSS

If we say we are not moody at all, it means it is desirable. We will be given a higher rating, or our ratings will be shifted because that what we desire. The person should not be moody. But if we rate ourselves very high on being moody, it means this is undesirable, and we will get a low score. The low score is 1, so 7 is given to 1. The rest has been changed accordingly. Once we have done this, click on Continue, and then press Ok like this:

Recode into Different Variable in SPSS

Once we have press Ok, we can see the recode function command has been executed.

Recode into Different Variable in SPSS

We can see our Data sets have been populated with these new variables as follows:

Recode into Different Variable in SPSS

When we click on the Data view option, we can see the data sets as follows:

Recode into Different Variable in SPSS

We can see that they are categorical variables. We need to convert that into scale variable because they are basically interval scale variables. After converting, we will look at the rating. For example, if we look at question no 1, the subject no 787 responded 6.

Recode into Different Variable in SPSS

So we are expecting after recode, this must be converted into 2. So in Q1_NR, it has been converted into 2.

Recode into Different Variable in SPSS

Similarly, all other responses for question no 3, 7, 11, 13 have been recorded. Now we can easily add these items for calculating the total score. For that, we just need to go to the Transform menu, Compute variables, and Click on Total.






Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA