lasashouseof.blogg.se

How to recode variables in spss 20
How to recode variables in spss 20












how to recode variables in spss 20

It’s not hard, it just needs to be precise. In the recoding process, we will take each of the old categories and combine them into new categories and give them new codes (numbers).

#How to recode variables in spss 20 code

I think it’s always best to code starting with 0 or 1 (depending on what you’re doing), so here I would start with one. I like to go back to the GSS data explorer site to see this, but in SPSS you can go to ANALYZE – REPORTS – CODEBOOK and look up your variable. With a categorical variable (nominal or ordinal), the first step of recoding is to look at how the variable is coded (numbers assigned to the categories) to begin with.

how to recode variables in spss 20

Let’s take a look at the variable “denom16” – denomination in which r was raised. In variable view, you can go in an assign labels to the numbers (i.e., 1 is labeled 18-24, 2 is labeled 25-34, etc.).Īnother example might be a categorical variable that has too many categories and you would like to combine some of the categories that are similar to create a variable with fewer categories. Your new recoded variable will then be at the bottom of the variable list. Old value: 98, 99 New Value: system missing (I would call it “ager” and label it “recode of age into categories.”) When you recode a numeric (interval/ratio) variable, you are telling it what the original numbers are and how you want to code (assign numbers to) the new categories.Ĭlick on Old and New Values. I would recode it like this: Under Output Variable, you will give your new recoded variable a name and label, and click Change. On the left-hand side, click on the variable “age of respondent ” and move it over to the right. Click on Transform – Recode into different variable. To perform a recode in SPSS, after you have imported in the GSS data file, you use the TRANFORM function. Here’s one way age is typically categorized: Let’s say you want to group ages into categories. For example, take the variable “age” (age of respondent) for which participants answer with their numeric age. Recoding allows you to take numeric variables and group the responses into categories or take the responses to categorical variables and group them into fewer categories. You will have completed most of the steps for Assignment 1 in Discussions 1 and 2.














How to recode variables in spss 20