|
5.5 Try It! Exercises 1. Creating New Variables, Transforming Variables & Adding Verbal Labels For these exercises, you will need to open the example1.sav file that you created in Chapter 2. You will be asked to type in scores on two new variables in this data file:
1. Enter the scores on the two new variables we have added to this file (Figure 5.21).
Assume that these scores represent favorableness of the attitude for computer/hand computation:
Note that before you enter the scores, you should first click the Variable View tab and type in the two variable names (Figure 5.22).
Then click the Data View tab and enter the scores for these two new variables shown in Figure 5.21. 2. Use the Compute Procedure explained in Section 5.2a to compute a new variable (attitudetot) which is the sum of the two new attitude scores:
When you are finished, the Data Editor should display the new attitudetot variable (Figure 5.23).
3. Use the Recode Procedure explained in Section 5.2b to transform the continuous variable, courses, into a new dichotomous variable, experience, with two categories. Use these recoding rules:
To perform this transformation, select Transform, Recode, Into Different Variables from the Data Editor menu. A Recode into Different Variables dialog window will appear. Do the following:
The Old and New Values dialog window will appear. Do the following:
Last, click the OK button in the Recode into Different Variables dialog window. When you are done the Data Editor window should show the new categorical experience variable with scores of either 1 or 2 (Figure 5.24).
4. Add a descriptive Variable Label and Value Labels for the new experience variable using the procedures explained in Section 5.3b. First click the Variable View tab in the Data Editor.
A Value Labels dialog window will appear. To add the labels:
When you are finished, the Data Editor window should look like the one in Figure 5.25
5. Click the Data View tab, then save and print this file to submit to your instructor. |