B5. We will next explore patterns of missingness for the CES-D scale score. First, create a missing values indicator variable, which we will call cesdstat. Select Transform ➜ Compute Variable, and enter cesdstat into the slot for Target Variable. Set the new variable equal to 1 by entering the number 1 into the Numeric Expression field, then click OK. Then, click Compute Variable again, enter the number 2 in the Numeric Expression field, and click the If pushbutton. In the next dialog box, click “Include if case satisfies condition,” and then enter the following: cesd 0 AND cesd 60. This will set the value of the new cesdstat variable to 2 for those cases that have a valid value, which is between 0 and 60. Then click Continue and OK. (The values can be labeled by clicking the Variable View tab at the bottom of the screen—for example code 2 could be labeled, Has a CESD score.) Check that this new cesdstat variable has been properly created by running a frequency distribution. How many cases were coded 1 and how many were coded 2? Does this correspond to what you learned in Exercise B4?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here