Create value labels in SPSS

Page 1

Table of Contents Creating Value Labels for Categorical Variables in SPSS ............................................. 2 Additional Resources.................................................................................................. 5

Created by ASK (2012)

Page 1 of 5


Creating Value Labels for Categorical Variables Example Q1 from a questionnaire asks: “How strongly do you agree with the following statement?” “I am satisfied with my current job” Strongly Disagree Disagree Neutral Agree Strongly Agree This is an ordinal variable which needs to be coded before entering the responses into SPSS. In the example below the responses have been coded from 1 to 5, where 1 = Strongly Disagree and 5= Strongly Agree. These numerical values will be assigned value labels in SPSS. 1. From Variable View, click

from the Values column for the variable of interest (Figure 1).

Figure 1. Value Labels dialogue box in SPSS.

Figure 2. Entering Values and Labels via the Value Labels dialogue box. Created by ASK (2012)

Page 2 of 5


2. Define the value of the labels for the variable via the Value Labels dialogue box (Figure 2). Enter your first value (e.g., 1), as the Value. Enter what that value represents (e.g., Strongly Disagree) as the Label. Then click Add. 3. Repeat step 2 until you have labelled all your values (Figure 3). Then click OK.

Figure 3. All values have been labelled. 4. From Variable View you will see that the variable now has value labels (Figure 4).

Figure 4. Variable View after value labels have been added. 5. Figure 5 shows what the variable will look like from the Data View. You can choose to either view the numerical values or the value labels via the

Created by ASK (2012)

icon as shown in Figure 5.

Page 3 of 5


Click to show labels or numerical values

Figure 5. Q1_JobSatis from Data View with values shown and with labels shown.

Created by ASK (2012)

Page 4 of 5


Additional Resources In the Getting Started folder under the SPSS resources section, you may be interested in the following: 1. How to code categorical variables 2. How to enter and define variables 3. How to enter your data into SPSS 4. Levels of Measurement (nominal, ordinal and scale variables) Are you entering data from a questionnaire? If so you will need to code your categorical variables before entering your data (refer to the first resource listed above) * If you are unsure about which variables are categorical (nominal or ordinal), have a look at the Levels of Measurement guide mentioned above.

Return to the top

Created by ASK (2012)

Page 5 of 5


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.