* DERIVED VARIABLE CODE for the 2008-2009 ANES Panel Study September 2010 release. * * Purpose: to construct the ANES Panel Study release file derived variables. * Written by: ANES staff. * Status: final; excepted from full 16-step file-build program. * Date: September 2, 2010. * * This code is provdied for reference to show how the derived variables were created. * * The SPSS code in this file was run by ANES staff as part of a much larger SPSS program that * cleaned and formatted the raw survey data to create the public-use ANES data file. * After steps to merge data from all waves, select cases and variables for release, rescale * and adjust the weights, and make other corrections, the following code was executed to create * the derived variables on the public-use file. * * The code here was executed before other steps that recoded restricted-use data and adjusted * names, labels, and formats. ****************** *** SEX: der01 *** ******************. *sex at recruitment. recode rgenderr (sysmis=-9) (else=copy) into recsex. var lab recsex 'R gender at recruitment'. val lab recsex 1 'male' 2 'female' -9 'did not complete recruitment survey'. *sex at profile. recode CP_yourself_gender (sysmis=-9) (else=copy) into profsex. var lab profsex 'R gender at core profile survey'. val lab profsex 1 'male' 2 'female' -9 'did not complete profile survey' -1 'refused'. *sex at wave 1. recode W1Y2 (sysmis=-9) (else=copy) into w1sex. var lab w1sex 'R gender at wave 1'. val lab w1sex 1 'male' 2 'female' -9 'did not start wave 1' -7 'No answer' -2 'Error flag' -1 'Inapplicable, legitimate skip'. *sex at wave 2. recode W2W2 (sysmis=-9) (else=copy) into w2sex. var lab w2sex 'R gender at wave 2'. val lab w2sex 1 'male' 2 'female' -9 'did not start wave 2' -7 'No answer' -2 'Error flag' -1 'Inapplicable, legitimate skip'. *sex at wave 9. recode W9ZW2 (sysmis=-9) (else=copy) into w9sex. var lab w9sex 'R gender at wave 9'. val lab w9sex 1 'male' 2 'female' -9 'did not start wave 9' -7 'No answer' -2 'Error flag' -1 'Inapplicable, legitimate skip'. *sex at wave 10. recode W10ZW2 (sysmis=-9) (else=copy) into w10sex. var lab w10sex 'R gender at wave 10'. val lab w10sex 1 'male' 2 'female' -9 'did not start wave 10' -7 'No answer' -2 'Error flag' -1 'Inapplicable, legitimate skip'. *compute der01. compute der01 = profsex. do if profsex <1 and w1sex >0. compute der01 = w1sex. else if profsex <1 and w1sex <0 and w2sex > 0. compute der01 = w2sex. else if profsex <1 and w1sex <0 and w2sex <0 and w9sex >0. compute der01 = w9sex. else if profsex <1 and w1sex <0 and w2sex <0 and w9sex <0 and w10sex > 0. compute der01 = w10sex. else if profsex <1 and w1sex <0 and w2sex <0 and w9sex <0 and w10sex < 0 and recsex > 0. compute der01 = recsex. end if. val lab der01 1 '1. Male' 2 '2. Female' -9 'not asked profile questions'. var lab der01 'der01. DERIVED. R gender' . *missing values der01 (-9 thru -1). formats der01 (f2). fre der01. ********************************* *** AGE - REVISED CODE FOR der02* *********************************. compute bmonth=-1. compute byear=-1. compute bday=-1. missing values byear (-1). recode W1Y3A_month (convert) into w1y3a_m. recode W1Y3A_day (convert) into w1y3a_d. recode W1Y3A_year (convert) into w1y3a_y. recode w1y3a_m w1y3a_d w1y3a_y (sysmis=-1) (else=copy). *fre w1y3a_m w1y3a_d w1y3a_y. recode CP_Q11_day (sysmis=-1) (else=copy) into bday. if (bday=-1 and w1y3a_d ge 1) bday = w1y3a_d. recode CP_Q11_month (sysmis=-1) (else=copy) into bmonth. if (bmonth=-1 and w1y3a_m ge 1) bmonth = w1y3a_m. if rager ge 1 byear=2008- rager. if W10ZW3 ge 1900 byear = W10ZW3. if W9ZW3 ge 1900 byear=W9ZW3. if W2W3 ge 1900 byear=W2W3. if W1PRE1 ge 1900 byear=W1PRE1. * adjust for anomaly in CP_11_year with birth year 1919 by setting those to missing. recode CP_Q11_year (19=-4) (else=copy). * fre CP_Q11_year. if w1y3a_y ge 1 byear = 1900 + w1y3a_y. if CP_Q11_year ge 1 byear = 1900 + CP_Q11_year. set seed=44. compute bmonth_f=0. compute bday_f=0. do if bmonth=-1. compute bmonth=rv.uniform(1,12). compute bmonth_f=1. end if. compute bmonth=trunc(bmonth). do if bmonth=11 and bday=-1. compute bday=rv.uniform(1,30). compute bday_f=1. end if. compute bday=trunc(bday). var lab bday_f 'Imputation flag: bday'. var lab bmonth_f 'Imputation flag: bmonth'. value labels bday_f 0 'not imputed' 1 'imputed'. value labels bmonth_f 0 'not imputed' 1 'imputed'. compute age=2008-byear. if bmonth=12 or (bmonth=11 and bday ge 5) age=age-1. if byear=1990 age=18. compute der02=age. recode der02 (96=90) (98=90) (101=90) (else=copy). variable labels der02 'der02. DERIVED. R age on election day 2008'. value labels der02 90 '90 90 years or older'. formats der02 (f2). fre der02. ************************************************ *** der03 & der04 [ETHNICITY & RACE/ETHNICITY*** ************************************************. **race/ethnicity at recruitment IW. recode rhisp rracewhite rraceblack (sysmis=-6) (else=copy) into rhisp_wk rracewhite_wk rraceblack_wk. execute. *frequencies vars = rhisp_wk rracewhite_wk rraceblack_wk. do if rhisp_wk > 1 and rracewhite_wk = 1. compute racethrec = 1. else if rhisp_wk > 1 and rraceblack_wk = 1. compute racethrec = 2. else if rhisp_wk = 1. compute racethrec = 3. else if rhisp_wk = -6 and rracewhite_wk = -6 and rraceblack_wk = -6. compute racethrec = -6. else. compute racethrec = 4. end if. var lab racethrec 'race and ethnicity at recruitment'. val lab racethrec 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic' -6 'Not asked, unit non response'. frequencies vars = racethrec. **race/ethnicity at profile survey. recode CP_Q13 (1=0) (2 thru 8 = 1) (sysmis = -6) (else = copy) into cp_hisp. execute. recode CP_Q14_01 CP_Q14_02 CP_Q14_03 CP_Q14_04 CP_Q14_05 CP_Q14_06 CP_Q14_07 CP_Q14_08 CP_Q14_09 CP_Q14_10 CP_Q14_11 CP_Q14_12 CP_Q14_13 CP_Q14_14 CP_Q14_15 CP_Q14_16 (sysmis = -6) (else =copy) into cpq1401 cpq1402 cpq1403 cpq1404 cpq1405 cpq1406 cpq1407 cpq1408 cpq1409 cpq1410 cpq1411 cpq1412 cpq1413 cpq1414 cpq1415 cpq1416. execute. do if cp_hisp <= 0 and cpq1401 = 1. compute racethcp = 1. else if cp_hisp <= 0 and cpq1402 = 1. compute racethcp = 2. else if cp_hisp = 1. compute racethcp = 3. else if cpq1403 = 1 or cpq1404 = 1 or cpq1405 = 1 or cpq1406 = 1 or cpq1407 = 1 or cpq1408 = 1 or cpq1409 = 1 or cpq1410 =1 or cpq1411 = 1 or cpq1412 = 1 or cpq1413 = 1 or cpq1414 = 1 or cpq1415 = 1. compute racethcp = 4. else if cpq1416 = 1. compute racethcp = -9. else if cp_hisp = -6 and cpq1401 = -6 and cpq1402 = -6 and cpq1403 = -6 and cpq1404 = -6 and cpq1405 = -6 and cpq1406 = -6 and cpq1407 =-6 and cpq1408 = -6 and cpq1409 = -6 and cpq1410 = -6 and cpq1411 = -6 and cpq1412 = -6 and cpq1413 = -6 and cpq1414 = -6 and cpq1415 = -6 and cpq1416 = -6. compute racethcp = -6. else if cp_hisp = -5 and cpq1401 = -5 and cpq1402 = -5 and cpq1403 = -5 and cpq1404 = -5 and cpq1405 = -5 and cpq1406 = -5 and cpq1407 =-5 and cpq1408 = -5 and cpq1409 = -5 and cpq1410 = -5 and cpq1411 = -5 and cpq1412 = -5 and cpq1413 = -5 and cpq1414 = -5 and cpq1415 = -5 and cpq1416 = -5. compute racethcp = -5. else if cp_hisp = -2 and cpq1401 = -2 and cpq1402 = -2 and cpq1403 = -2 and cpq1404 = -2 and cpq1405 = -2 and cpq1406 = -2 and cpq1407 =-2 and cpq1408 = -2 and cpq1409 = -2 and cpq1410 = -2 and cpq1411 = -2 and cpq1412 = -2 and cpq1413 = -2 and cpq1414 = -2 and cpq1415 = -2 and cpq1416 = -2. compute racethcp = -4. else if cp_hisp = -1 and cpq1401 = -1 and cpq1402 = -1 and cpq1403 = -1 and cpq1404 = -1 and cpq1405 = -1 and cpq1406 = -1 and cpq1407 =-1 and cpq1408 = -1 and cpq1409 = -1 and cpq1410 = -1 and cpq1411 = -1 and cpq1412 = -1 and cpq1413 = -1 and cpq1414 = -1 and cpq1415 = -1 and cpq1416 = -1. compute racethcp = -1. else if cp_hisp < 0 and cpq1401 < 0 and cpq1402 < 0 and cpq1403 < 0 and cpq1404 < 0 and cpq1405 < 0 and cpq1406 < 0 and cpq1407 < 0 and cpq1408 < 0 and cpq1409 < 0 and cpq1410 < 0 and cpq1411 < 0 and cpq1412 < 0 and cpq1413 < 0 and cpq1414 < 0 and cpq1415 < 0 and cpq1416 < 0. compute racethcp = -2. end if. execute. var lab racethcp 'race and ethnicity at profile'. val lab racethcp 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic'. frequencies vars = racethcp. recode W1Y6_1 W1Y6_2 W1Y6_3 W1Y6_4 W1Y6_5 W1Y6_6 W1Y6_7 W1Y6_8 W1Y6_9 W1Y6_10 W1Y6_11 W1Y6_12 W1Y6_13 W1Y6_14 W1Y6_15 (sysmis=-6) (else=copy) into w1y61 w1y62 w1y63 w1y64 w1y65 w1y66 w1y67 w1y68 w1y69 w1y610 w1y611 w1y612 w1y613 w1y614 w1y615. execute. do if w1y61 = 1. compute racethw1 = 1. else if w1y62 = 1. compute racethw1 = 2. else if w1y63 = 1 or w1y64 = 1 or w1y65 = 1 or w1y66 = 1 or w1y67 = 1 or w1y68 = 1 or w1y69 = 1 or w1y610 = 1 or w1y611 = 1 or w1y612 = 1 or w1y613 = 1 or w1y614 = 1 or w1y615 = 1. compute racethw1 = 4. else if w1y61 = 999 and w1y62 = 999 and w1y63 = 999 and w1y64 = 999 and w1y65 = 999 and w1y66 = 999 and w1y67 = 999 and w1y68 = 999 and w1y610 = 999 and w1y611 = 999 and w1y612 = 999 and w1y613 = 999 and w1y614 = 999 and w1y615 = 999. compute racethw1 = -9. else if w1y61 = -7 and w1y62 = -7 and w1y63 = -7 and w1y64 = -7 and w1y65 = -7 and w1y66 = -7 and w1y67 = -7 and w1y68 = -7 and w1y610 = -7 and w1y611 = -7 and w1y612 = -7 and w1y613 = -7 and w1y614 = -7 and w1y615 = -7. compute racethw1 = -7. else if w1y61 = -6 and w1y62 = -6 and w1y63 = -6 and w1y64 = -6 and w1y65 = -6 and w1y66 = -6 and w1y67 = -6 and w1y68 = -6 and w1y610 = -6 and w1y611 = -6 and w1y612 = -6 and w1y613 = -6 and w1y614 = -6 and w1y615 = -6. compute racethw1 = -6. else if w1y61 = -5 and w1y62 = -5 and w1y63 = -5 and w1y64 = -5 and w1y65 = -5 and w1y66 = -5 and w1y67 = -5 and w1y68 = -5 and w1y610 = -5 and w1y611 = -5 and w1y612 = -5 and w1y613 = -5 and w1y614 = -5 and w1y615 = -5. compute racethw1 = -5. else if w1y61 = -2 and w1y62 = -2 and w1y63 = -2 and w1y64 = -2 and w1y65 = -2 and w1y66 = -2 and w1y67 = -2 and w1y68 = -2 and w1y610 = -2 and w1y611 = -2 and w1y612 = -2 and w1y613 = -2 and w1y614 = -2 and w1y615 = -2. compute racethw1 = -4. else if w1y61 = -1 and w1y62 = -1 and w1y63 = -1 and w1y64 = -1 and w1y65 = -1 and w1y66 = -1 and w1y67 = -1 and w1y68 = -1 and w1y610 = -1 and w1y611 = -1 and w1y612 = -1 and w1y613 = -1 and w1y614 = -1 and w1y615 = -1. compute racethw1 = -1. else if w1y61 < 0 and w1y62 < 0 and w1y63 < 0 and w1y64 < 0 and w1y65 < 0 and w1y66 < 0 and w1y67 < 0 and w1y68 < 0 and w1y610 < 0 and w1y611 < 0 and w1y612 < 0 and w1y613 < 0 and w1y614 < 0 and w1y615 < 0. compute racethw1 = -2. end if. execute. var lab racethw1 'race and ethnicity at w1'. val lab racethw1 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic'. frequencies vars = racethw1. recode W2W6 (1=0) (2 thru 8 = 1) (sysmis = -6) (else = copy) into w2_hisp. execute. recode W2W7_1 W2W7_2 W2W7_3 W2W7_4 W2W7_5 W2W7_6 W2W7_7 W2W7_8 W2W7_9 W2W7_10 W2W7_11 W2W7_12 W2W7_13 W2W7_14 W2W7_15 (sysmis=-6) (else=copy) into w2w71 w2w72 w2w73 w2w74 w2w75 w2w76 w2w77 w2w78 w2w79 w2w710 w2w711 w2w712 w2w713 w2w714 w2w715. execute. do if w2_hisp <= 0 and w2w71 = 1. compute racethw2 = 1. else if w2_hisp <= 0 and w2w72 = 1. compute racethw2 = 2. else if w2_hisp = 1. compute racethw2 = 3. else if w2w73 = 1 or w2w74 = 1 or w2w75 = 1 or w2w76 = 1 or w2w77 = 1 or w2w78 = 1 or w2w79 = 1 or w2w710 =1 or w2w711 = 1 or w2w712 = 1 or w2w713 = 1 or w2w714 = 1 or w2w715 = 1. compute racethw2 = 4. else if w2_hisp = -7 and w2w71 = -7 and w2w72 = -7 and w2w73 = -7 and w2w74 = -7 and w2w75 = -7 and w2w76 = -7 and w2w77 = -7 and w2w78 = -7 and w2w710 = -7 and w2w711 = -7 and w2w712 = -7 and w2w713 = -7 and w2w714 = -7 and w2w715 = -7. compute racethw2 = -7. else if w2_hisp = -6 and w2w71 = -6 and w2w72 = -6 and w2w73 = -6 and w2w74 = -6 and w2w75 = -6 and w2w76 = -6 and w2w77 = -6 and w2w78 = -6 and w2w710 = -6 and w2w711 = -6 and w2w712 = -6 and w2w713 = -6 and w2w714 = -6 and w2w715 = -6. compute racethw2 = -6. else if w2_hisp = -5 and w2w71 = -5 and w2w72 = -5 and w2w73 = -5 and w2w74 = -5 and w2w75 = -5 and w2w76 = -5 and w2w77 = -5 and w2w78 = -5 and w2w710 = -5 and w2w711 = -5 and w2w712 = -5 and w2w713 = -5 and w2w714 = -5 and w2w715 = -5. compute racethw2 = -5. else if w2_hisp = -2 and w2w71 = -2 and w2w72 = -2 and w2w73 = -2 and w2w74 = -2 and w2w75 = -2 and w2w76 = -2 and w2w77 = -2 and w2w78 = -2 and w2w710 = -2 and w2w711 = -2 and w2w712 = -2 and w2w713 = -2 and w2w714 = -2 and w2w715 = -2. compute racethw2 = -4. else if w2_hisp = -1 and w2w71 = -1 and w2w72 = -1 and w2w73 = -1 and w2w74 = -1 and w2w75 = -1 and w2w76 = -1 and w2w77 = -1 and w2w78 = -1 and w2w710 = -1 and w2w711 = -1 and w2w712 = -1 and w2w713 = -1 and w2w714 = -1 and w2w715 = -1. compute racethw2 = -1. else if w2_hisp < 0 and w2w71 < 0 and w2w72 < 0 and w2w73 < 0 and w2w74 < 0 and w2w75 < 0 and w2w76 < 0 and w2w77 < 0 and w2w78 < 0 and w2w710 < 0 and w2w711 < 0 and w2w712 < 0 and w2w713 < 0 and w2w714 < 0 and w2w715 < 0. compute racethw2 = -2. end if. execute. var lab racethw2 'race and ethnicity at w2'. val lab racethw2 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic'. frequencies vars = racethw2. recode W9ZW6 (1=0) (2 thru 8 = 1) (sysmis = -6) (else = copy) into w9_hisp. execute. recode W9ZW7_1 W9ZW7_2 W9ZW7_3 W9ZW7_4 W9ZW7_5 W9ZW7_6 W9ZW7_7 W9ZW7_8 W9ZW7_9 W9ZW7_10 W9ZW7_11 W9ZW7_12 W9ZW7_13 W9ZW7_14 W9ZW7_15 (sysmis=-6) (else=copy) into w9zw71 w9zw72 w9zw73 w9zw74 w9zw75 w9zw76 w9zw77 w9zw78 w9zw79 w9zw710 w9zw711 w9zw712 w9zw713 w9zw714 w9zw715. execute. do if w9_hisp <= 0 and w9zw71 = 1. compute racethw9 = 1. else if w9_hisp <= 0 and w9zw72 = 1. compute racethw9 = 2. else if w9_hisp = 1. compute racethw9 = 3. else if w9zw73 = 1 or w9zw74 = 1 or w9zw75 = 1 or w9zw76 = 1 or w9zw77 = 1 or w9zw78 = 1 or w9zw79 = 1 or w9zw710 =1 or w9zw711 = 1 or w9zw712 = 1 or w9zw713 = 1 or w9zw714 = 1 or w9zw715 = 1. compute racethw9 = 4. else if w9_hisp = 0 and w9zw71 = 0 and w9zw72 = 0 and w9zw73 = 0 and w9zw74 = 0 and w9zw75 = 0 and w9zw76 = 0 and w9zw77 = 0 and w9zw78 = 0 and w9zw710 = 0 and w9zw711 = 0 and w9zw712 = 0 and w9zw713 = 0 and w9zw714 = 0 and w9zw715 = 0. compute racethw9 = 4. else if w9_hisp < 0 and w9zw71 = 0 and w9zw72 = 0 and w9zw73 = 0 and w9zw74 = 0 and w9zw75 = 0 and w9zw76 = 0 and w9zw77 = 0 and w9zw78 = 0 and w9zw710 = 0 and w9zw711 = 0 and w9zw712 = 0 and w9zw713 = 0 and w9zw714 = 0 and w9zw715 = 0. compute racethw9 = 4. else if w9_hisp = -7 and w9zw71 = -7 and w9zw72 = -7 and w9zw73 = -7 and w9zw74 = -7 and w9zw75 = -7 and w9zw76 = -7 and w9zw77 = -7 and w9zw78 = -7 and w9zw710 = -7 and w9zw711 = -7 and w9zw712 = -7 and w9zw713 = -7 and w9zw714 = -7 and w9zw715 = -7. compute racethw9 = -7. else if w9_hisp = -6 and w9zw71 = -6 and w9zw72 = -6 and w9zw73 = -6 and w9zw74 = -6 and w9zw75 = -6 and w9zw76 = -6 and w9zw77 = -6 and w9zw78 = -6 and w9zw710 = -6 and w9zw711 = -6 and w9zw712 = -6 and w9zw713 = -6 and w9zw714 = -6 and w9zw715 = -6. compute racethw9 = -6. else if w9_hisp = -5 and w9zw71 = -5 and w9zw72 = -5 and w9zw73 = -5 and w9zw74 = -5 and w9zw75 = -5 and w9zw76 = -5 and w9zw77 = -5 and w9zw78 = -5 and w9zw710 = -5 and w9zw711 = -5 and w9zw712 = -5 and w9zw713 = -5 and w9zw714 = -5 and w9zw715 = -5. compute racethw9 = -5. else if w9_hisp = -2 and w9zw71 = -2 and w9zw72 = -2 and w9zw73 = -2 and w9zw74 = -2 and w9zw75 = -2 and w9zw76 = -2 and w9zw77 = -2 and w9zw78 = -2 and w9zw710 = -2 and w9zw711 = -2 and w9zw712 = -2 and w9zw713 = -2 and w9zw714 = -2 and w9zw715 = -2. compute racethw9 = -4. else if w9_hisp = -1 and w9zw71 = -1 and w9zw72 = -1 and w9zw73 = -1 and w9zw74 = -1 and w9zw75 = -1 and w9zw76 = -1 and w9zw77 = -1 and w9zw78 = -1 and w9zw710 = -1 and w9zw711 = -1 and w9zw712 = -1 and w9zw713 = -1 and w9zw714 = -1 and w9zw715 = -1. compute racethw9 = -1. else if w9_hisp < 0 and w9zw71 < 0 and w9zw72 < 0 and w9zw73 < 0 and w9zw74 < 0 and w9zw75 < 0 and w9zw76 < 0 and w9zw77 < 0 and w9zw78 < 0 and w9zw710 < 0 and w9zw711 < 0 and w9zw712 < 0 and w9zw713 < 0 and w9zw714 < 0 and w9zw715 < 0. compute racethw9 = -2. end if. execute. var lab racethw9 'race and ethnicity at w9'. val lab racethw9 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic'. frequencies vars = racethw9. recode W10ZW6 (1=0) (2 thru 8 = 1) (sysmis = -6) (else = copy) into w10_hisp. execute. recode W10ZW7_1 W10ZW7_2 W10ZW7_3 W10ZW7_4 W10ZW7_5 W10ZW7_6 W10ZW7_7 W10ZW7_8 W10ZW7_9 W10ZW7_10 W10ZW7_11 W10ZW7_12 W10ZW7_13 W10ZW7_14 W10ZW7_15 (sysmis=-6) (else=copy) into w10zw71 w10zw72 w10zw73 w10zw74 w10zw75 w10zw76 w10zw77 w10zw78 w10zw79 w10zw710 w10zw711 w10zw712 w10zw713 w10zw714 w10zw715. execute. do if w10_hisp <= 0 and w10zw71 = 1. compute racethw10 = 1. else if w10_hisp <= 0 and w10zw72 = 1. compute racethw10 = 2. else if w10_hisp = 1. compute racethw10 = 3. else if w10zw73 = 1 or w10zw74 = 1 or w10zw75 = 1 or w10zw76 = 1 or w10zw77 = 1 or w10zw78 = 1 or w10zw79 = 1 or w10zw710 =1 or w10zw711 = 1 or w10zw712 = 1 or w10zw713 = 1 or w10zw714 = 1 or w10zw715 = 1. compute racethw10 = 4. else if w10_hisp = 0 and w10zw71 = 0 and w10zw72 = 0 and w10zw73 = 0 and w10zw74 = 0 and w10zw75 = 0 and w10zw76 = 0 and w10zw77 = 0 and w10zw78 = 0 and w10zw710 = 0 and w10zw711 = 0 and w10zw712 = 0 and w10zw713 = 0 and w10zw714 = 0 and w10zw715 = 0. compute racethw10 = 4. else if w10_hisp < 0 and w10zw71 = 0 and w10zw72 = 0 and w10zw73 = 0 and w10zw74 = 0 and w10zw75 = 0 and w10zw76 = 0 and w10zw77 = 0 and w10zw78 = 0 and w10zw710 = 0 and w10zw711 = 0 and w10zw712 = 0 and w10zw713 = 0 and w10zw714 = 0 and w10zw715 = 0. compute racethw10 = 4. else if w10_hisp = -7 and w10zw71 = -7 and w10zw72 = -7 and w10zw73 = -7 and w10zw74 = -7 and w10zw75 = -7 and w10zw76 = -7 and w10zw77 = -7 and w10zw78 = -7 and w10zw710 = -7 and w10zw711 = -7 and w10zw712 = -7 and w10zw713 = -7 and w10zw714 = -7 and w10zw715 = -7. compute racethw10 = -7. else if w10_hisp = -6 and w10zw71 = -6 and w10zw72 = -6 and w10zw73 = -6 and w10zw74 = -6 and w10zw75 = -6 and w10zw76 = -6 and w10zw77 = -6 and w10zw78 = -6 and w10zw710 = -6 and w10zw711 = -6 and w10zw712 = -6 and w10zw713 = -6 and w10zw714 = -6 and w10zw715 = -6. compute racethw10 = -6. else if w10_hisp = -5 and w10zw71 = -5 and w10zw72 = -5 and w10zw73 = -5 and w10zw74 = -5 and w10zw75 = -5 and w10zw76 = -5 and w10zw77 = -5 and w10zw78 = -5 and w10zw710 = -5 and w10zw711 = -5 and w10zw712 = -5 and w10zw713 = -5 and w10zw714 = -5 and w10zw715 = -5. compute racethw10 = -5. else if w10_hisp = -2 and w10zw71 = -2 and w10zw72 = -2 and w10zw73 = -2 and w10zw74 = -2 and w10zw75 = -2 and w10zw76 = -2 and w10zw77 = -2 and w10zw78 = -2 and w10zw710 = -2 and w10zw711 = -2 and w10zw712 = -2 and w10zw713 = -2 and w10zw714 = -2 and w10zw715 = -2. compute racethw10 = -4. else if w10_hisp = -1 and w10zw71 = -1 and w10zw72 = -1 and w10zw73 = -1 and w10zw74 = -1 and w10zw75 = -1 and w10zw76 = -1 and w10zw77 = -1 and w10zw78 = -1 and w10zw710 = -1 and w10zw711 = -1 and w10zw712 = -1 and w10zw713 = -1 and w10zw714 = -1 and w10zw715 = -1. compute racethw10 = -1. else if w10_hisp < 0 and w10zw71 < 0 and w10zw72 < 0 and w10zw73 < 0 and w10zw74 < 0 and w10zw75 < 0 and w10zw76 < 0 and w10zw77 < 0 and w10zw78 < 0 and w10zw710 < 0 and w10zw711 < 0 and w10zw712 < 0 and w10zw713 < 0 and w10zw714 < 0 and w10zw715 < 0. compute racethw10 = -2. end if. execute. var lab racethw10 'race and ethnicity at w10'. val lab racethw10 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic'. frequencies vars = racethw10. recode W16Q13 (1=0) (2 thru 8 = 1) (sysmis = -6) (else = copy) into w16_hisp. execute. recode W16Q14_1 W16Q14_2 W16Q14_5 W16Q14_6 W16Q14_7 W16Q14_8 W16Q14_9 W16Q14_10 W16Q14_11 W16Q14_13 W16Q14_14 W16Q14_15 W16Q14_16 W16Q14_18 (sysmis=-6) (else=copy) into w16q141 w16q142 w16q145 w16q146 w16q147 w16q148 w16q149 w16q1410 w16q1411 w16q1413 w16q1414 w16q1415 w16q1416 w16q1418. execute. do if w16_hisp <= 0 and w16q141 = 1. compute racethw16 = 1. else if w16_hisp <= 0 and w16q142 = 1. compute racethw16 = 2. else if w16_hisp = 1. compute racethw16 = 3. else if w16q145 = 1 or w16q146 = 1 or w16q147 = 1 or w16q148 = 1 or w16q149 = 1 or w16q1410 =1 or w16q1411 = 1 or w16q1413 = 1 or w16q1414 = 1 or w16q1415 = 1 or w16q1416 = 1 or w16q1418 = 1. compute racethw16 = 4. else if w16_hisp = 0 and w16q141 = 0 and w16q142 = 0 and w16q145 = 0 and w16q146 = 0 and w16q147 = 0 and w16q148 = 0 and w16q1410 = 0 and w16q1411 = 0 and w16q1413 = 0 and w16q1414 = 0 and w16q1415 = 0 and w16q1416 = 0 and w16q1418 = 0. compute racethw16 = 4. else if w16_hisp < 0 and w16q141 = 0 and w16q142 = 0 and w16q145 = 0 and w16q146 = 0 and w16q147 = 0 and w16q148 = 0 and w16q1410 = 0 and w16q1411 = 0 and w16q1413 = 0 and w16q1414 = 0 and w16q1415 = 0 and w16q1416 = 0 and w16q1418 = 0.. compute racethw16 = 4. else if w16_hisp = -7 and w16q141 = -7 and w16q142 = -7 and w16q145 = -7 and w16q146 = -7 and w16q147 = -7 and w16q148 = -7 and w16q1410 = -7 and w16q1411 = -7 and w16q1413 = -7 and w16q1414 = -7 and w16q1415 = -7 and w16q1416 = -7 and w16q1418 = -7. compute racethw16 = -7. else if w16_hisp = -6 and w16q141 = -6 and w16q142 = -6 and w16q145 = -6 and w16q146 = -6 and w16q147 = -6 and w16q148 = -6 and w16q1410 = -6 and w16q1411 = -6 and w16q1413 = -6 and w16q1414 = -6 and w16q1415 = -6 and w16q1416 = -6 and w16q1418 = -6. compute racethw16 = -6. else if w16_hisp = -5 and w16q141 = -5 and w16q142 = -5 and w16q145 = -5 and w16q146 = -5 and w16q147 = -5 and w16q148 = -5 and w16q1410 = -5 and w16q1411 = -5 and w16q1413 = -5 and w16q1414 = -5 and w16q1415 = -5 and w16q1416 = -5 and w16q1418 = -5. compute racethw16 = -5. else if w16_hisp = -2 and w16q141 = -2 and w16q142 = -2 and w16q145 = -2 and w16q146 = -2 and w16q147 = -2 and w16q148 = -2 and w16q1410 = -2 and w16q1411 = -2 and w16q1413 = -2 and w16q1414 = -2 and w16q1415 = -2 and w16q1416 = -2 and w16q1418 = -2. compute racethw16 = -4. else if w16_hisp = -1 and w16q141 = -1 and w16q142 = -1 and w16q145 = -1 and w16q146 = -1 and w16q147 = -1 and w16q148 = -1 and w16q1410 = -1 and w16q1411 = -1 and w16q1413 = -1 and w16q1414 = -1 and w16q1415 = -1 and w16q1416 = -1 and w16q1418 = -1. compute racethw16 = -1. else if w16_hisp < 0 and w16q141 < 0 and w16q142 < 0 and w16q145 < 0 and w16q146 < 0 and w16q147 < 0 and w16q148 < 0 and w16q1410 < 0 and w16q1411 < 0 and w16q1413 < 0 and w16q1414 < 0 and w16q1415 < 0 and w16q1416 < 0 and w16q1418 < 0. compute racethw16 = -2. end if. execute. var lab racethw16 'race and ethnicity at w16'. val lab racethw16 1 'White, non-Hispanic' 2 'Black, non-Hispanic' 3 'Hispanic' 4 'Other, non-Hispanic'. frequencies vars = racethw16. *****Construct der03. recode rhisp_wk (1=1) (2=0) (3=-9) (else = copy) into rhisp_wk2. execute. do if cp_hisp >= 0. compute der03 = cp_hisp. else if cp_hisp < 0 and w2_hisp >= 0. compute der03 = w2_hisp. else if cp_hisp < 0 and w2_hisp < 0 and w9_hisp >= 0. compute der03 = w9_hisp. else if cp_hisp < 0 and w2_hisp < 0 and w9_hisp < 0 and w10_hisp >= 0. compute der03 = w10_hisp. else if cp_hisp < 0 and w2_hisp < 0 and w9_hisp < 0 and w10_hisp < 0 and w16_hisp >= 0. compute der03 = w16_hisp. else if cp_hisp < 0 and w2_hisp < 0 and w9_hisp < 0 and w10_hisp < 0 and w16_hisp < 0 and rhisp_wk2 >= 0. compute der03 = rhisp_wk2. else if cp_hisp = -9 and w2_hisp = -9 and w9_hisp = -9 and w10_hisp = -9 and w16_hisp = -9 and rhisp_wk2 = -9. compute der03 = -9. else if cp_hisp = -7 and w2_hisp = -7 and w9_hisp = -7 and w10_hisp = -7 and w16_hisp = -7 and rhisp_wk2 = -7. compute der03 = -7. else if cp_hisp = -6 and w2_hisp = -6 and w9_hisp = -6 and w10_hisp = -6 and w16_hisp = -6 and rhisp_wk2 = -6. compute der03 = -6. else if cp_hisp = -5 and w2_hisp = -5 and w9_hisp = -5 and w10_hisp = -5 and w16_hisp = -5 and rhisp_wk2 = -5. compute der03 = -5. else if cp_hisp = -4 and w2_hisp = -4 and w9_hisp = -4 and w10_hisp = -4 and w16_hisp = -4 and rhisp_wk2 = -4. compute der03 = -4. else if cp_hisp = -1 and w2_hisp = -1 and w9_hisp = -1 and w10_hisp = -1 and w16_hisp = -1 and rhisp_wk2 = -1. compute der03 = -1. else if cp_hisp < 0 and w2_hisp < 0 and w9_hisp < 0 and w10_hisp < 0 and w16_hisp < 0 and rhisp_wk2 < 0. compute der03 = -2. end if. execute. formats der03 (f2.0). execute. val lab der03 0 '0. Non-Hispanic' 1 '1. Hispanic' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. execute. var lab der03 'der03. DERIVED. Ethnicity' . execute. frequencies vars = der03. ******Construct der04. do if der03 = 1. compute der04 = 3. else if racethcp > 0. compute der04 = racethcp. else if racethcp < 0 and racethw1 > 0. compute der04 = racethw1. else if racethcp < 0 and racethw1 < 0 and racethw2 > 0. compute der04 = racethw2. else if racethcp < 0 and racethw1 < 0 and racethw2 < 0 and racethw9 > 0. compute der04 = racethw9. else if racethcp < 0 and racethw1 < 0 and racethw2 < 0 and racethw9 < 0 and racethw10 > 0. compute der04 = racethw10. else if racethcp < 0 and racethw1 < 0 and racethw2 < 0 and racethw9 < 0 and racethw10 < 0 and racethw16 > 0. compute der04 = racethw16. else if racethcp < 0 and racethw1 < 0 and racethw2 < 0 and racethw9 < 0 and racethw10 < 0 and racethw16 < 0 and racethrec > 0. compute der04 = racethrec. else if racethcp = -9 and racethw1 = -9 and racethw2 = -9 and racethw9 = -9 and racethw10 = -9 and racethw16 = -9 and racethrec = -9. compute der04 = -9. else if racethcp = -7 and racethw1 = -7 and racethw2 = -7 and racethw9 = -7 and racethw10 = -7 and racethw16 = -7 and racethrec = -7. compute der04 = -7. else if racethcp = -6 and racethw1 = -6 and racethw2 = -6 and racethw9 = -6 and racethw10 = -6 and racethw16 = -6 and racethrec = -6. compute der04 = -6. else if racethcp = -5 and racethw1 = -5 and racethw2 = -5 and racethw9 = -5 and racethw10 = -5 and racethw16 = -5 and racethrec = -5. compute der04 = -5. else if racethcp = -4 and racethw1 = -4 and racethw2 = -4 and racethw9 = -4 and racethw10 = -4 and racethw16 = -4 and racethrec = -4. compute der04 = -4. else if racethcp = -1 and racethw1 = -1 and racethw2 = -1 and racethw9 = -1 and racethw10 = -1 and racethw16 = -1 and racethrec = -1. compute der04 = -1. else if racethcp < 0 and racethw1 < 0 and racethw2 < 0 and racethw9 < 0 and racethw10 < 0 and racethw16 < 0 and racethrec < 0. compute der04 = -2. end if. execute. formats der04 (f2.0). execute. variable labels der04 'der04. DERIVED. R race/ethnicity'. value labels der04 1 '1. White, non-Hispanic' 2 '2. Black, non-Hispanic' 3 '3. Hispanic' 4 '4. Other, non-Hispanic' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. fre der04. ******************************************. *** EDUCATION: der05 *** . ******************************************. missing values CP_Q15 W1Y5 W2W5 W9ZW5 W10ZW5 W16Q15 (). *education at core profile survey. recode CP_Q15 (1 THRU 8 = 1) (9 = 2) (10 = 3) (11=3) (12=4) (13 THRU 14 = 5) (SYSMIS = -6) (else = copy) into profed. var lab profed 'education at profile survey'. val lab profed 1 'No high school diploma' 2 'High school diploma' 3 "Some college, no bachelor's degree" 4 "Bachelor's degree" 5 'Graduate degree'. *education at wave 1. recode W1Y5 (1 THRU 8 = 1) (9 = 2) (10 = 3) (11=3) (12=4) (13 THRU 14 = 5) (SYSMIS = -6) (else=copy) into w1ed. var lab w1ed 'education at wave 1'. val lab w1ed 1 'No high school diploma' 2 'High school diploma' 3 "Some college, no bachelor's degree" 4 "Bachelor's degree" 5 'Graduate degree'. *education at wave 2. recode W2W5 (1 THRU 8 = 1) (9 = 2) (10 = 3) (11=3) (12=4) (13 THRU 14 = 5) (SYSMIS = -6) (else=copy) into w2ed. var lab w2ed 'education at wave 2'. val lab w2ed 1 'No high school diploma' 2 'High school diploma' 3 "Some college, no bachelor's degree" 4 "Bachelor's degree" 5 'Graduate degree'. *education at wave 9. recode W9ZW5 (1 THRU 8 = 1) (9 = 2) (10 = 3) (11=3) (12=4) (13 THRU 14 = 5) (SYSMIS = -6) (else=copy) into w9ed. var lab w9ed 'education at wave 9'. val lab w9ed 1 'No high school diploma' 2 'High school diploma' 3 "Some college, no bachelor's degree" 4 "Bachelor's degree" 5 'Graduate degree'. *education at wave 10. recode W10ZW5 (1 THRU 8 = 1) (9 = 2) (10 = 3) (11=3) (12=4) (13 THRU 14 = 5) (SYSMIS = -6) (else=copy) into w10ed. var lab w10ed 'education at wave 10'. val lab w10ed 1 'No high school diploma' 2 'High school diploma' 3 "Some college, no bachelor's degree" 4 "Bachelor's degree" 5 'Graduate degree'. *education at wave 16. recode W16Q15 (1 THRU 8 = 1) (9 = 2) (10 = 3) (11=3) (12=4) (13 THRU 14 = 5) (SYSMIS = -6) (else=copy) into w16ed. var lab w16ed 'education at wave 16'. val lab w16ed 1 'No high school diploma' 2 'High school diploma' 3 "Some college, no bachelor's degree" 4 "Bachelor's degree" 5 'Graduate degree'. frequencies vars = profed to w16ed. *compute der05. compute der05 = profed. do if profed < 0 and w1ed > 0. compute der05 = w1ed. else if profed < 0 and w1ed < 0 and w2ed > 0. compute der05 = w2ed. else if profed < 0 and w1ed < 0 and w2ed < 0 and w9ed > 0. compute der05 = w9ed. else if profed < 0 and w1ed < 0 and w2ed < 0 and w9ed < 0 and w10ed > 0. compute der05 = w10ed. else if profed < 0 and w1ed < 0 and w2ed < 0 and w9ed < 0 and w10ed < 0 and w16ed > 0. compute der05 = w16ed. else if profed = -7 and w1ed = -7 and w2ed = -7 and w9ed = -7 and w10ed = -7 and w16ed = -7. compute der05 = -7. else if profed = -6 and w1ed = -6 and w2ed = -6 and w9ed = -6 and w10ed = -6 and w16ed = -6. compute der05 = -6. else if profed = -5 and w1ed = -5 and w2ed = -5 and w9ed = -5 and w10ed = -5 and w16ed = -5. compute der05 = -5. else if profed = -1 and w1ed = -1 and w2ed = -1 and w9ed = -1 and w10ed = -1 and w16ed = -1. compute der05 = -1. else if profed < 0 and w1ed < 0 and w2ed < 0 and w9ed < 0 and w10ed < 0 and w16ed < 0. compute der05 = -2. end if. variable labels der05 'DERIVED. R educational attainment'. value lablabels der05 1 '1. No high school diploma' 2 '2. High school diploma' 3 "3. Some college, no bachelor's degree" 4 "4. Bachelor's degree" 5 '5. Graduate degree' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -3 '-3. Restricted access' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -8 "-8. Don't Know" -9 '-9. Refused' formats der05 (f2.0). execute. frequencies vars = der05. ********************* *** INCOME: der06 *** *********************. *Income at Core Profile (CP). *Eliminate user defined missing values. missing values CP_Q35A CP_Q36 CP_Q36B CP_Q36D CP_Q36E (). execute. *Recode sysmis values. recode CP_Q35A (sysmis = -6) (else = copy) into cpq35awk. execute. *Recode CP_Q36 to match der06 coding scheme. recode CP_Q36 (1=7) (2=8) (3=9) (sysmis = -6) (else = copy) into cpq36wk. execute. value labels cpq36wk 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999". *Recode CP_Q36B to match der06 coding scheme. recode CP_Q36B (1=10) (2=11) (sysmis = -6) (else = copy) into cpq36bwk. execute. value labels cpq36bwk 10 "$35,000 to $39,999" 11 "$40,000 to $49,999". *Recode CP_Q36D to match der06 coding scheme. recode CP_Q36D (1=12) (2=13) (3=14) (4=15) (sysmis = -6) (else = copy) into cpq36dwk. execute. value labels cpq36dwk 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999". *Recode CP_Q36E to match der06 coding scheme. recode CP_Q36E (1=16) (2=17) (3=18) (4=19) (sysmis = -6) (else = copy) into cpq36ewk. execute. value labels cpq36ewk 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". *frequencies cpq35awk cpq36wk cpq36bwk cpq36dwk cpq36ewk. *Create condensed core profile income variable (cpinc). do if cpq35awk > 0. compute cpinc = cpq35awk. else if cpq35awk < 0 and cpq36wk > 0. compute cpinc = cpq36wk. else if cpq35awk < 0 and cpq36wk < 0 and cpq36bwk > 0. compute cpinc = cpq36bwk. else if cpq35awk < 0 and cpq36wk < 0 and cpq36bwk < 0 and cpq36dwk > 0. compute cpinc = cpq36dwk. else if cpq35awk < 0 and cpq36wk < 0 and cpq36bwk < 0 and cpq36dwk < 0 and cpq36ewk > 0. compute cpinc = cpq36ewk. else if cpq35awk = -7 and cpq36wk = -7 and cpq36bwk = -7 and cpq36dwk = -7 and cpq36ewk = -7. compute cpinc = -7. else if cpq35awk = -6 and cpq36wk = -6 and cpq36bwk = -6 and cpq36dwk = -6 and cpq36ewk = -6. compute cpinc = -6. else if cpq35awk = -5 and cpq36wk = -5 and cpq36bwk = -5 and cpq36dwk = -5 and cpq36ewk = -5. compute cpinc = -5. else if cpq35awk = -1 and cpq36wk = -1 and cpq36bwk = -1 and cpq36dwk = -1 and cpq36ewk = -1. compute cpinc = -1. else if cpq35awk < 0 and cpq36wk < 0 and cpq36bwk < 0 and cpq36dwk < 0 and cpq36ewk < 0. compute cpinc = -2. end if. execute. formats cpinc (f2.0). value labels cpinc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = cpinc. *Income at Wave 1 (W1). *Eliminate user defined missing values. missing values W1Y12 W1Y13 W1Y15 W1Y17 W1Y18 (). execute. *Recode sysmis values. recode W1Y12 (sysmis = -6) (else = copy) into w1y12wk. execute. *Recode W1Y13 to match der06 coding scheme. recode W1Y13 (1=7) (2=8) (3=9) (sysmis = -6) (else = copy) into w1y13wk. execute. value labels w1y13wk 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999". *Recode W1Y15 to match der06 coding scheme. recode W1Y15 (1=10) (2=11) (sysmis = -6) (else = copy) into w1y15wk. execute. value labels w1y15wk 10 "$35,000 to $39,999" 11 "$40,000 to $49,999". *Recode W1Y17 to match der06 coding scheme. recode W1Y17 (1=12) (2=13) (3=14) (4=15) (sysmis = -6) (else = copy) into w1y17wk. execute. value labels w1y17wk 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999". *Recode W1Y18 to match der06 coding scheme. recode W1Y18 (1=16) (2=17) (3=18) (4=19) (sysmis = -6) (else = copy) into w1y18wk. execute. value labels w1y18 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". frequencies w1y12wk w1y13wk w1y15wk w1y17wk w1y18wk. *Create condensed Wave 1 income variable (w1inc). do if w1y12wk > 0. compute w1inc = w1y12wk. else if w1y12wk < 0 and w1y13wk > 0. compute w1inc = w1y13wk. else if w1y12wk < 0 and w1y13wk < 0 and w1y15wk > 0. compute w1inc = w1y15wk. else if w1y12wk < 0 and w1y13wk < 0 and w1y15wk < 0 and w1y17wk > 0. compute w1inc = w1y17wk. else if w1y12wk < 0 and w1y13wk < 0 and w1y15wk < 0 and w1y17wk < 0 and w1y18wk > 0. compute w1inc = w1y18wk. else if w1y12wk = -7 and w1y13wk = -7 and w1y15wk = -7 and w1y17wk = -7 and w1y18wk = -7. compute w1inc = -7. else if w1y12wk = -6 and w1y13wk = -6 and w1y15wk = -6 and w1y17wk = -6 and w1y18wk = -6. compute w1inc = -6. else if w1y12wk = -5 and w1y13wk = -5 and w1y15wk = -5 and w1y17wk = -5 and w1y18wk = -5. compute w1inc = -5. else if w1y12wk = -1 and w1y13wk = -1 and w1y15wk = -1 and w1y17wk = -1 and w1y18wk = -1. compute w1inc = -1. else if w1y12wk < 0 and w1y13wk < 0 and w1y15wk < 0 and w1y17wk < 0 and w1y18wk < 0. compute w1inc = -2. end if. execute. formats w1inc (f2.0). value labels w1inc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = w1inc. *Income at Wave 2 (W2). *Eliminate user defined missing values. missing values W2W12 W2W13 W2W15 W2W17 W2W18 (). execute. *Recode sysmis values. recode W2W12 (sysmis = -6) (else = copy) into w2w12wk. execute. *Recode W2W13 to match der06 coding scheme. recode W2W13 (1=7) (2=8) (3=9) (sysmis = -6) (else = copy) into w2w13wk. execute. value labels w2w13wk 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999". *Recode W2W15 to match der06 coding scheme. recode W2W15 (1=10) (2=11) (sysmis = -6) (else = copy) into w2w15wk. execute. value labels w2w15wk 10 "$35,000 to $39,999" 11 "$40,000 to $49,999". *Recode W2W17 to match der06 coding scheme. recode W2W17 (1=12) (2=13) (3=14) (4=15) (sysmis = -6) (else = copy) into w2w17wk. execute. value labels w2w17wk 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999". *Recode W2W18 to match der06 coding scheme. recode W2W18 (1=16) (2=17) (3=18) (4=19) (sysmis = -6) (else = copy) into w2w18wk. execute. value labels w2w18 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". frequencies w2w12wk w2w13wk w2w15wk w2w17wk w2w18wk. *Create condensed Wave 2 income variable (w2inc). do if w2w12wk > 0. compute w2inc = w2w12wk. else if w2w12wk < 0 and w2w13wk > 0. compute w2inc = w2w13wk. else if w2w12wk < 0 and w2w13wk < 0 and w2w15wk > 0. compute w2inc = w2w15wk. else if w2w12wk < 0 and w2w13wk < 0 and w2w15wk < 0 and w2w17wk > 0. compute w2inc = w2w17wk. else if w2w12wk < 0 and w2w13wk < 0 and w2w15wk < 0 and w2w17wk < 0 and w2w18wk > 0. compute w2inc = w2w18wk. else if w2w12wk = -7 and w2w13wk = -7 and w2w15wk = -7 and w2w17wk = -7 and w2w18wk = -7. compute w2inc = -7. else if w2w12wk = -6 and w2w13wk = -6 and w2w15wk = -6 and w2w17wk = -6 and w2w18wk = -6. compute w2inc = -6. else if w2w12wk = -5 and w2w13wk = -5 and w2w15wk = -5 and w2w17wk = -5 and w2w18wk = -5. compute w2inc = -5. else if w2w12wk = -1 and w2w13wk = -1 and w2w15wk = -1 and w2w17wk = -1 and w2w18wk = -1. compute w2inc = -1. else if w2w12wk < 0 and w2w13wk < 0 and w2w15wk < 0 and w2w17wk < 0 and w2w18wk < 0. compute w2inc = -2. end if. execute. formats w2inc (f2.0). value labels w2inc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = w2inc. *Income at Wave 9 (W9). *Eliminate user defined missing values. missing values W9ZW12 W9ZW13 W9ZW15 W9ZW17 W9ZW18 (). execute. *Recode sysmis values. recode W9ZW12 (sysmis = -6) (else = copy) into w9zw12wk. execute. *Recode W9ZW13 to match der06 coding scheme. recode W9ZW13 (1=7) (2=8) (3=9) (sysmis = -6) (else = copy) into w9zw13wk. execute. value labels w9zw13wk 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999". *Recode W9ZW15 to match der06 coding scheme. recode W9ZW15 (1=10) (2=11) (sysmis = -6) (else = copy) into w9zw15wk. execute. value labels w9zw15wk 10 "$35,000 to $39,999" 11 "$40,000 to $49,999". *Recode W9ZW17 to match der06 coding scheme. recode W9ZW17 (1=12) (2=13) (3=14) (4=15) (sysmis = -6) (else = copy) into w9zw17wk. execute. value labels w9zw17wk 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999". *Recode W9ZW18 to match der06 coding scheme. recode W9ZW18 (1=16) (2=17) (3=18) (4=19) (sysmis = -6) (else = copy) into w9zw18wk. execute. value labels w9zw18 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". frequencies w9zw12wk w9zw13wk w9zw15wk w9zw17wk w9zw18wk. *Create condensed Wave 9 income variable (w9inc). do if w9zw12wk > 0. compute w9inc = w9zw12wk. else if w9zw12wk < 0 and w9zw13wk > 0. compute w9inc = w9zw13wk. else if w9zw12wk < 0 and w9zw13wk < 0 and w9zw15wk > 0. compute w9inc = w9zw15wk. else if w9zw12wk < 0 and w9zw13wk < 0 and w9zw15wk < 0 and w9zw17wk > 0. compute w9inc = w9zw17wk. else if w9zw12wk < 0 and w9zw13wk < 0 and w9zw15wk < 0 and w9zw17wk < 0 and w9zw18wk > 0. compute w9inc = w9zw18wk. else if w9zw12wk = -7 and w9zw13wk = -7 and w9zw15wk = -7 and w9zw17wk = -7 and w9zw18wk = -7. compute w9inc = -7. else if w9zw12wk = -6 and w9zw13wk = -6 and w9zw15wk = -6 and w9zw17wk = -6 and w9zw18wk = -6. compute w9inc = -6. else if w9zw12wk = -5 and w9zw13wk = -5 and w9zw15wk = -5 and w9zw17wk = -5 and w9zw18wk = -5. compute w9inc = -5. else if w9zw12wk = -1 and w9zw13wk = -1 and w9zw15wk = -1 and w9zw17wk = -1 and w9zw18wk = -1. compute w9inc = -1. else if w9zw12wk < 0 and w9zw13wk < 0 and w9zw15wk < 0 and w9zw17wk < 0 and w9zw18wk < 0. compute w9inc = -2. end if. execute. formats w9inc (f2.0). value labels w9inc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = w9inc. *Income at Wave 10 (W10). *Eliminate user defined missing values. missing values W10ZW12 W10ZW13 W10ZW15 W10ZW17 W10ZW18 (). execute. *Recode missing values. recode W10ZW12 (sysmis = -6) (else = copy) into w10zw12wk. execute. *Recode W10ZW13 to match der06 coding scheme. recode W10ZW13 (1=7) (2=8) (3=9) (sysmis = -6) (else = copy) into w10zw13wk. execute. value labels w10zw13wk 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999". *Recode W10ZW15 to match der06 coding scheme. recode W10ZW15 (1=10) (2=11) (sysmis = -6) (else = copy) into w10zw15wk. execute. value labels w10zw15wk 10 "$35,000 to $39,999" 11 "$40,000 to $49,999". *Recode W10ZW17 to match der06 coding scheme. recode W10ZW17 (1=12) (2=13) (3=14) (4=15) (sysmis = -6) (else = copy) into w10zw17wk. execute. value labels w10zw17wk 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999". *Recode W10ZW18 to match der06 coding scheme. recode W10ZW18 (1=16) (2=17) (3=18) (4=19) (sysmis = -6) (else = copy) into w10zw18wk. execute. value labels w10zw18 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". frequencies w10zw12wk w10zw13wk w10zw15wk w10zw17wk w10zw18wk. *Create condensed Wave 10 income variable (w10inc). do if w10zw12wk > 0. compute w10inc = w10zw12wk. else if w10zw12wk < 0 and w10zw13wk > 0. compute w10inc = w10zw13wk. else if w10zw12wk < 0 and w10zw13wk < 0 and w10zw15wk > 0. compute w10inc = w10zw15wk. else if w10zw12wk < 0 and w10zw13wk < 0 and w10zw15wk < 0 and w10zw17wk > 0. compute w10inc = w10zw17wk. else if w10zw12wk < 0 and w10zw13wk < 0 and w10zw15wk < 0 and w10zw17wk < 0 and w10zw18wk > 0. compute w10inc = w10zw18wk. else if w10zw12wk = -7 and w10zw13wk = -7 and w10zw15wk = -7 and w10zw17wk = -7 and w10zw18wk = -7. compute w10inc = -7. else if w10zw12wk = -6 and w10zw13wk = -6 and w10zw15wk = -6 and w10zw17wk = -6 and w10zw18wk = -6. compute w10inc = -6. else if w10zw12wk = -5 and w10zw13wk = -5 and w10zw15wk = -5 and w10zw17wk = -5 and w10zw18wk = -5. compute w10inc = -5. else if w10zw12wk = -1 and w10zw13wk = -1 and w10zw15wk = -1 and w10zw17wk = -1 and w10zw18wk = -1. compute w10inc = -1. else if w10zw12wk < 0 and w10zw13wk < 0 and w10zw15wk < 0 and w10zw17wk < 0 and w10zw18wk < 0. compute w10inc = -2. end if. execute. formats w10inc (f2.0). value labels w10inc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = w10inc. *Income at Wave 11 (W11). *Eliminate user defined missing values. missing values W11ZW12 W11ZW13 W11ZW15 W11ZW17 W11ZW18 (). execute. *Recode missing values. recode W11ZW12 (sysmis = -6) (else = copy) into w11zw12wk. execute. *Recode W11ZW13 to match der06 coding scheme. recode W11ZW13 (1=7) (2=8) (3=9) (sysmis = -6) (else = copy) into w11zw13wk. execute. value labels w11zw13wk 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999". *Recode W11ZW15 to match der06 coding scheme. recode W11ZW15 (1=10) (2=11) (sysmis = -6) (else = copy) into w11zw15wk. execute. value labels w11zw15wk 10 "$35,000 to $39,999" 11 "$40,000 to $49,999". *Recode W11ZW17 to match der06 coding scheme. recode W11ZW17 (1=12) (2=13) (3=14) (4=15) (sysmis = -6) (else = copy) into w11zw17wk. execute. value labels w11zw17wk 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999". *Recode W11ZW18 to match der06 coding scheme. recode W11ZW18 (1=16) (2=17) (3=18) (4=19) (sysmis = -6) (else = copy) into w11zw18wk. execute. value labels w11zw18 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". frequencies w11zw12wk w11zw13wk w11zw15wk w11zw17wk w11zw18wk. *Create condensed Wave 11 income variable (w11inc). do if w11zw12wk > 0. compute w11inc = w11zw12wk. else if w11zw12wk < 0 and w11zw13wk > 0. compute w11inc = w11zw13wk. else if w11zw12wk < 0 and w11zw13wk < 0 and w11zw15wk > 0. compute w11inc = w11zw15wk. else if w11zw12wk < 0 and w11zw13wk < 0 and w11zw15wk < 0 and w11zw17wk > 0. compute w11inc = w11zw17wk. else if w11zw12wk < 0 and w11zw13wk < 0 and w11zw15wk < 0 and w11zw17wk < 0 and w11zw18wk > 0. compute w11inc = w11zw18wk. else if w11zw12wk = -7 and w11zw13wk = -7 and w11zw15wk = -7 and w11zw17wk = -7 and w11zw18wk = -7. compute w11inc = -7. else if w11zw12wk = -6 and w11zw13wk = -6 and w11zw15wk = -6 and w11zw17wk = -6 and w11zw18wk = -6. compute w11inc = -6. else if w11zw12wk = -5 and w11zw13wk = -5 and w11zw15wk = -5 and w11zw17wk = -5 and w11zw18wk = -5. compute w11inc = -5. else if w11zw12wk = -1 and w11zw13wk = -1 and w11zw15wk = -1 and w11zw17wk = -1 and w11zw18wk = -1. compute w11inc = -1. else if w11zw12wk < 0 and w11zw13wk < 0 and w11zw15wk < 0 and w11zw17wk < 0 and w11zw18wk < 0. compute w11inc = -2. end if. execute. formats w11inc (f2.0). value labels w11inc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = w11inc. *Income at Wave 16. recode W16Q35 (sysmis=-6) (else=copy) into W16Q35wk. recode W16Q36 (1=10) (2=11) (3=12) (4=13) (5=14) (6=15) (7=16) (8=17) (9=18) (10=19) (sysmis=-6) (else=copy) into W16Q36wk. execute. compute w16inc = W16Q35wk. do if W16Q35wk<0. compute w16inc = W16Q36wk. else if W16Q35wk=-7 and W16Q36wk=-7. compute w16inc =-7. else if W16Q35wk=-6 and W16Q36wk=-6. compute w16inc =-6. else if W16Q35wk=-5 and W16Q36wk=-5. compute w16inc =-5. else if W16Q35wk=-1 and W16Q36wk=-1. compute w16inc =-1. else if W16Q35wk<0 and W16Q36wk<0. compute w16inc =-2. end if. exe. value labels w16inc 1 "less than $5,000" 2 "$5,000 to $7,499" 3 "$7,500 to $9,999" 4 "$10,000 to $12,499" 5 "$12,500 to $14,999" 6 "$15,000 to $19,999" 7 "$20,000 to $24,999" 8 "$25,000 to $29,999" 9 "$30,000 to $34,999" 10 "$35,000 to $39,999" 11 "$40,000 to $49,999" 12 "$50,000 to $59,999" 13 "$60,000 to $74,999" 14 "$75,000 to $84,999" 15 "$85,000 to $99,999" 16 "$100,000 to $124,999" 17 "$125,000 to $149,999" 18 "$150,000 to $174,999" 19 "$175,000 or more". execute. frequencies vars = w16inc. *** Create final derived income variable (der06). do if caseid = 588. compute der06 = -2. else if caseid = 5610. compute der06 = -2. else if caseid = 6513. compute der06 = -2. else if cpinc > 0. compute der06 = cpinc. else if cpinc < 0 and w1inc > 0. compute der06 = w1inc. else if cpinc < 0 and w1inc < 0 and w2inc > 0. compute der06 = w2inc. else if cpinc < 0 and w1inc < 0 and w2inc < 0 and w9inc > 0. compute der06 = w9inc. else if cpinc < 0 and w1inc < 0 and w2inc < 0 and w9inc < 0 and w10inc > 0. compute der06 = w10inc. else if cpinc < 0 and w1inc < 0 and w2inc < 0 and w9inc < 0 and w10inc < 0 and w11inc > 0. compute der06 = w11inc. else if cpinc < 0 and w1inc < 0 and w2inc < 0 and w9inc < 0 and w10inc < 0 and w11inc < 0 and w16inc > 0. compute der06 = w16inc. else if cpinc = -7 and w1inc = -7 and w2inc = -7 and w9inc = -7 and w10inc = -7 and w11inc = -7 and w16inc = -7. compute der06 = -7. else if cpinc = -6 and w1inc = -6 and w2inc = -6 and w9inc = -6 and w10inc = -6 and w11inc = -6 and w16inc = -6. compute der06 = -6. else if cpinc = -5 and w1inc = -5 and w2inc = -5 and w9inc = -5 and w10inc = -5 and w11inc = -5 and w16inc = -5. compute der06 = -5. else if cpinc = -1 and w1inc = -1 and w2inc = -1 and w9inc = -1 and w10inc = -1 and w11inc = -1 and w16inc = -1. compute der06 = -1. else if cpinc < 0 and w1inc < 0 and w2inc < 0 and w9inc < 0 and w10inc < 0 and w11inc < 0 and w16inc < 0. compute der06 = -2. end if. execute. formats der06 (F2). value labels der06 1 "1. less than $5,000" 2 "2. $5,000 to $7,499" 3 "3. $7,500 to $9,999" 4 "4. $10,000 to $12,499" 5 "5. $12,500 to $14,999" 6 "6. $15,000 to $19,999" 7 "7. $20,000 to $24,999" 8 "8. $25,000 to $29,999" 9 "9. $30,000 to $34,999" 10 "10. $35,000 to $39,999" 11 "11. $40,000 to $49,999" 12 "12. $50,000 to $59,999" 13 "13. $60,000 to $74,999" 14 "14. $75,000 to $84,999" 15 "15. $85,000 to $99,999" 16 "16. $100,000 to $124,999" 17 "17. $125,000 to $149,999" 18 "18. $150,000 to $174,999" 19 "19. $175,000 or more" -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. variable labels der06 'DERIVED. Income'. frequencies vars = der06. ***************************** *** HOME OWNERSHIP: der07 *** *****************************. * NB ? there is no recruitment home ownership variable. missing values cp_Q2 W1Y4 W2W4 W9ZW4 W10ZW4 W11ZF1 (). * Home ownership at profile survey. comp cpownhome = cp_Q2. var lab cpownhome 'Home ownership at profile'. val lab cpownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'refused'. *missing values cpownhome (-9 thru -1). * Home ownership at wave 1. comp w1_ownhome = W1Y4. var lab w1_ownhome 'Home ownership at wave 1'. val lab w1_ownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'inapplicable, legitimate skip' -2 'error flag' -7 'no answer'. * Home ownership at wave 2. comp w2_ownhome = W2W4. var lab w2_ownhome 'Home ownership at wave 2'. val lab w2_ownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'inapplicable, legitimate skip' -2 'error flag' -7 'no answer'. * Home ownership at wave 9. comp w9_ownhome = W9ZW4. var lab w9_ownhome 'Home ownership at wave 9'. val lab w9_ownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'inapplicable, legitimate skip' -2 'error flag'. * Home ownership at wave 10. comp w10_ownhome = W10ZW4. var lab w10_ownhome 'Home ownership at wave 10'. val lab w10_ownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'inapplicable, legitimate skip' -2 'error flag' -7 'no answer'. * Home ownership at wave 11. comp w11_ownhome = W11ZF1. var lab w11_ownhome 'Home ownership at wave 11'. val lab w11_ownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'inapplicable, legitimate skip' -2 'error flag' -7 'no answer'. * Home ownership at wave 20. comp w20_ownhome=W20N1. var lab w20_ownhome 'Home ownership at wave 20'. val lab w20_ownhome 1 'Own' 2 'Rent' 3 'Some other arrangement' -1 'inapplicable, legitimate skip' -2 'error flag' -7 'no answer'. *Recode sysmis values in source variables. recode cpownhome w1_ownhome w2_ownhome w9_ownhome w10_ownhome w11_ownhome w20_ownhome (sysmis = -6) (else = copy). execute. frequencies vars = cpownhome to w20_ownhome. * Compute der07: using earliest report. compute der07 = cpownhome. do if cpownhome < 0 and w1_ownhome > 0. compute der07 = w1_ownhome. else if cpownhome < 0 and w1_ownhome < 0 and w2_ownhome > 0. compute der07 = w2_ownhome. else if cpownhome < 0 and w1_ownhome < 0 and w2_ownhome < 0 and w9_ownhome > 0. compute der07 = w9_ownhome. else if cpownhome < 0 and w1_ownhome < 0 and w2_ownhome < 0 and w9_ownhome < 0 and w10_ownhome > 0. compute der07 = w10_ownhome. else if cpownhome < 0 and w1_ownhome < 0 and w2_ownhome < 0 and w9_ownhome < 0 and w10_ownhome < 0 and w11_ownhome > 0. compute der07 = w11_ownhome. else if cpownhome < 0 and w1_ownhome < 0 and w2_ownhome < 0 and w9_ownhome < 0 and w10_ownhome < 0 and w11_ownhome < 0 and w20_ownhome > 0. compute der07 = w20_ownhome. else if cpownhome = -7 and w1_ownhome = -7 and w2_ownhome = -7 and w9_ownhome = -7 and w10_ownhome = -7 and w11_ownhome = -7 and w20_ownhome = -7. compute der07 = -7. else if cpownhome = -6 and w1_ownhome = -6 and w2_ownhome = -6 and w9_ownhome = -6 and w10_ownhome = -6 and w11_ownhome = -6 and w20_ownhome = -6. compute der07 = -6. else if cpownhome = -5 and w1_ownhome = -5 and w2_ownhome = -5 and w9_ownhome = -5 and w10_ownhome = -5 and w11_ownhome = -5 and w20_ownhome = -5. compute der07 = -5. else if cpownhome = -1 and w1_ownhome = -1 and w2_ownhome = -1 and w9_ownhome = -1 and w10_ownhome = -1 and w11_ownhome = -1 and w20_ownhome = -1. compute der07 = -1. else if cpownhome < 0 and w1_ownhome < 0 and w2_ownhome < 0 and w9_ownhome < 0 and w10_ownhome < 0 and w11_ownhome < 0 and w20_ownhome < 0. compute der07 = -2. end if. form der07 (F2). value labels der07 1 '1. R owns home' 2 '2. R rents home' 3 '3. Other arrangement' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. variable labels der07 'DERIVED. Home ownership' . missing values der07 () . exe. fre der07. *********************************************************************. *** PARTY ID: der08W1 der08W9 der08W10 der08W11 der08w17 der08w19 *** *********************************************************************. ***********************************************************. *****RECODE PARTY ID VARS TO CORRECT CODING ERROR. recode W1M1 W9L1 W10L1 W11L1 W17L1 (1=2) (2=1) (else=copy). execute. ***********************************************************. * PID at Wave 1 * Recode SYSMIS in source variables. recode W1M1 W1M3 W1M5 W1M6 (SYSMIS = -6). execute. *frequencies vars = W1M1 W1M3. * Create W1M1ORM3DV. do if W1M1 > 0. compute W1M1ORM3DV = W1M1. else if W1M3 > 0. compute W1M1ORM3DV = W1M3. else if W1M1 = -6 and W1M3 = -6. compute W1M1ORM3DV = -6. else if W1M1 = -5 and W1M3 = -5. compute W1M1ORM3DV = -5. else if W1M1 = -1 and W1M3 = -1. compute W1M1ORM3DV = -1. else if W1M1 = -1 and W1M3 = -7. compute W1M1ORM3DV = -7. else if W1M1 = -7 and W1M3 = -1. compute W1M1ORM3DV = -7. else if W1M1 < 0 and W1M3 < 0. compute W1M1ORM3DV = -2. end if. execute. formats W1M1ORM3DV (F2). execute. *frequencies vars = W1M1ORM3DV. do if W1M1ORM3DV = 1 and W1M5 = 1. compute der08w1 = 0. else if W1M1ORM3DV = 1 and W1M5 = 2. compute der08w1 = 1. else if W1M1ORM3DV = 3 and W1M6 = 2. compute der08w1 = 2. else if W1M1ORM3DV = 4 and W1M6 = 2. compute der08w1 = 2. else if W1M1ORM3DV = 3 and W1M6 = 3. compute der08w1 = 3. else if W1M1ORM3DV = 4 and W1M6 = 3. compute der08w1 = 3. else if W1M1ORM3DV = -7 and W1M5 = -1 and W1M6 = 3. compute der08w1 = 3. else if W1M1ORM3DV = 3 and W1M5 = -1 and W1M6 = -7. compute der08w1 = 3. else if W1M1ORM3DV = 4 and W1M5 = -1 and W1M6 = -7. compute der08w1 = 3. else if W1M1ORM3DV = 3 and W1M6 = 1. compute der08w1 = 4. else if W1M1ORM3DV = 4 and W1M6 = 1. compute der08w1 = 4. else if W1M1ORM3DV = -7 and W1M5 = -1 and W1M6 =1. compute der08w1 = 4. else if W1M1ORM3DV = 2 and W1M5 = 2. compute der08w1 = 5. else if W1M1ORM3DV = 2 and W1M5 = 1. compute der08w1 = 6. else if W1M1ORM3DV = -7 and W1M5 = -1 and W1M6 = -7. compute der08w1 = -7. else if W1M1ORM3DV = -6 and W1M5 = -6 and W1M6 = -6. compute der08w1 = -6. else if W1M1ORM3DV = -5 and W1M5 = -5 and W1M6 = -5. compute der08w1 = -5. else if W1M1ORM3DV = -2 and W1M5 = -2 and W1M6 = -2. compute der08w1 = -4. end if. execute. formats der08w1 (f2.0). execute. *frequencies vars = der08w1. * PID at Wave 9 * Recode SYSMIS in source variables. recode W9L1 W9L3 W9L5 W9L6 (SYSMIS = -6). execute. *frequencies vars = W9L1 W9L3. * Create W9L1ORL3DV. do if W9L1 > 0. compute W9L1ORL3DV = W9L1. else if W9L3 > 0. compute W9L1ORL3DV = W9L3. else if W9L1 = -6 and W9L3 = -6. compute W9L1ORL3DV = -6. else if W9L1 = -5 and W9L3 = -5. compute W9L1ORL3DV = -5. else if W9L1 = -1 and W9L3 = -1. compute W9L1ORL3DV = -1. else if W9L1 = -1 and W9L3 = -7. compute W9L1ORL3DV = -7. else if W9L1 = -7 and W9L3 = -1. compute W9L1ORL3DV = -7. else if W9L1 < 0 and W9L3 < 0. compute W9L1ORL3DV = -2. end if. execute. formats W9L1ORL3DV (F2). execute. do if W9L1ORL3DV = 1 and W9L5 = 1. compute der08w9 = 0. else if W9L1ORL3DV = 1 and W9L5 = 2. compute der08w9 = 1. else if W9L1ORL3DV = 1 and W9L5 = -5 and W9L6 = -6. compute der08w9 = 1. else if W9L1ORL3DV = 3 and W9L6 = 2. compute der08w9 = 2. else if W9L1ORL3DV = 4 and W9L6 = 2. compute der08w9 = 2. else if W9L1ORL3DV = 3 and W9L6 = 3. compute der08w9 = 3. else if W9L1ORL3DV = 4 and W9L6 = 3. compute der08w9 = 3. else if W9L1ORL3DV = -7 and W9L5 = -1 and W9L6 = 3. compute der08w9 = 3. else if W9L1ORL3DV = 3 and W9L5 = -1 and W9L6 = -7. compute der08w9 = 3. else if W9L1ORL3DV = 4 and W9L5 = -1 and W9L6 = -7. compute der08w9 = 3. else if W9L1ORL3DV = 4 and W9L5 = -5 and W9L6 = -5. compute der08w9 = 3. else if W9L1ORL3DV = 3 and W9L6 = 1. compute der08w9 = 4. else if W9L1ORL3DV = 4 and W9L6 = 1. compute der08w9 = 4. else if W9L1ORL3DV = -7 and W9L5 = -1 and W9L6 =1. compute der08w9 = 4. else if W9L1ORL3DV = 2 and W9L5 = 2. compute der08w9 = 5. else if W9L1ORL3DV = 2 and W9L5 = -7 and W9L6 = -1. compute der08w9 = 5. else if W9L1ORL3DV = 2 and W9L5 = 1. compute der08w9 = 6. else if W9L1ORL3DV = -7 and W9L5 = -1 and W9L6 = -7. compute der08w9 = -7. else if W9L1ORL3DV = -6 and W9L5 = -6 and W9L6 = -6. compute der08w9 = -6. else if W9L1ORL3DV = -5 and W9L5 = -5 and W9L6 = -5. compute der08w9 = -5. else if W9L1ORL3DV = -2 and W9L5 = -2 and W9L6 = -2. compute der08w9 = -4. end if. execute. formats der08w9 (f2.0). execute. *frequencies vars = der08w9. * PID at Wave 10 * Recode SYSMIS in source variables. recode W10L1 W10L3 W10L5 W10L6 (SYSMIS = -6). execute. *frequencies vars = W10L1 W10L3. * Create W10L1ORL3DV. do if W10L1 > 0. compute W10L1ORL3DV = W10L1. else if W10L3 > 0. compute W10L1ORL3DV = W10L3. else if W10L1 = -6 and W10L3 = -6. compute W10L1ORL3DV = -6. else if W10L1 = -5 and W10L3 = -5. compute W10L1ORL3DV = -5. else if W10L1 = -1 and W10L3 = -1. compute W10L1ORL3DV = -1. else if W10L1 = -1 and W10L3 = -7. compute W10L1ORL3DV = -7. else if W10L1 = -7 and W10L3 = -1. compute W10L1ORL3DV = -7. else if W10L1 < 0 and W10L3 < 0. compute W10L1ORL3DV = -2. end if. execute. formats W10L1ORL3DV (F2). execute. do if W10L1ORL3DV = 1 and W10L5 = 1. compute der08w10 = 0. else if W10L1ORL3DV = 1 and W10L5 = 2. compute der08w10 = 1. else if W10L1ORL3DV = 1 and W10L5 = -5 and W10L6 = -6. compute der08w10 = 1. else if W10L1ORL3DV = 3 and W10L6 = 2. compute der08w10 = 2. else if W10L1ORL3DV = 4 and W10L6 = 2. compute der08w10 = 2. else if W10L1ORL3DV = -7 and W10L5 = -1 and W10L6 = 2. compute der08w10 = 2. else if W10L1ORL3DV = 3 and W10L6 = 3. compute der08w10 = 3. else if W10L1ORL3DV = 4 and W10L6 = 3. compute der08w10 = 3. else if W10L1ORL3DV = -7 and W10L5 = -1 and W10L6 = 3. compute der08w10 = 3. else if W10L1ORL3DV = 3 and W10L5 = -1 and W10L6 = -7. compute der08w10 = 3. else if W10L1ORL3DV = 4 and W10L5 = -1 and W10L6 = -7. compute der08w10 = 3. else if W10L1ORL3DV = 4 and W10L5 = -5 and W10L6 = -5. compute der08w10 = 3. else if W10L1ORL3DV = 3 and W10L6 = 1. compute der08w10 = 4. else if W10L1ORL3DV = 4 and W10L6 = 1. compute der08w10 = 4. else if W10L1ORL3DV = -7 and W10L5 = -1 and W10L6 =1. compute der08w10 = 4. else if W10L1ORL3DV = 2 and W10L5 = 2. compute der08w10 = 5. else if W10L1ORL3DV = 2 and W10L5 = -7 and W10L6 = -1. compute der08w10 = 5. else if W10L1ORL3DV = 2 and W10L5 = 1. compute der08w10 = 6. else if W10L1ORL3DV = -7 and W10L5 = -1 and W10L6 = -7. compute der08w10 = -7. else if W10L1ORL3DV = -6 and W10L5 = -6 and W10L6 = -6. compute der08w10 = -6. else if W10L1ORL3DV = -5 and W10L5 = -5 and W10L6 = -5. compute der08w10 = -5. else if W10L1ORL3DV = -2 and W10L5 = -2 and W10L6 = -2. compute der08w10 = -4. end if. execute. formats der08w10 (f2.0). execute. *frequencies vars = der08w10. * PID at Wave 11 * Recode SYSMIS in source variables. recode W11L1 W11L3 W11L5 W11L6 (SYSMIS = -6). execute. *frequencies vars = W11L1 W11L3. * Create W11L1ORL3DV. do if W11L1 > 0. compute W11L1ORL3DV = W11L1. else if W11L3 > 0. compute W11L1ORL3DV = W11L3. else if W11L1 = -6 and W11L3 = -6. compute W11L1ORL3DV = -6. else if W11L1 = -5 and W11L3 = -5. compute W11L1ORL3DV = -5. else if W11L1 = -1 and W11L3 = -1. compute W11L1ORL3DV = -1. else if W11L1 = -1 and W11L3 = -7. compute W11L1ORL3DV = -7. else if W11L1 = -7 and W11L3 = -1. compute W11L1ORL3DV = -7. else if W11L1 < 0 and W11L3 < 0. compute W11L1ORL3DV = -2. end if. execute. formats W11L1ORL3DV (F2). execute. do if W11L1ORL3DV = 1 and W11L5 = 1. compute der08w11 = 0. else if W11L1ORL3DV = 1 and W11L5 = 2. compute der08w11 = 1. else if W11L1ORL3DV = 1 and W11L5 = -5 and W11L6 = -6. compute der08w11 = 1. else if W11L1ORL3DV = 3 and W11L6 = 2. compute der08w11 = 2. else if W11L1ORL3DV = 4 and W11L6 = 2. compute der08w11 = 2. else if W11L1ORL3DV = -7 and W11L5 = -1 and W11L6 = 2. compute der08w11 = 2. else if W11L1ORL3DV = 3 and W11L6 = 3. compute der08w11 = 3. else if W11L1ORL3DV = 4 and W11L6 = 3. compute der08w11 = 3. else if W11L1ORL3DV = -7 and W11L5 = -1 and W11L6 = 3. compute der08w11 = 3. else if W11L1ORL3DV = 3 and W11L5 = -1 and W11L6 = -7. compute der08w11 = 3. else if W11L1ORL3DV = 4 and W11L5 = -1 and W11L6 = -7. compute der08w11 = 3. else if W11L1ORL3DV = 4 and W11L5 = -5 and W11L6 = -5. compute der08w11 = 3. else if W11L1ORL3DV = 3 and W11L6 = 1. compute der08w11 = 4. else if W11L1ORL3DV = 4 and W11L6 = 1. compute der08w11 = 4. else if W11L1ORL3DV = -7 and W11L5 = -1 and W11L6 =1. compute der08w11 = 4. else if W11L1ORL3DV = 2 and W11L5 = 2. compute der08w11 = 5. else if W11L1ORL3DV = 2 and W11L5 = -7 and W11L6 = -1. compute der08w11 = 5. else if W11L1ORL3DV = 2 and W11L5 = 1. compute der08w11 = 6. else if W11L1ORL3DV = -7 and W11L5 = -1 and W11L6 = -7. compute der08w11 = -7. else if W11L1ORL3DV = -6 and W11L5 = -6 and W11L6 = -6. compute der08w11 = -6. else if W11L1ORL3DV = -5 and W11L5 = -5 and W11L6 = -5. compute der08w11 = -5. else if W11L1ORL3DV = -2 and W11L5 = -2 and W11L6 = -2. compute der08w11 = -4. end if. execute. formats der08w11 (f2.0). execute. *frequencies vars = der08w11. * PID at Wave 17 * Recode SYSMIS in source variables. recode W17L1 W17L3 W17L5 W17L6 (SYSMIS = -6). execute. *frequencies vars = W17L1 W17L3. * Create W17L1ORL3DV. do if W17L1 > 0. compute W17L1ORL3DV = W17L1. else if W17L3 > 0. compute W17L1ORL3DV = W17L3. else if W17L1 = -6 and W17L3 = -6. compute W17L1ORL3DV = -6. else if W17L1 = -5 and W17L3 = -5. compute W17L1ORL3DV = -5. else if W17L1 = -1 and W17L3 = -1. compute W17L1ORL3DV = -1. else if W17L1 = -1 and W17L3 = -7. compute W17L1ORL3DV = -7. else if W17L1 = -7 and W17L3 = -1. compute W17L1ORL3DV = -7. else if W17L1 < 0 and W17L3 < 0. compute W17L1ORL3DV = -2. end if. execute. formats W17L1ORL3DV (F2). execute. do if W17L1ORL3DV = 1 and W17L5 = 1. compute der08w17 = 0. else if W17L1ORL3DV = 1 and W17L5 = 2. compute der08w17 = 1. else if W17L1ORL3DV = 1 and W17L5 = -5 and W17L6 = -6. compute der08w17 = 1. else if W17L1ORL3DV = 3 and W17L6 = 2. compute der08w17 = 2. else if W17L1ORL3DV = 4 and W17L6 = 2. compute der08w17 = 2. else if W17L1ORL3DV = -7 and W17L5 = -1 and W17L6 = 2. compute der08w17 = 2. else if W17L1ORL3DV = 3 and W17L6 = 3. compute der08w17 = 3. else if W17L1ORL3DV = 4 and W17L6 = 3. compute der08w17 = 3. else if W17L1ORL3DV = -7 and W17L5 = -1 and W17L6 = 3. compute der08w17 = 3. else if W17L1ORL3DV = 3 and W17L5 = -1 and W17L6 = -7. compute der08w17 = 3. else if W17L1ORL3DV = 4 and W17L5 = -1 and W17L6 = -7. compute der08w17 = 3. else if W17L1ORL3DV = 4 and W17L5 = -5 and W17L6 = -5. compute der08w17 = 3. else if W17L1ORL3DV = 3 and W17L6 = 1. compute der08w17 = 4. else if W17L1ORL3DV = 4 and W17L6 = 1. compute der08w17 = 4. else if W17L1ORL3DV = -7 and W17L5 = -1 and W17L6 =1. compute der08w17 = 4. else if W17L1ORL3DV = 2 and W17L5 = 2. compute der08w17 = 5. else if W17L1ORL3DV = 2 and W17L5 = -7 and W17L6 = -1. compute der08w17 = 5. else if W17L1ORL3DV = 2 and W17L5 = 1. compute der08w17 = 6. else if W17L1ORL3DV = -7 and W17L5 = -1 and W17L6 = -7. compute der08w17 = -7. else if W17L1ORL3DV = -6 and W17L5 = -6 and W17L6 = -6. compute der08w17 = -6. else if W17L1ORL3DV = -5 and W17L5 = -5 and W17L6 = -5. compute der08w17 = -5. else if W17L1ORL3DV = -2 and W17L5 = -2 and W17L6 = -2. compute der08w17 = -4. else if W17L1ORL3DV = -7 and W17L5 = -1 and W17L6 = -1. compute der08w17 = -2. end if. execute. formats der08w17 (f2.0). execute. *frequencies vars = der08w17. * PID at Wave 19 * Recode SYSMIS in source variables. recode W19L1 W19L3 W19L5 W19L6 (SYSMIS = -6). execute. *frequencies vars = W19L1 W19L3. * Create W19L1ORL3DV. do if W19L1 > 0. compute W19L1ORL3DV = W19L1. else if W19L3 > 0. compute W19L1ORL3DV = W19L3. else if W19L1 = -6 and W19L3 = -6. compute W19L1ORL3DV = -6. else if W19L1 = -5 and W19L3 = -5. compute W19L1ORL3DV = -5. else if W19L1 = -1 and W19L3 = -1. compute W19L1ORL3DV = -1. else if W19L1 = -1 and W19L3 = -7. compute W19L1ORL3DV = -7. else if W19L1 = -7 and W19L3 = -1. compute W19L1ORL3DV = -7. else if W19L1 < 0 and W19L3 < 0. compute W19L1ORL3DV = -2. end if. execute. formats W19L1ORL3DV (F2). execute. do if W19L1ORL3DV = 1 and W19L5 = 1. compute der08w19 = 0. else if W19L1ORL3DV = 1 and W19L5 = 2. compute der08w19 = 1. else if W19L1ORL3DV = 1 and W19L5 = -5 and W19L6 = -6. compute der08w19 = 1. else if W19L1ORL3DV = 3 and W19L6 = 2. compute der08w19 = 2. else if W19L1ORL3DV = 4 and W19L6 = 2. compute der08w19 = 2. else if W19L1ORL3DV = -7 and W19L5 = -1 and W19L6 = 2. compute der08w19 = 2. else if W19L1ORL3DV = 3 and W19L6 = 3. compute der08w19 = 3. else if W19L1ORL3DV = 4 and W19L6 = 3. compute der08w19 = 3. else if W19L1ORL3DV = -7 and W19L5 = -1 and W19L6 = 3. compute der08w19 = 3. else if W19L1ORL3DV = 3 and W19L5 = -1 and W19L6 = -7. compute der08w19 = 3. else if W19L1ORL3DV = 4 and W19L5 = -1 and W19L6 = -7. compute der08w19 = 3. else if W19L1ORL3DV = 4 and W19L5 = -5 and W19L6 = -5. compute der08w19 = 3. else if W19L1ORL3DV = 3 and W19L6 = 1. compute der08w19 = 4. else if W19L1ORL3DV = 4 and W19L6 = 1. compute der08w19 = 4. else if W19L1ORL3DV = -7 and W19L5 = -1 and W19L6 =1. compute der08w19 = 4. else if W19L1ORL3DV = 2 and W19L5 = 2. compute der08w19 = 5. else if W19L1ORL3DV = 2 and W19L5 = -7 and W19L6 = -1. compute der08w19 = 5. else if W19L1ORL3DV = 2 and W19L5 = 1. compute der08w19 = 6. else if W19L1ORL3DV = -7 and W19L5 = -1 and W19L6 = -7. compute der08w19 = -7. else if W19L1ORL3DV = -6 and W19L5 = -6 and W19L6 = -6. compute der08w19 = -6. else if W19L1ORL3DV = -5 and W19L5 = -5 and W19L6 = -5. compute der08w19 = -5. else if W19L1ORL3DV = -2 and W19L5 = -2 and W19L6 = -2. compute der08w19 = -4. else if W19L1ORL3DV = -7 and W19L5 = -1 and W19L6 = -1. compute der08w19 = -2. end if. execute. formats der08w19 (f2.0). execute. *frequencies vars = der08w19. value labels der08w1 der08w9 der08w10 der08w11 der08w17 der08w19 0 "Strong Democrat" 1 "Not very strong Democrat" 2 "Independent-Democrat" 3 "Independent-Independent" 4 "Independent-Republican" 5 "Not very strong Republican" 6 "Strong Republican" -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. execute. * NOTE: IN SOME WAVES THERE WERE SOME RESPONDENTS THAT ANSWERED -7 (NO ANSWER) FOR M1/L1 OR M3/L3 * BUT THEN GAVE A VALID RESPONSE (1,2,3) IN M6. THESE CASES WERE CODED AS INDEPENDENTS IN THE * FINAL DERIVED VARIABLE AND THEN BASED ON THEIR RESPONSE IN M6 WERE FURTHER CLASSIFIED AS * NDEP-DEM, INDEP-INDEP, OR INDEP-REPUB. *frequencies vars = der08w1 der08w9 der08w10 der08w11 der08w17. *********************************************************** *** IDEOLOGY: der09W1 der09W2 der09W6 der09W10 der09W11 *** ***********************************************************. * ideology at wave 1. do if W1N1 = 1. if W1N2 = 1 der09W1 = 1. if W1N2 = 2 der09W1 = 2. else if W1N1 = 2. if W1N3 = 1 der09W1 = 7. if W1N3 = 2 der09W1 = 6. else if W1N1 = 3. if W1N4 = 1 der09W1 = 3. if W1N4 = 2 der09W1 = 5. if W1N4 = 3 der09W1 = 4. else. comp der09W1 = W1N1. end if. recode der09W1 (-2=-4)(sysmis=-6). miss val der09W1 (). form der09W1 (f1.0). var lab der09W1 'Ideology at wave 1'. val lab der09W1 1 'Extremely Liberal' 2 'Liberal' 3 'Slightly Liberal' 4 'Moderate' 5 'Slightly Conservative' 6 'Conservative' 7 'Extremely Conservative' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. *fre der09W1. *cro der09W1 by W1N1 to W1N4. * ideology at wave 2. do if W2K1 = 1. if W2K2 = 1 der09W2 = 1. if W2K2 = 2 der09W2 = 2. else if W2K1 = 2. if W2K3 = 1 der09W2 = 7. if W2K3 = 2 der09W2 = 6. else if W2K1 = 3. if W2K4 = 1 der09W2 = 3. if W2K4 = 2 der09W2 = 5. if W2K4 = 3 der09W2 = 4. else. comp der09W2 = W2K1. end if. recode der09W2 (-2=-4)(sysmis=-6). miss val der09W2 (). form der09W2 (f1.0). var lab der09W2 'Ideology at wave 2'. val lab der09W2 1 'Extremely Liberal' 2 'Liberal' 3 'Slightly Liberal' 4 'Moderate' 5 'Slightly Conservative' 6 'Conservative' 7 'Extremely Conservative' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. *fre der09W2. *cro der09W2 by W2K1 to W2K4. * ideology at wave 6. do if W6G1 = 1. if W6G2 = 1 der09W6 = 1. if W6G2 = 2 der09W6 = 2. else if W6G1 = 2. if W6G3 = 1 der09W6 = 7. if W6G3 = 2 der09W6 = 6. else if W6G1 = 3. if W6G4 = 1 der09W6 = 3. if W6G4 = 2 der09W6 = 5. if W6G4 = 3 der09W6 = 4. else. comp der09W6 = W6G1. end if. recode der09W6 (-2=-4)(sysmis=-6). miss val der09W6 (). form der09W6 (f1.0). var lab der09W6 'Ideology at wave 6'. val lab der09W6 1 'Extremely Liberal' 2 'Liberal' 3 'Slightly Liberal' 4 'Moderate' 5 'Slightly Conservative' 6 'Conservative' 7 'Extremely Conservative' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. *fre der09W6. *cro der09W6 by W6G1 to W6G4. * ideology at wave 10. do if W10M1 = 1. if W10M2 = 1 der09W10 = 1. if W10M2 = 2 der09W10 = 2. else if W10M1 = 2. if W10M3 = 1 der09W10 = 7. if W10M3 = 2 der09W10 = 6. else if W10M1 = 3. if W10M4 = 1 der09W10 = 3. if W10M4 = 2 der09W10 = 5. if W10M4 = 3 der09W10 = 4. else. comp der09W10 = W10M1. end if. recode der09W10 (-2=-4)(sysmis=-6). miss val der09W10 (). form der09W10 (f1.0). var lab der09W10 'Ideology at wave 10'. val lab der09W10 1 'Extremely Liberal' 2 'Liberal' 3 'Slightly Liberal' 4 'Moderate' 5 'Slightly Conservative' 6 'Conservative' 7 'Extremely Conservative' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. fre der09W10. *cro der09W10 by W10M1 to W10M4. * ideology at wave 11. do if W11M1 = 1. if W11M2 = 1 der09W11 = 1. if W11M2 = 2 der09W11 = 2. else if W11M1 = 2. if W11M3 = 1 der09W11 = 7. if W11M3 = 2 der09W11 = 6. else if W11M1 = 3. if W11M4 = 1 der09W11 = 3. if W11M4 = 2 der09W11 = 5. if W11M4 = 3 der09W11 = 4. else. comp der09W11 = W11M1. end if. recode der09W11 (-2=-4)(sysmis=-6). miss val der09W11 (). form der09W11 (f1.0). var lab der09W11 'Ideology at wave 11'. val lab der09W11 1 '1. Extremely Liberal' 2 '2. Liberal' 3 '3. Slightly Liberal' 4 '4. Moderate' 5 '5. Slightly Conservative' 6 '6. Conservative' 7 '7. Extremely Conservative' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. exe. *fre der09W11. *cro der09W11 by W11M1 to W11M4. fre der09W1 der09W2 der09W6 der09W10 der09W11. RENAME VARIABLES (der08W1 der08W9 der08W10 der08W11 der08W17 der08W19 der09W1 der09W2 der09W6 der09W10 der09W11 = der08w1 der08w9 der08w10 der08w11 der08w17 der08w19 der09w1 der09w2 der09w6 der09w10 der09w11). EXECUTE. ************************************ *** PRIMARY VOTER TURNOUT: der10 *** ************************************. miss val w1b7 w1b16 (). recode w1b7 (sysmis=-6)(else=copy) into w1b7a. * fre w1b7a w1b7. recode w1b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w1b16a. do if w1b7a>=1 AND w1b7a<=5. compute derw1b7=w1b7a. else if w1b7a=6. compute derw1b7=w1b16a. else if w1b7a<0. compute derw1b7=w1b7a. end if. exe. form derw1b7 (f1.0). miss val derw1b7 w1b7 w1b16 w1b7a w1b16a (-9 thru -1). miss val w2b7 w2b16 (). recode w2b7 (sysmis=-6)(else=copy) into w2b7a. * fre w2b7a w2b7. recode w2b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w2b16a. do if w2b7a>=1 AND w2b7a<=5. compute derw2b7=w2b7a. else if w2b7a=6. compute derw2b7=w2b16a. else if w2b7a<0. compute derw2b7=w2b7a. end if. exe. form derw2b7 (f1.0). miss val derw2b7 w2b7 w2b16 w2b7a w2b16a (-9 thru -1). miss val w6b7 w6b16 (). recode w6b7 (sysmis=-6)(else=copy) into w6b7a. recode w6b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w6b16a. do if w6b7a>=1 OR w6b7a<=5. compute derw6b7=w6b7a. else if w6b7a=6. compute derw6b7=w6b16a. else if w6b7a<0. compute derw6b7=w6b7a. end if. exe. form derw6b7 (f1.0). miss val derw6b7 w6b7 w6b7a w6b16 w6b16a (-9 thru -1). * fre derw6b7. *fre derw6b7 w6b7a w6b16a. miss val w9b7 w9b16 (). recode w9b7 (sysmis=-6)(else=copy) into w9b7a. recode w9b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w9b16a. do if w9b7a>=1 OR w9b7a<=5. compute derw9b7=w9b7a. else if w9b7a=6. compute derw9b7=w9b16a. else if w9b7a<0. compute derw9b7=w9b7a. end if. exe. form derw9b7 (f1.0). miss val derw9b7 w9b7 w9b7a w9b16 w9b16a (-9 thru -1). miss val derw1b7 derw2b7 derw6b7 derw9b7 (). compute derw2b1=derw1b7. do if derw1b7<0 AND derw2b7>0. compute derw2b1=derw2b7. else if derw1b7<0 AND derw2b7<0 AND derw6b7>0. compute derw2b1=derw6b7. else if derw1b7<0 AND derw2b7<0 AND derw6b7<0 AND derw9b7>0. compute derw2b1=derw9b7. end if. exe. form derw2b1 (f1.0). recode derw2b1 (-6=sysmis)(else=copy) into derw2b1. miss val derw2b1 derw2b7 derw6b7 derw9b7 (-9 thru -1). * fre derw2b1 derw9b7 derw2b7 derw6b7. miss val w1b11 w1b16 (). recode w1b11 (sysmis=-6)(else=copy) into w1b11a. recode w1b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w1b16a. do if w1b11a>=1 AND w1b11a<=5. compute derw1b11=w1b11a. else if w1b11a=6. compute derw1b11=w1b16a. else if w1b11a<0. compute derw1b11=w1b11a. end if. exe. form derw1b11 (f1.0). miss val derw1b11 w1b11 w1b16 w1b11a w1b16a (-9 thru -1). * fre derw1b11. miss val w2b11 w2b16 (). recode w2b11 (sysmis=-6)(else=copy) into w2b11a. recode w2b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w2b16a. do if w2b11a>=1 AND w2b11a<=5. compute derw2b11=w2b11a. else if w2b11a=6. compute derw2b11=w2b16a. else if w2b11a<0. compute derw2b11=w2b11a. end if. exe. form derw2b11 (f1.0). miss val derw2b11 w2b11 w2b16 w2b11a w2b16a (-9 thru -1). * fre derw2b11. miss val w6b11 w6b16 (). recode w6b11 (sysmis=-6)(else=copy) into w6b11a. recode w6b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w6b16a. do if w6b11a>=1 OR w6b11a<=5. compute derw6b11=w6b11a. else if w6b11a=6. compute derw6b11=w6b16a. else if w6b11a<0. compute derw6b11=w6b11a. end if. exe. form derw6b11 (f1.0). miss val derw6b11 w6b11 w6b11a w6b16 w6b16a (-9 thru -1). * fre derw6b11. miss val w9b11 w9b16 (). recode w9b11 (sysmis=-6)(else=copy) into w9b11a. recode w9b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w9b16a. do if w9b11a>=1 OR w9b11a<=5. compute derw9b11=w9b11a. else if w9b11a=6. compute derw9b11=w9b16a. else if w9b11a<0. compute derw9b11=w9b11a. end if. exe. form derw9b11 (f1.0). miss val derw9b11 w9b11 w9b11a w9b16 w9b16a (-9 thru -1). * fre derw9b11. miss val derw1b11 derw2b11 derw6b11 derw9b11(). compute derw2b2=derw1b11. do if derw1b11<0 AND derw2b11>0. compute derw2b2=derw2b11. else if derw1b11<0 AND derw2b11<0 AND derw6b11>0. compute derw2b2=derw6b11. else if derw1b11<0 AND derw2b11<0 AND derw6b11<0 AND derw9b11>0. compute derw2b2=derw9b11. end if. exe. form derw2b2 (f1.0). recode derw2b2 (-6=sysmis)(else=copy) into derw2b2. miss val derw2b2 derw2b11 derw6b11 derw9b11 (-9 thru -1). * fre derw2b2 derw9b11 derw2b11 derw6b11. miss val w1b13 w1b16 (). recode w1b13 (sysmis=-6)(else=copy) into w1b13a. recode w1b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w1b16a. do if w1b13a>=1 AND w1b13a<=5. compute derw1b13=w1b13a. else if w1b13a=6. compute derw1b13=w1b16a. else if w1b13a<0. compute derw1b13=w1b13a. end if. exe. form derw1b13 (f1.0). miss val derw1b13 w1b13 w1b16 w1b13a w1b16a (-9 thru -1). * fre derw1b13. * fre derw1b13 w1b13a w1b16a. miss val w2b13 w2b16 (). recode w2b13 (sysmis=-6)(else=copy) into w2b13a. recode w2b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w2b16a. do if w2b13a>=1 AND w2b13a<=5. compute derw2b13=w2b13a. else if w2b13a=6. compute derw2b13=w2b16a. else if w2b13a<0. compute derw2b13=w2b13a. end if. exe. form derw2b13 (f1.0). miss val derw2b13 w2b13 w2b16 w2b13a w2b16a (-9 thru -1). * fre derw2b13. * fre derw2b13 w2b13a w2b16a. miss val w6b13 w6b16 (). recode w6b13 (sysmis=-6)(else=copy) into w6b13a. recode w6b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w6b16a. do if w6b13a>=1 OR w6b13a<=5. compute derw6b13=w6b13a. else if w6b13a=6. compute derw6b13=w6b16a. else if w6b13a<0. compute derw6b13=w6b13a. end if. exe. form derw6b13 (f1.0). miss val derw6b13 w6b13 w6b13a w6b16 w6b16a (-9 thru -1). * fre derw6b13. miss val w9b13 w9b16 (). recode w9b13 (sysmis=-6)(else=copy) into w9b13a. recode w9b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w9b16a. do if w9b13a>=1 OR w9b13a<=5. compute derw9b13=w9b13a. else if w9b13a=6. compute derw9b13=w9b16a. else if w9b13a<0. compute derw9b13=w9b13a. end if. exe. form derw9b13 (f1.0). miss val derw9b13 w9b13 w9b13a w9b16 w9b16a (-9 thru -1). * fre derw9b13. miss val derw1b13 derw2b13 derw6b13 derw9b13(). compute derw2b3=derw1b13. do if derw1b13<0 AND derw2b13>0. compute derw2b3=derw2b13. else if derw1b13<0 AND derw2b13<0 AND derw6b13>0. compute derw2b3=derw6b13. else if derw1b13<0 AND derw2b13<0 AND derw6b13<0 AND derw9b13>0. compute derw2b3=derw9b13. end if. form derw2b3 (f1.0). recode derw2b3 (-6=sysmis)(else=copy) into derw2b3. miss val derw2b3 (-9 thru -1). * fre derw2b3 derw2b13 derw6b13 derw9b13. miss val w1b15 w1b16 (). recode w1b15 (sysmis=-6)(else=copy) into w1b15a. recode w1b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w1b16a. do if w1b15a>=1 AND w1b15a<=5. compute derw1b15=w1b15a. else if w1b15a=6. compute derw1b15=w1b16a. else if w1b15a<0. compute derw1b15=w1b15a. end if. exe. form derw1b15 (f1.0). miss val derw1b15 w1b15 w1b16 w1b15a w1b16a (-9 thru -1). * fre derw1b15. * fre derw1b15 w1b15a w1b16a. miss val w2b15 w2b16 (). recode w2b15 (sysmis=-6)(else=copy) into w2b15a. recode w2b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w2b16a. do if w2b15a>=1 AND w2b15a<=5. compute derw2b15=w2b15a. else if w2b15a=6. compute derw2b15=w2b16a. else if w2b15a<0. compute derw2b15=w2b15a. end if. exe. form derw2b15 (f1.0). miss val derw2b15 w2b15 w2b16 w2b15a w2b16a (-9 thru -1). * fre derw2b15. * fre derw2b15 w2b15a w2b16a. miss val w6b15 w6b16 (). recode w6b15 (sysmis=-6)(else=copy) into w6b15a. recode w6b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w6b16a. do if w6b15a>=1 OR w6b15a<=5. compute derw6b15=w6b15a. else if w6b15a=6. compute derw6b15=w6b16a. else if w6b15a<0. compute derw6b15=w6b15a. end if. exe. form derw6b15 (f1.0). miss val derw6b15 w6b15 w6b15a w6b16 w6b16a (-9 thru -1). * fre derw6b15. miss val w9b15 w9b16 (). recode w9b15 (sysmis=-6)(else=copy) into w9b15a. recode w9b16 (1=6)(2=7)(sysmis=-6)(else=copy) into w9b16a. do if w9b15a>=1 OR w9b15a<=5. compute derw9b15=w9b15a. else if w9b15a=6. compute derw9b15=w9b16a. else if w9b15a<0. compute derw9b15=w9b15a. end if. exe. form derw9b15 (f1.0). miss val derw9b15 w9b15 w9b15a w9b16 w9b16a (-9 thru -1). * fre derw9b15. miss val derw1b15 derw2b15 derw6b15 derw9b15(). compute derw2b4=derw1b15. do if derw1b15<0 AND derw2b15>0. compute derw2b4=derw2b15. else if derw1b15<0 AND derw2b15<0 AND derw6b15>0. compute derw2b4=derw6b15. else if derw1b15<0 AND derw2b15<0 AND derw6b15<0 AND derw9b15>0. compute derw2b4=derw9b15. end if. form derw2b4 (f1.0). recode derw2b4 (-6=sysmis)(else=copy) into derw2b4. miss val derw2b4 (-9 thru -1). * fre derw2b4 derw2b15 derw6b15 derw9b15. miss val derw2b4 derw2b15 derw6b15 derw9b15 (). recode derw2b1 (sysmis=-6)(else=copy) into derw2b1a. recode derw2b2 (sysmis=-6)(else=copy) into derw2b2a. recode derw2b3 (sysmis=-6)(else=copy) into derw2b3a. recode derw2b4 (sysmis=-6)(else=copy) into derw2b4a. miss val derw2b1a TO derw2b4a (). do if derw2b1a>0. compute derw24=derw2b1a. else if derw2b2a>0. compute derw24=derw2b2a. else if derw2b3a>0. compute derw24=derw2b3a. else if derw2b4a>0. compute derw24=derw2b4a. else if derw2b1a<0. compute derw24=derw2b1a. end if. exe. form derw24 (f2.0). rename variables (derw24=der10). execute. var lab der10 'der10. DERIVED. Voter Turnout, Primaries'. val lab der10 1 '1. Definitely did not vote' 2 '2. Definitely voted in person at a polling place on election day' 3 '3. Definitely voted in person at a polling place before election day' 4 '4. Definitely voted by mailing a ballot before election day' 5 '5. Definitely voted in some other way' 6 '6. Not completely sure, but probably voted' 7 '7. Not completely sure, but probably did not vote' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. recode der10 (1=1)(7=1)(2 thru 5=2)(6=2)(else=copy) into der10a. formats der10a (f2.0). var lab der10a 'der10a. DERIVED. Voter Turnout, Primaries - dichotomous'. val lab der10a 1 '1. Did not vote' 2 '2. Voted' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. missing values der10 der10a (). execute. frequencies vars = der10 der10a. ************************************************************* *** PRIMARY CANDIDATE CHOICES: der11, der12, der13, der14 *** *************************************************************. *******der11******* recode W1C1 (sysmis=-6) (else=copy) into W1C1_wk. recode W2C1 (sysmis=-6) (else=copy) into W2C1_wk. recode W6C1 (sysmis=-6) (else=copy) into W6C1_wk. recode W9C1 (sysmis=-6) (else=copy) into W9C1_wk. compute der11 = W1C1_wk. do if W1C1_wk < 0 and W2C1_wk>0. compute der11 = W2C1_wk. else if W1C1_wk<0 and W2C1_wk<0 and W6C1_wk>0. compute der11 = W6C1_wk. else if W1C1_wk<0 and W2C1_wk<0 and W6C1_wk<0 and W9C1_wk>0. compute der11=W9C1_wk. else if W1C1_wk=-7 and W2C1_wk=-7 and W6C1_wk=-7 and W9C1_wk=-7. compute der11=-7. else if W1C1_wk=-6 and W2C1_wk=-6 and W6C1_wk=-6 and W9C1_wk=-6. compute der11=-6. else if W1C1_wk=-5 and W2C1_wk=-5 and W6C1_wk=-5 and W9C1_wk=-5. compute der11=-5. else if W1C1_wk=-1 and W2C1_wk=-1 and W6C1_wk=-1 and W9C1_wk=-1. compute der11=-1. else if W1C1_wk<0 and W2C1_wk<0 and W6C1_wk<0 and W9C1_wk<0. compute der11=-2. end if. exe. value labels der11 1 '1. Republican' 2 '2. Democrat' 3 '3. Other party' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. execute. frequencies vars = der11. ******der12******** recode W1C3 (sysmis=-6) (else=copy) into W1C3_wk. recode W2C3 (sysmis=-6) (else=copy) into W2C3_wk. recode W6C3 (sysmis=-6) (else=copy) into W6C3_wk. recode W9C3 (sysmis=-6) (else=copy) into W9C3_wk. recode W1C5 (sysmis=-6) (else=copy) into W1C5_wk. recode W2C5 (sysmis=-6) (else=copy) into W2C5_wk. recode W6C5 (sysmis=-6) (else=copy) into W6C5_wk. recode W9C5 (sysmis=-6) (else=copy) into W9C5_wk. do if W1C1_wk=1. recode W1C3_wk (1=1)(5=2)(7=3)(8=4)(3=5)(6=6)(2=7)(9=8)(4=9)(10=18)(else=copy) into der12_1. else if W1C1_wk=2. recode W1C5_wk (24=10)(20=11)(25=12)(22=13)(27=14)(26=15)(21=16)(23=17)(28=19)(else=copy) into der12_1. else if W1C1_wk=3. compute der12_1=20. else if W1C1_wk < 0. compute der12_1 = W1C1_wk. end if. exe. do if W2C1_wk=1. recode W2C3_wk (1=1)(5=2)(7=3)(8=4)(3=5)(6=6)(2=7)(9=8)(4=9)(10=18)(else=copy) into der12_2. else if W2C1_wk=2. recode W2C5_wk (24=10)(20=11)(25=12)(22=13)(27=14)(26=15)(21=16)(23=17)(9=19)(else=copy) into der12_2. else if W2C1_wk=3. compute der12_2=20. else if W2C1_wk < 0. compute der12_2 = W2C1_wk. end if. exe. do if W6C1_wk=1. recode W6C3_wk (1=1)(5=2)(7=3)(8=4)(3=5)(6=6)(2=7)(9=8)(4=9)(10=18)(else=copy) into der12_6. else if W6C1_wk=2. recode W6C5_wk (24=10)(20=11)(25=12)(22=13)(27=14)(26=15)(21=16)(23=17)(9=19)(else=copy) into der12_6. else if W6C1_wk=3. compute der12_6=20. else if W6C1_wk < 0. compute der12_6 = W6C1_wk. end if. exe. do if W9C1_wk=1. recode W9C3_wk (1=1)(5=2)(7=3)(8=4)(3=5)(6=6)(2=7)(9=8)(4=9)(10=18)(else=copy) into der12_9. else if W9C1_wk=2. recode W9C5_wk (24=10)(20=11)(25=12)(22=13)(27=14)(26=15)(21=16)(23=17)(9=19)(else=copy) into der12_9. else if W9C1_wk=3. compute der12_9=20. else if W9C1_wk < 0. compute der12_9 = W9C1_wk. end if. exe. compute der12=der12_1. do if der12_1<0 and der12_2>0. compute der12=der12_2. else if der12_1<0 and der12_2<0 and der12_6>0. compute der12=der12_6. else if der12_1<0 and der12_2<0 and der12_6<0 and der12_9>0. compute der12=der12_9. else if der12_1=-9 and der12_2=-9 and der12_6=-9 and der12_9=-9. compute der12=-9. else if der12_1=-7 and der12_2=-7 and der12_6=-7 and der12_9=-7. compute der12=-7. else if der12_1=-6 and der12_2=-6 and der12_6=-6 and der12_9=-6. compute der12=-6. else if der12_1=-5 and der12_2=-5 and der12_6=-5 and der12_9=-5. compute der12=-5. else if der12_1=-1 and der12_2=-1 and der12_6=-1 and der12_9=-1. compute der12=-1. else if der12_1<0 and der12_2<0 and der12_6<0 and der12_9<0. compute der12=-2. end if. exe. value labels der12_1 der12_2 der12_6 der12_9 der12 1 "1. Rudy Giuliani" 2 "2. Mike Huckabee" 3 "3. Duncan Hunter" 4 "4. Alan Keyes" 5 "5. John McCain" 6 "6. Ron Paul" 7 "7.Mitt Romney" 8 "8. Tom Tancredo" 9 "9. Fred Thompson" 10 "10. Joe Biden" 11 "11. Hillary Clinton" 12 "12. Chris Dodd" 13 "13. John Edwards" 14 "14. Mike Gravel" 15 "15. Dennis Kucinich" 16 "16. Barack Obama" 17 "17. Bill Richardson" 18 "18. other Republican" 19 "19. other Democrat" 20 "20. other party candidate" -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. frequencies vars = der12. *******der13 & der14*********** recode W1C3_wk (1=1)(2=5)(3=2)(4=3)(5=4)(else=copy) into der13_1. recode W2C3_wk (1=1)(2=5)(3=2)(4=3)(5=4)(else=copy) into der13_2. recode W6C3_wk (1=1)(2=5)(3=2)(4=3)(5=4)(else=copy) into der13_6. recode W9C3_wk (1=1)(2=5)(3=2)(4=3)(5=4)(else=copy) into der13_9. compute der13 = der13_1. do if der13_1<0 and der13_2>0. compute der13=der13_2. else if der13_1<0 and der13_2<0 and der13_6>0. compute der13=der13_6. else if der13_1<0 and der13_2<0 and der13_6<0 and der13_9>0. compute der13=der13_9. else if der13_1=-7 and der13_2=-7 and der13_6=-7 and der13_9=-7. compute der13=-7. else if der13_1=-6 and der13_2=-6 and der13_6=-6 and der13_9=-6. compute der13=-6. else if der13_1=-5 and der13_2=-5 and der13_6=-5 and der13_9=-5. compute der13=-5. else if der13_1=-1 and der13_2=-1 and der13_6=-1 and der13_9=-1. compute der13=-1. else if der13_1<0 and der13_2<0 and der13_6<0 and der13_9<0. compute der13=-2. end if. exe. value labels der13 1 "1. Rudy Giuliani" 2 "2. John McCain" 3 "3. Fred Thompson" 4 "4. Mike Huckabee" 5 "5. Mitt Romney" 6 "6. Ron Paul" 7 "7. Duncan Hunter" 8 "8. Alan Keyes" 9 "9. Tom Tancredo" 10 "10. Other" -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. exe. *****der14***** recode W1C5_wk (20=1)(21=2)(22=3)(23=4)(24=5)(25=6)(26=7)(27=8)(28=9)(else=copy) into der14_1. recode W2C5_wk (20=1)(21=2)(22=3)(23=4)(24=5)(25=6)(26=7)(27=8)(28=9)(else=copy) into der14_2. recode W6C5_wk (20=1)(21=2)(22=3)(23=4)(24=5)(25=6)(26=7)(27=8)(28=9)(else=copy) into der14_6. recode W9C5_wk (20=1)(21=2)(22=3)(23=4)(24=5)(25=6)(26=7)(27=8)(28=9)(else=copy) into der14_9. compute der14 = der14_1. do if der14_1<0 and der14_2>0. compute der14=der14_2. else if der14_1<0 and der14_2<0 and der14_6>0. compute der14=der14_6. else if der14_1<0 and der14_2<0 and der14_6<0 and der14_9>0. compute der14=der14_9. else if der14_1=-7 and der14_2=-7 and der14_6=-7 and der14_9=-7. compute der14=-7. else if der14_1=-6 and der14_2=-6 and der14_6=-6 and der14_9=-6. compute der14=-6. else if der14_1=-5 and der14_2=-5 and der14_6=-5 and der14_9=-5. compute der14=-5. else if der14_1=-1 and der14_2=-1 and der14_6=-1 and der14_9=-1. compute der14=-1. else if der14_1<0 and der14_2<0 and der14_6<0 and der14_9<0. compute der14=-2. end if. exe. value labels der14 1 "1. Hillary Clinton" 2 "2. Barack Obama" 3 "3. John Edwards" 4 "4. Bill Richardson" 5 "5. Joe Biden" 6 "6. Chris Dodd" 7 "7. Dennis Kucinich" 8 "8. Mike Gravel" 9 "9. Other" -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. execute. formats der11 der12 der13 der14 (f2.0). execute. ********************************************* *** GENERAL ELECTION VOTER TURNOUT: der15 *** *********************************************. compute der15 = -2. if w10a1 = 1 and w10a2 <= 3 der15 = 1. if w10a1 = 1 and w10a2 = 4 der15 = 2. if w10a1 = 2 der15 = 2. if w11a4 >= 2 and w11a4 <= 5 der15 =1. if w11a4 = 1 or w11a4 = 6 der15 = 2. variable label der15 "der15. DERIVED. General election voter turnout". value labels der15 -2 "-2. Missing, not reported" 1 "1. Voter" 2 "2. Nonvoter or not sure". *frequencies vars der15. * NOTE: The syntax for der15 has been revised from the advance release * version. Cases for which there was a discrepancy from Wave 10 to Wave * 11 were initially coded as 'voters'. In the final release they have been * coded as "nonvoter or not sure". ******************************************** *** GENERAL ELECTION VOTER CHOICE: der16 *** ********************************************. * voter choice at waves 10 & 11. * NB: the rule to prioritize the earliest wave produce the following inconsistencies: * 1 case ruled McCain reported voting for Obama in wave 11 * 1 case ruled Obama reported voting for McCain in wave 11 * 3 cases ruled Other reported voting for McCain in wave 11 * 2 cases ruled Other reported voting for Obama in wave 11. * First, capture voter choice from wave 10. * Second, if skips in wave 10, capture voter choice from wave 11. * Third, identify between non-answers and did not vote. *freW10A4 W11A6. recode W10A4 (sysmis=-6)(else=copy) into der16_w10. recode W11A6 (13=1)(18=2)(3 thru 30=3)(sysmis=-6)(else=copy) into der16_w11. do if der16_w10>0. compute der16=der16_w10. else if der16_w10<0 and der16_w11>0. compute der16=der16_w11. else if der16_w10=-7 and der16_w11=-7. compute der16=-7. else if der16_w10=-6 and der16_w11=-6. compute der16=-6. else if der16_w10=-5 and der16_w11=-5. compute der16=-5. else if der16_w10=-1 and der16_w11=-1. compute der16=-1. else if der16_w10<0 and der16_w11<0. compute der16=-2. end if. execute. form der16 (f1.0). miss val der16 (). val lab der16 1 'John McCain' 2 'Barack Obama' 3 'Other' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. var lab der16 'General election voter choice'. exe. frequencies vars = der16. display dictionary /vars = W10A4 W11A6. ***************************************************** *** NAME COUNT FROM NETWORKS BATTERY W9ZD2: der17 *** *****************************************************. *create nameflag variables . COMPUTE name1flag = 0. COMPUTE name2flag = 0. COMPUTE name3flag = 0. COMPUTE name4flag = 0. COMPUTE name5flag = 0. COMPUTE name6flag = 0. COMPUTE name7flag = 0. COMPUTE name8flag = 0. *flag whether each variable 29zd2_1_name through w9zd2_8_name has any text (1) or is sysmis (0) . DO IF (w9zd2_1_name = ' '). COMPUTE name1flag = 0. ELSE IF (w9zd2_1_name <> ' '). COMPUTE name1flag = 1. END IF. DO IF (w9zd2_2_name = ' '). COMPUTE name2flag = 0. ELSE IF (w9zd2_2_name <> ' '). COMPUTE name2flag = 1. END IF. DO IF (w9zd2_3_name = ' '). COMPUTE name3flag = 0. ELSE IF (w9zd2_3_name <> ' '). COMPUTE name3flag = 1. END IF. DO IF (w9zd2_4_name = ' '). COMPUTE name4flag = 0. ELSE IF (w9zd2_4_name <> ' '). COMPUTE name4flag = 1. END IF. DO IF (w9zd2_5_name = ' '). COMPUTE name5flag = 0. ELSE IF (w9zd2_5_name <> ' '). COMPUTE name5flag = 1. END IF. DO IF (w9zd2_6_name = ' '). COMPUTE name6flag = 0. ELSE IF (w9zd2_6_name <> ' '). COMPUTE name6flag = 1. END IF. DO IF (w9zd2_7_name = ' '). COMPUTE name7flag = 0. ELSE IF (w9zd2_7_name <> ' '). COMPUTE name7flag = 1. END IF. DO IF (w9zd2_8_name = ' '). COMPUTE name8flag = 0. ELSE IF (w9zd2_8_name <> ' '). COMPUTE name8flag = 1. END IF. *count the number of names mentioned. COMPUTE der17 = 0. IF name1flag = 1 der17 = der17 + 1. IF name2flag = 1 der17 = der17 + 1. IF name3flag = 1 der17 = der17 + 1. IF name4flag = 1 der17 = der17 + 1. IF name5flag = 1 der17 = der17 + 1. IF name6flag = 1 der17 = der17 + 1. IF name7flag = 1 der17 = der17 + 1. IF name8flag = 1 der17 = der17 + 1. *set format and missing values. FORMATS der17 (F2.0). if w9flag=0 and der17=0 der17=-6. if w9zd1 ne 1 and der17=0 der17=-1. EXECUTE. variable labels der17 'der17. DERIVED. Number of names mentioned at W9ZD2'. value labels der17 -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. execute. frequencies vars = der17. *CROSS-WAVE SUMMARY VARIABLES: Eligible persons household, 2004 turnout, 2004 candidate choice, usual voter last 6 years, religion, race summary (w/o ethnicity), marital status ******************************************** *** ELIGIBLE PERSONS IN HOUSEHOLD: der18 *** ********************************************. recode rhhsize (sysmis=-6) (else=copy) into rhhsize_wk. execute. recode W1QHHTOTAL (sysmis=-6) (else=copy) into W1QHHTOTAL_wk. execute. do if rhhsize_wk > 0. compute der18 = rhhsize_wk. else if rhhsize_wk < 0 and W1QHHTOTAL_wk > 0. compute der18 = W1QHHTOTAL_wk. else if rhhsize_wk =-7 and W1QHHTOTAL_wk =-7. compute der18=-7. else if rhhsize_wk =-6 and W1QHHTOTAL_wk =-6. compute der18=-6. else if rhhsize_wk =-5 and W1QHHTOTAL_wk =-5. compute der18=-5. else if rhhsize_wk =-1 and W1QHHTOTAL_wk =-1. compute der18=-1. else if rhhsize_wk < 0 and W1QHHTOTAL_wk < 0. compute der18=-2. end if. variable labels der18 "der18. DERIVED. Eligible persons in household". execute. value labels der18 -6 '-6. Not asked, unit non-response'. execute. *************************** *** 2004 TURNOUT: der19 *** ***************************. miss val w1a4 w1a5 (). recode w1a4 (sysmis=-6)(else=copy) into dera1. recode w1a5 (1=6)(2=7)(sysmis=-6)(else=copy) into dera2. do if dera1>=1 AND dera1<=5. compute derw1a4=dera1. else if dera1=6. compute derw1a4=dera2. else if dera1<0. compute derw1a4=dera1. end if. exe. miss val w2ab4 w2ab5 (). recode w2ab4 (sysmis=-6)(else=copy) into dera3. recode w2ab5 (1=6)(2=7)(sysmis=-6)(else=copy) into dera4. do if dera3>=1 AND dera3<=5. compute derw2ab4=dera3. else if dera3=6. compute derw2ab4=dera4. else if dera3<0. compute derw2ab4=dera3. end if. exe. miss val w6ab4 w6ab5 (). recode w6ab4 (sysmis=-6)(else=copy) into dera5. recode w6ab5 (1=6)(2=7)(sysmis=-6)(else=copy) into dera6. do if dera5>=1 AND dera5<=5. compute derw6ab4=dera5. else if dera5=6. compute derw6ab4=dera6. else if dera5<0. compute derw6ab4=dera5. end if. exe. miss val w9ab4 w9ab5 (). recode w9ab4 (sysmis=-6)(else=copy) into dera7. recode w9ab5 (1=6)(2=7)(sysmis=-6)(else=copy) into dera8. do if dera7>=1 AND dera7<=5. compute derw9ab4=dera7. else if dera7=6. compute derw9ab4=dera8. else if dera7<0. compute derw9ab4=dera7. end if. exe. * derw6ab4, derw9ab4, derw2ab4, derw1a4. do if derw1a4>0. compute der19=derw1a4. else if derw1a4<0 AND derw2ab4>0. compute der19=derw2ab4. else if derw1a4<0 AND derw2ab4<0 AND derw6ab4>0. compute der19=derw6ab4. else if derw1a4<0 AND derw2ab4<0 AND derw6ab4<0 AND derw9ab4>0. compute der19=derw9ab4. else if derw1a4<0 AND derw2ab4<0 AND derw6ab4<0 AND derw9ab4<0. do if derw1a4=derw2ab4 & derw2ab4=derw6ab4 & derw6ab4=derw9ab4. compute der19=derw1a4. else. compute der19=-2. end if. end if. exe. var lab der19 'der19. DERIVED. Turnout in 2004 presidential election'. val lab der19 1 '1. Definitely did not vote' 2 '2. Definitely voted in person at a polling place on election day' 3 '3. Definitely voted in person at a polling place before election day' 4 '4. Definitely voted by mailing a ballot before election day' 5 '5. Definitely voted in some other way' 6 '6. Not completely sure, but probably voted' 7 '7. Not completely sure, but probably did not vote' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. ************************************ *** 2004 CANDIDATE CHOICE: der20 *** ************************************. * creation of 2004 vote variable. * earlier reports are given precedence. * code collapses everyone other than Kerry and Bush into 'other'. * for w6ab6 there is a stray 999. * should this incorporate how certain. * set missing values and recode variables. miss val w1a6 w2ab6 w6ab6 w9ab6 (). recode w1a6 (1=2) (2=1) (3 thru 18=7) (sysmis=-6)(else=copy) into derw6a. recode w2ab6 (1=2) (2=1) (3 thru 18=7)(sysmis=-6)(else=copy) into derw6b. recode w6ab6 (1=2) (2=1) (3 thru 18=7)(sysmis=-6)(999=-2)(else=copy) into derw6c. recode w9ab6 (1=2) (2=1) (3 thru 18=7)(sysmis=-6) (else=copy) into derw6d. * code into summary variable. do if derw6a>0. compute der20=derw6a. else if derw6a<1 AND derw6b>=1. compute der20=derw6b. else if derw6a<1 AND derw6b<1 AND derw6c>=1. compute der20=derw6c. else if derw6a<1 AND derw6b<1 AND derw6c<1 AND derw6d>=1. compute der20=derw6d. else if derw6a<1 AND derw6b<1 AND derw6c<1 AND derw6d<1. do if derw6a=derw6b & derw6b=derw6c & derw6c=derw6d. compute der20=derw6a. else. compute der20=-2. end if. end if. exe. var lab der20 "der20. DERIVED. Vote in 2004 presidential election". val lab der20 1 '1. John Kerry' 2 '2. George Bush' 7 '7. Other' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer'. * note: 999 is recast as -2 for the derived variable. ***************************************************** *** USUAL VOTER LAST 6 YEARS: der21 *** *****************************************************. *Usual voter status at Wave 1. missing values W1A2 W1B5 W1B9 (). recode W1A2 (sysmis = -99) (else = copy) into w1a2_wk. recode W1B5 (sysmis = -99) (else = copy) into w1b5_wk. recode W1B9 (sysmis = -99) (else = copy) into w1b9_wk. do if w1a2_wk > 0. compute w1vote6 = w1a2_wk. else if w1a2_wk < 0 and w1b5_wk > 0. compute w1vote6 = w1b5_wk. else if w1a2_wk < 0 and w1b5_wk < 0 and w1b9_wk > 0. compute w1vote6 = w1b9_wk. else if w1a2_wk = -99 and w1b5_wk = -99 and w1b9_wk = -99. compute w1vote6 = -99. else if w1a2_wk = -1 and w1b5_wk = -1 and w1b9_wk = -1. compute w1vote6 = -1. else if w1a2_wk = -5 and w1b5_wk = -5 and w1b9_wk = -5. compute w1vote6 = -5. else if w1a2_wk < 0 and w1b5_wk < 0 and w1b9_wk < 0. compute w1vote6 = w1a2_wk. end if. frequencies vars = w1vote6. *Usual voter status at Wave 2. missing values W2AB2 W2B5 W2B9 (). recode W2AB2 (sysmis = -99) (else = copy) into w2ab2_wk. recode W2B5 (sysmis = -99) (else = copy) into w2b5_wk. recode W2B9 (sysmis = -99) (else = copy) into w2b9_wk. do if w2ab2_wk > 0. compute w2vote6 = w2ab2_wk. else if w2ab2_wk < 0 and w2b5_wk > 0. compute w2vote6 = w2b5_wk. else if w2ab2_wk < 0 and w2b5_wk < 0 and w2b9_wk > 0. compute w2vote6 = w2b9_wk. else if w2ab2_wk = -99 and w2b5_wk = -99 and w2b9_wk = -99. compute w2vote6 = -99. else if w2ab2_wk = -1 and w2b5_wk = -1 and w2b9_wk = -1. compute w2vote6 = -1. else if w2ab2_wk = -5 and w2b5_wk = -5 and w2b9_wk = -5. compute w2vote6 = -5. else if w2ab2_wk < 0 and w2b5_wk < 0 and w2b9_wk < 0. compute w2vote6 = w2ab2_wk. end if. frequencies vars = w2vote6. *Usual voter status at Wave 6 missing values W6AB2 W6B5 W6B9 (). recode W6AB2 (sysmis = -99) (else = copy) into w6ab2_wk. recode W6B5 (sysmis = -99) (else = copy) into w6b5_wk. recode W6B9 (sysmis = -99) (else = copy) into w6b9_wk. do if w6ab2_wk > 0. compute w6vote6 = w6ab2_wk. else if w6ab2_wk < 0 and w6b5_wk > 0. compute w6vote6 = w6b5_wk. else if w6ab2_wk < 0 and w6b5_wk < 0 and w6b9_wk > 0. compute w6vote6 = w6b9_wk. else if w6ab2_wk = -99 and w6b5_wk = -99 and w6b9_wk = -99. compute w6vote6 = -99. else if w6ab2_wk = -1 and w6b5_wk = -1 and w6b9_wk = -1. compute w6vote6 = -1. else if w6ab2_wk = -5 and w6b5_wk = -5 and w6b9_wk = -5. compute w6vote6 = -5. else if w6ab2_wk < 0 and w6b5_wk < 0 and w6b9_wk < 0. compute w6vote6 = w6ab2_wk. end if. frequencies vars = w6vote6. *Usual voter status at Wave 11 missing values W11A2 (). recode W11A2 (sysmis = -99) (else = copy) into w11vote6. frequencies vars = w11vote6. *Create der21. do if w1vote6 > 0. compute der21 = w1vote6. else if w1vote6 < 0 and w2vote6 > 0. compute der21 = w2vote6. else if w1vote6 < 0 and w2vote6 < 0 and w6vote6 > 0. compute der21 = w6vote6. else if w1vote6 < 0 and w2vote6 < 0 and w6vote6 < 0 and w11vote6 > 0. compute der21 = w11vote6. else if w1vote6 = -1 and w2vote6 = -1 and w6vote6 = -1 and w11vote6 = -1. compute der21 = -1. else if w1vote6 = -5 and w2vote6 = -5 and w6vote6 = -5 and w11vote6 = -5. compute der21 = -5. else if w1vote6 = -99 and w2vote6 = -99 and w6vote6 = -99 and w11vote6 = -99. compute der21 = -6. else if w1vote6 < 0 and w2vote6 < 0 and w6vote6 < 0 and w11vote6 < 0. compute der21 = w1vote6. end if. recode der21 (-99 = -2) (else = copy). execute. variable labels der21 'der21. DERIVED. Usual voter in the last 6 years'. value labels der21 1 '1. Usually voted' 2 '2. Usually did not vote' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. formats der21 (f2.0). frequencies vars = der21. *********************** *** RELIGION: der22 *** ***********************. *religion at wave 1 *recode W1J3 (open ended) to numeric using coding scheme 1=protestant, 2=catholic, 3=jewish, 4=other, 5=no religion. recode W1J3 ('4 square' = 4) ('a,m,e,' = 4) ('African Methodist Episcopal' = 1) ('All Denominational' = 1) ('anaBaptist' = 1) ('AnaBaptist Christian' = 1) ('Anglican' = 1) ('anonomous' = 4) ('apostolic' = 1) ('Apostolic' = 1) ('babtist' = 1) ('baptis' = 1) ('BAPTIS' = 1) ('Baptisit' = 1) ('Baptist' = 1) ('Baptist' = 1) ('BAPTIST' = 1) ('Baptist bba' = 1) ('Baptist baptize believer in Christ' = 1) ('Baptiste' = 1) ('bastip' = 4) ('bastis' = 4) ('bastism' = 4) ('basts' = 4) ('buddhism' = 4) ('Buddhism' = 4) ('buddhist' = 4) ('Buddhist' = 4) ('budhism' = 4) ('charismatic Christian' = 1) ('chistianity' = 1) ('christain' = 1) ('christain/Baptist' = 1) ('Christan' = 1) ('Christen' = 1) ('Christian' = 1) ('Christian' = 1) ('CHRISTIAN' = 1) ('Christian non-denominational' = 1) ('Christian nondenominational' = 1) ('Christian Science' = 1) ('Christian-non denominational' = 1) ('Christian: non-denominational' = 1) ('Christian/SouthernBaptist' = 1) ("Christian (The Church of Jesus Christ of Latter Day Saints)" = 4) ('Christianity' = 1) ('CHRISTIANITY' = 1) ('Church Of Jesus cHRIST OF LATTER SAINTS' = 4) ('Church of Christ' = 4) ('Church of Jesus Christ of Latter Day Saints' = 4) ('Church of Jesus Christ of Latter-day Saints' = 4) ('CHURCH OF JESUS CHRIST OF LDS' = 4) ('congregatinal' = 4) ('Deist' = 4) ('eatenjelco' = 4) ('episcopal' = 1) ('Episcopal' = 1) ('episcopalian' = 1) ('foursquare gospel' = 4) ('Fundamental Christian' = 1) ('Greek Orthodox' = 4) ('Gregorian, Armenian' = 4) ('hindu' = 4) ('Hindu' = 4) ('hinduism' = 4) ('Hinduism' = 4) ('HINDUISM' = 4) ('I am a child of the universe' = 4) ('i have my own beliefs' = 4) ('Iglesia Ni Cristo' = 4) ('interfaith' = 4) ('Intrafaith' = 4) ('is personal' = 4) ('islam' = 4) ('jehova witness' = 4) ('Jehovah Witness' = 4) ('jehovah witnesses' = 4) ("Jehovah's Witness" = 4) ("Jehovah's Witnesses" = 4) ("JEHOVAH'S WITNESSES" = 4) ('jesus' = 1) ('L.D.S' =4) ('latter day saint' = 4) ("Latter day Saint (Mormon)" = 4) ('latter day saints' = 4) ('lds' = 4) ('LDS' = 4) ("LDS (Mormon)" = 4) ('lurthern' = 1) ('Lutheran' = 1) ('Lutheran' = 1) ('Lutheren' = 1) ('luthern' = 1) ('Luthern' = 1) ('LUTHERN' = 1) ('luthren' = 1) ('LUTHREN' = 1) ('Luthuran' = 1) ('Metaphysical' = 4) ('Methodist' = 1) ('Methodist' = 1) ('METHODIST' = 1) ('mormon' = 4) ('Mormon' = 4) ('my own' = 4) ('N,A,C,' = 4) ('nazerine' = 1) ('New Age Christian' = 4) ('Nichiren Buddhist' = 4) ('non affiliated' = 4) ('non dedomotional' = 1) ('non denominational' = 1) ('non denominational Christian' = 1) ('Non Denominational Christian' = 1) ('NON DENOMINATIONAL EVANGELICAL' = 1) ('non denomitive' = 4) ('Non-demonational Psychic' = 4) ('non-demoninational' = 1) ('non-denomination' = 1) ('non-denominational' = 1) ('Non-denominational' = 1) ('Non-denominational Church of God' = 4) ('NONDDANOMANATION' = 1) ('Nondemnominational' = 1) ('nondenomanational' = 1) ('nondenominational' = 1) ('Nondenominational Christian' = 1) ('none' = 5) ('Not an organized religion' = 4) ('not sure whom to trust' = 4) ('Ole Time Southern Baptist' = 1) ('Pagan' = 4) ('penacostal' = 1) ('pencostal/Methodist' = 1) ('pentacostal' = 1) ('Pentalcostal' = 1) ('pentcostal' = 1) ('pentecostal' = 1) ('Pentecostal' = 1) ('penticostal' = 1) ('Personal' = 4) ('presbytein' = 1) ('Presbyterian' = 1) ('Reformed' = 1) ('Reformed/Christian' = 1) ('russian orthodox' = 4) ('Science of Mind' = 4) ('Scientology' = 4) ('Seventh-Day Adventist' = 1) ('Southern Baptist' = 1) ('spiritual' = 4) ('spirtual' = 4) ('taoism' = 4) ('The Church of Jesus Christ of Latter Day Saints' = 4) ('The Church of Jesus Christ of Latter-Day Saints' = 4) ('UCC' = 1) ('unitarian' = 4) ('Unitarian' = 4) ('unitarian univerlist' = 4) ('Unitarian Universalist' = 4) ('unitarian-universalist' = 4) ('united' = 4) ('United Church of Christ' = 1) ('United Methodist' = 1) ('unsure' = 4) ("we're all one" = 4) ('Wicca' = 4) ('wiccan' = 4) ('Wiccan' = 4) ('Zartoshti-Judeo-Christian Tradition' = 4) ('zen buddhist' = 4) into NW1J3. execute. frequencies vars = NW1J3. recode NW1J3 (sysmis = -99). execute. missing values W1J2 (). recode W1J2 (sysmis = -99) (else = copy) into w1j2wk. execute. *compute w1relig. do if w1j2wk = 1. compute w1relig = 1. else if w1j2wk = 2. compute w1relig = 2. else if w1j2wk = 3. compute w1relig = 3. else if w1j2wk = 4 and NW1J3 = 1. compute w1relig = 1. else if w1j2wk = 4 and NW1J3 = 4. compute w1relig = 4. else if w1j2wk = 4 and NW1J3 = 5. compute w1relig = 5. else if w1j2wk = 4 and NW1J3 = -99. compute w1relig = 4. else if w1j2wk = 5. compute w1relig = 5. else if w1j2wk < 0. compute w1relig = w1j2wk. end if. frequencies vars = w1relig. *religion at wave 9. *recode W9ZG3 into numeric. recode W9ZG3 ('Africian Methodist' = 1) ('Agnostic' = 4) ('AME' = 4) ('Apostlic' = 1) ('Apostolic' = 1) ('babtist' = 1) ('Bahai' = 4) ('Baptis' =1) ('Baptist' = 1) ('Baptist' =1) ('BAPTIST' = 1) ('Baptist southern' = 1) ('buddhism' = 4) ('Buddhism' = 4) ('Buddhist' = 4) ('chiristion' = 1) ('Chistian' = 1) ('chrisian' = 1) ('christ fellowship' = 1) ('Christ follower' = 1) ('christain' = 1) ('Christain' = 1) ('christan' = 1) ('Christan' = 1) ('Christian' = 1) ('Christian' = 1) ('CHRISTIAN' = 1) ('Christian Baptist' = 1) ('Christianity' = 1) ('Christianity' = 1) ('church of Christ' = 1) ('Church of Christ' = 1) ('Church of God' = 1) ('Church of Jesus Christ of Latter-day Saints' = 4) ('Church of Jesus Christ of Latterday Saints' = 4) ('cogic' = 4) ('Community of Christ' = 4) ('cristain' = 1) ('Cristian' = 1) ('earth-focused Shamanism practice' = 4) ('episcopalian' = 1) ('Episcopalian' = 1) ('evangelical' = 1) ('EVANGELICAL' = 1) ('father yahweh' = 4) ('god' = 4) ('great sprit/native american' = 4) ('greek orthodox' = 4) ('Greek Orthodox' = 4) ('helpingkids' = 4) ('Hindu' = 4) ('Hinduism' = 4) ('holiness' = 4) ('Holiness' = 4) ('i just love jesus' = 1) ('independent Baptist' = 1) ('Jehovah Witnesses' = 4) ("Jehovah's Witness" = 4) ("jehovah's witnesses" = 4) ("Jehovah's Witnesses" = 4) ('jehovahs witness' = 4) ('Later-Day Saint' = 4) ('Latter Day Saint' = 4) ('latter-day saint' = 4) ('lds' = 4) ('LDS' = 4) ('Lutheran' = 1) ('Lutheran' = 1) ('luthern' = 1) ('luthren' = 1) ('Methodist' = 1) ('Methodist' = 1) ('mormon' = 4) ('Mormon' = 4) ('multidenominational' = 1) ('muslim' = 4) ('NA' = 5) ('native american' = 4) ('Native American Spirituality' = 4) ('nazarene' = 1) ('non demonination' = 1) ('non denominal fellowship' = 1) ('non denomination' = 1) ('non denominational' = 1) ('Non denominational' = 1) ('non denominational Christian' = 1) ('Non Denominational Christian' = 1) ('non-demonational' = 1) ('non-demoninational' = 1) ('non-denomination' = 1) ('non-denominational' = 1) ('nondemoninational' = 1) ('nondemoninational evangelical' = 1) ('nondenomination' = 1) ('none denominational' = 1) ('None of your business' = 4) ('nonedenomanation' = 1) ('not religious' = 5) ('orthodoxy' = 4) ('other' = 4) ('pagan' = 4) ('pentacostal' = 1) ('Pentecostal' = 1) ('penticostal' = 1) ('Reformed church' = 1) ('Restored Church of Jesus Christ' = 4) ('science of Mind' = 4) ('sda' = 1) ('seventh day adventist' = 1) ('seventh-day adventist' = 1) ('spiritual' = 4) ('the church of jesus christ of latter day saints' = 4) ('unitarian' = 4) ('Unitarian' = 4) ('United Methodist' = 1) ('unknown' = 4) ('Urantian' = 4) ('wicca' = 4) into NW9ZG3. execute. frequencies vars = NW9ZG3. recode NW9ZG3 (sysmis = -99). execute. missing values W9ZG2 (). recode W9ZG2 (sysmis = -99) (else = copy) into w9zg2wk. execute. *compute w9relig. do if w9zg2wk = 1. compute w9relig = 1. else if w9zg2wk = 2. compute w9relig = 2. else if w9zg2wk = 3. compute w9relig = 3. else if w9zg2wk = 4 and NW9ZG3 = 1. compute w9relig = 1. else if w9zg2wk = 4 and NW9ZG3 = 4. compute w9relig = 4. else if w9zg2wk = 4 and NW9ZG3 = 5. compute w9relig = 5. else if w9zg2wk = 4 and NW9ZG3 = -99. compute w9relig = 4. else if w9zg2wk = 5. compute w9relig = 5. else if w9zg2wk < 0. compute w9relig = w9zg2wk. end if. frequencies vars = w9relig. *compute der22. do if w1relig > 0. compute der22 = w1relig. else if w1relig < 0 and w9relig > 0. compute der22 = w9relig. else if w1relig = -99 and w9relig = -99. compute der22 = -6. else if w1relig = -5 and w9relig = -5. compute der22 = -5. else if w1relig = -1 and w9relig = -1. compute der22 = -1. else if w1relig < 0 and w9relig < 0. compute der22 = -2. end if. formats der22 (f2.0). *recode missing values, assignment of missing values contstructed from mutliple waves in some cases was ambiguous. variable labels der22 'der22. DERIVED. Religion'. value labels der22 1 '1. Protestant' 2 '2. Catholic' 3 '3. Jewish' 4 '4. Other' 5 '5. No Religion' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. frequencies vars = der22. ***************************************** *** RACE SUMMARY W/O ETHNICITY: der23 *** *****************************************. compute white_only=-9. do if rraceblack=1 OR rracewhite=0 OR rraceamind=1 OR rracealaska=1 OR rraceasian=1 OR rracehawaiian=1 OR rracepacisle=1 OR rraceother=1. compute white_only=0. else if rracewhite=1 & ( rraceblack=0 AND rraceamind=0 AND rracealaska=0 AND rraceasian=0 AND rracehawaiian=0 AND rracepacisle=0 AND rraceother=0 ). compute white_only=1. else if rraceblack=0 AND rracewhite=0 AND rraceamind=0 AND rracealaska=0 AND rraceasian=0 AND rracehawaiian=0 AND rracepacisle=0 AND rraceother=0. compute white_only=0. end if. compute black_only=-9. do if rraceblack=0 OR rracewhite=1 OR rraceamind=1 OR rracealaska=1 OR rraceasian=1 OR rracehawaiian=1 OR rracepacisle=1 OR rraceother=1. compute black_only=0. else if rracewhite=0 & ( rraceblack=1 AND rraceamind=0 AND rracealaska=0 AND rraceasian=0 AND rracehawaiian=0 AND rracepacisle=0 AND rraceother=0 ). compute black_only=1. else if rraceblack=0 AND rracewhite=0 AND rraceamind=0 AND rracealaska=0 AND rraceasian=0 AND rracehawaiian=0 AND rracepacisle=0 AND rraceother=0. compute black_only=0. end if. compute other_only=-9. do if white_only=1 OR black_only=1. compute other_only=0. else if rraceamind=1 OR rracealaska=1 OR rraceasian=1 OR rracehawaiian=1 OR rracepacisle=1 OR rraceother=1. compute other_only=1. else if rracewhite=1 & rraceblack=1. compute other_only=1. else if ( rraceamind=0 AND rracealaska=0 AND rraceasian=0 AND rracehawaiian=0 AND rracepacisle=0 AND rraceother=0 AND rraceother=0 AND rracewhite=0 AND rraceblack=0). compute other_only=0. end if. compute summary_race1=-9. if white_only=0 AND black_only=0 AND other_only=0 summary_race1=0. if white_only=1 summary_race1=1. if black_only=1 summary_race1=2. if other_only=1 summary_race1=3. recode rracealaska (-6=sysmis)(else=copy) into rracealaska. recode rraceamind (-6=sysmis)(else=copy) into rraceamind. recode rraceblack (-6=sysmis)(else=copy) into rraceblack. recode rracepacisle (-6=sysmis)(else=copy) into rracepacisle. recode rraceother (-6=sysmis)(else=copy) into rraceother. recode rraceasian (-6=sysmis)(else=copy) into rraceasian. recode CP_Q14_01 (sysmis=-6)(else=copy) into CP_Q14_01. recode CP_Q14_02 (sysmis=-6)(else=copy) into CP_Q14_02. recode CP_Q14_03 (sysmis=-6)(else=copy) into CP_Q14_03. recode CP_Q14_04 (sysmis=-6)(else=copy) into CP_Q14_04. recode CP_Q14_05 (sysmis=-6)(else=copy) into CP_Q14_05. recode CP_Q14_06 (sysmis=-6)(else=copy) into CP_Q14_06. recode CP_Q14_07 (sysmis=-6)(else=copy) into CP_Q14_07. recode CP_Q14_08 (sysmis=-6)(else=copy) into CP_Q14_08. recode CP_Q14_09 (sysmis=-6)(else=copy) into CP_Q14_09. recode CP_Q14_10 (sysmis=-6)(else=copy) into CP_Q14_10. recode CP_Q14_11 (sysmis=-6)(else=copy) into CP_Q14_11. recode CP_Q14_12 (sysmis=-6)(else=copy) into CP_Q14_12. recode CP_Q14_13 (sysmis=-6)(else=copy) into CP_Q14_13. recode CP_Q14_14 (sysmis=-6)(else=copy) into CP_Q14_14. recode CP_Q14_15 (sysmis=-6)(else=copy) into CP_Q14_15. compute white_only2=-9. do if CP_Q14_02=1 OR CP_Q14_01=0 OR CP_Q14_03=1 OR CP_Q14_04=1 OR CP_Q14_05=1 OR CP_Q14_06=1 OR CP_Q14_07=1 OR CP_Q14_08=1 OR CP_Q14_09=1 OR CP_Q14_10=1 OR CP_Q14_11=1 OR CP_Q14_12=1 OR CP_Q14_13=1 OR CP_Q14_14=1 OR CP_Q14_15=1. compute white_only2=0. else if CP_Q14_01=1 AND ( CP_Q14_02=0 AND CP_Q14_03=0 AND CP_Q14_04=0 AND CP_Q14_05=0 AND CP_Q14_06=0 AND CP_Q14_07=0 AND CP_Q14_08=0 AND CP_Q14_09=0 AND CP_Q14_10=0 AND CP_Q14_11=0 AND CP_Q14_12=0 AND CP_Q14_13=0 AND CP_Q14_14=0 AND CP_Q14_15=0). compute white_only2=1. else if CP_Q14_01=0 AND ( CP_Q14_02=0 AND CP_Q14_03=0 AND CP_Q14_04=0 AND CP_Q14_05=0 AND CP_Q14_06=0 AND CP_Q14_07=0 AND CP_Q14_08=0 AND CP_Q14_09=0 AND CP_Q14_10=0 AND CP_Q14_11=0 AND CP_Q14_12=0 AND CP_Q14_13=0 AND CP_Q14_14=0 AND CP_Q14_15=0). compute white_only2=0. end if. compute black_only2=-9. do if CP_Q14_02=0 OR CP_Q14_01=1 OR CP_Q14_03=1 OR CP_Q14_04=1 OR CP_Q14_05=1 OR CP_Q14_06=1 OR CP_Q14_07=1 OR CP_Q14_08=1 OR CP_Q14_09=1 OR CP_Q14_10=1 OR CP_Q14_11=1 OR CP_Q14_12=1 OR CP_Q14_13=1 OR CP_Q14_14=1 OR CP_Q14_15=1. compute black_only2=0. else if CP_Q14_01=0 AND ( CP_Q14_02=1 AND CP_Q14_03=0 AND CP_Q14_04=0 AND CP_Q14_05=0 AND CP_Q14_06=0 AND CP_Q14_07=0 AND CP_Q14_08=0 AND CP_Q14_09=0 AND CP_Q14_10=0 AND CP_Q14_11=0 AND CP_Q14_12=0 AND CP_Q14_13=0 AND CP_Q14_14=0 AND CP_Q14_15=0). compute black_only2=1. else if CP_Q14_01=0 AND ( CP_Q14_02=0 AND CP_Q14_03=0 AND CP_Q14_04=0 AND CP_Q14_05=0 AND CP_Q14_06=0 AND CP_Q14_07=0 AND CP_Q14_08=0 AND CP_Q14_09=0 AND CP_Q14_10=0 AND CP_Q14_11=0 AND CP_Q14_12=0 AND CP_Q14_13=0 AND CP_Q14_14=0 AND CP_Q14_15=0). compute black_only2=0. end if. compute other_only2=-9. do if white_only2=1 OR black_only2=1. compute other_only2=0. else if ( CP_Q14_03=1 OR CP_Q14_04=1 OR CP_Q14_05=1 OR CP_Q14_06=1 OR CP_Q14_07=1 OR CP_Q14_08=1 OR CP_Q14_09=1 OR CP_Q14_10=1 OR CP_Q14_11=1 OR CP_Q14_12=1 OR CP_Q14_13=1 OR CP_Q14_14=1 OR CP_Q14_15=1). compute other_only2=1. else if CP_Q14_01=1 AND CP_Q14_02=1. compute other_only2=1. else if CP_Q14_01=0 AND ( CP_Q14_02=0 AND CP_Q14_03=0 AND CP_Q14_04=0 AND CP_Q14_05=0 AND CP_Q14_06=0 AND CP_Q14_07=0 AND CP_Q14_08=0 AND CP_Q14_09=0 AND CP_Q14_10=0 AND CP_Q14_11=0 AND CP_Q14_12=0 AND CP_Q14_13=0 AND CP_Q14_14=0 AND CP_Q14_15=0). compute other_only2=0. end if. compute summary_race2=-9. if white_only2=0 AND black_only2=0 AND other_only2=0 summary_race2=0. if white_only2=1 summary_race2=1. if black_only2=1 summary_race2=2. if other_only2=1 summary_race2=3. recode CP_Q14_01 (-6=sysmis)(else=copy) into CP_Q14_01. recode CP_Q14_02 (-6=sysmis)(else=copy) into CP_Q14_02. recode CP_Q14_03 (-6=sysmis)(else=copy) into CP_Q14_03. recode CP_Q14_04 (-6=sysmis)(else=copy) into CP_Q14_04. recode CP_Q14_05 (-6=sysmis)(else=copy) into CP_Q14_05. recode CP_Q14_06 (-6=sysmis)(else=copy) into CP_Q14_06. recode CP_Q14_07 (-6=sysmis)(else=copy) into CP_Q14_07. recode CP_Q14_08 (-6=sysmis)(else=copy) into CP_Q14_08. recode CP_Q14_09 (-6=sysmis)(else=copy) into CP_Q14_09. recode CP_Q14_10 (-6=sysmis)(else=copy) into CP_Q14_10. recode CP_Q14_11 (-6=sysmis)(else=copy) into CP_Q14_11. recode CP_Q14_12 (-6=sysmis)(else=copy) into CP_Q14_12. recode CP_Q14_13 (-6=sysmis)(else=copy) into CP_Q14_13. recode CP_Q14_14 (-6=sysmis)(else=copy) into CP_Q14_14. recode CP_Q14_15 (-6=sysmis)(else=copy) into CP_Q14_15. recode W1Y6_1 (sysmis=-6) (else=copy) into W1Y6_1. recode W1Y6_2 (sysmis=-6) (else=copy) into W1Y6_2. recode W1Y6_3 (sysmis=-6) (else=copy) into W1Y6_3. recode W1Y6_4 (sysmis=-6) (else=copy) into W1Y6_4. recode W1Y6_5 (sysmis=-6) (else=copy) into W1Y6_5. recode W1Y6_6 (sysmis=-6) (else=copy) into W1Y6_6. recode W1Y6_7 (sysmis=-6) (else=copy) into W1Y6_7. recode W1Y6_8 (sysmis=-6) (else=copy) into W1Y6_8. recode W1Y6_9 (sysmis=-6) (else=copy) into W1Y6_9. recode W1Y6_10 (sysmis=-6) (else=copy) into W1Y6_10. recode W1Y6_11 (sysmis=-6) (else=copy) into W1Y6_11. recode W1Y6_12 (sysmis=-6) (else=copy) into W1Y6_12. recode W1Y6_13 (sysmis=-6) (else=copy) into W1Y6_13. recode W1Y6_14 (sysmis=-6) (else=copy) into W1Y6_14. recode W1Y6_15 (sysmis=-6) (else=copy) into W1Y6_15. compute white_only3=-9 do if W1Y6_1=0 OR W1Y6_2=1 OR W1Y6_3=1 OR W1Y6_4=1 OR W1Y6_5=1 OR W1Y6_6=1 OR W1Y6_7=1 OR W1Y6_8=1 OR W1Y6_9=1 OR W1Y6_10=1 OR W1Y6_11=1 OR W1Y6_12=1 OR W1Y6_13=1 OR W1Y6_14=1 OR W1Y6_15=1. compute white_only3=0. else if W1Y6_1=1 AND ( W1Y6_2=0 AND W1Y6_3=0 AND W1Y6_4=0 AND W1Y6_5=0 AND W1Y6_6=0 AND W1Y6_7=0 AND W1Y6_8=0 AND W1Y6_9=0 AND W1Y6_10=0 AND W1Y6_11=0 AND W1Y6_12=0 AND W1Y6_13=0 AND W1Y6_14=0 AND W1Y6_15=0). compute white_only3=1. else if W1Y6_1=0 AND W1Y6_2=0 AND W1Y6_3=0 AND W1Y6_4=0 AND W1Y6_5=0 AND W1Y6_6=0 AND W1Y6_7=0 AND W1Y6_8=0 AND W1Y6_9=0 AND W1Y6_10=0 AND W1Y6_11=0 AND W1Y6_12=0 AND W1Y6_13=0 AND W1Y6_14=0 AND W1Y6_15=0. compute white_only3=0. end if. compute black_only3=-9 do if W1Y6_1=1 OR W1Y6_2=0 OR W1Y6_3=1 OR W1Y6_4=1 OR W1Y6_5=1 OR W1Y6_6=1 OR W1Y6_7=1 OR W1Y6_8=1 OR W1Y6_9=1 OR W1Y6_10=1 OR W1Y6_11=1 OR W1Y6_12=1 OR W1Y6_13=1 OR W1Y6_14=1 OR W1Y6_15=1. compute black_only3=0. else if W1Y6_1=0 AND ( W1Y6_2=1 AND W1Y6_3=0 AND W1Y6_4=0 AND W1Y6_5=0 AND W1Y6_6=0 AND W1Y6_7=0 AND W1Y6_8=0 AND W1Y6_9=0 AND W1Y6_10=0 AND W1Y6_11=0 AND W1Y6_12=0 AND W1Y6_13=0 AND W1Y6_14=0 AND W1Y6_15=0). compute black_only3=1. else if W1Y6_1=0 AND W1Y6_2=0 AND W1Y6_3=0 AND W1Y6_4=0 AND W1Y6_5=0 AND W1Y6_6=0 AND W1Y6_7=0 AND W1Y6_8=0 AND W1Y6_9=0 AND W1Y6_10=0 AND W1Y6_11=0 AND W1Y6_12=0 AND W1Y6_13=0 AND W1Y6_14=0 AND W1Y6_15=0. compute black_only3=0. end if. compute other_only3=-9. do if white_only3=1 OR black_only3=1. compute other_only3=0. else if ( W1Y6_3=1 OR W1Y6_4=1 OR W1Y6_5=1 OR W1Y6_6=1 OR W1Y6_7=1 OR W1Y6_8=1 OR W1Y6_9=1 OR W1Y6_10=1 OR W1Y6_11=1 OR W1Y6_12=1 OR W1Y6_13=1 OR W1Y6_14=1 OR W1Y6_15=1). compute other_only3=1 . else if W1Y6_1=1 AND W1Y6_2=1. compute other_only3=1. else if W1Y6_1=0 AND W1Y6_2=0 AND W1Y6_3=0 AND W1Y6_4=0 AND W1Y6_5=0 AND W1Y6_6=0 AND W1Y6_7=0 AND W1Y6_8=0 AND W1Y6_9=0 AND W1Y6_10=0 AND W1Y6_11=0 AND W1Y6_12=0 AND W1Y6_13=0 AND W1Y6_14=0 AND W1Y6_15=0. compute other_only3=0. end if. compute summary_race3=-9. if white_only3=0 AND black_only3=0 AND other_only3=0 summary_race3=0. if white_only3=1 summary_race3=1. if black_only3=1 summary_race3=2. if other_only3=1 summary_race3=3. recode W1Y6_1 (-6=sysmis) (else=copy) into W1Y6_1. recode W1Y6_2 (-6=sysmis) (else=copy) into W1Y6_2. recode W1Y6_3 (-6=sysmis) (else=copy) into W1Y6_3. recode W1Y6_4 (-6=sysmis) (else=copy) into W1Y6_4. recode W1Y6_5 (-6=sysmis) (else=copy) into W1Y6_5. recode W1Y6_6 (-6=sysmis) (else=copy) into W1Y6_6. recode W1Y6_7 (-6=sysmis) (else=copy) into W1Y6_7. recode W1Y6_8 (-6=sysmis) (else=copy) into W1Y6_8. recode W1Y6_9 (-6=sysmis) (else=copy) into W1Y6_9. recode W1Y6_10 (-6=sysmis) (else=copy) into W1Y6_10. recode W1Y6_11 (-6=sysmis) (else=copy) into W1Y6_11. recode W1Y6_12 (-6=sysmis) (else=copy) into W1Y6_12. recode W1Y6_13 (-6=sysmis) (else=copy) into W1Y6_13. recode W1Y6_14 (-6=sysmis) (else=copy) into W1Y6_14. recode W1Y6_15 (-6=sysmis) (else=copy) into W1Y6_15. recode W2W7_1 (sysmis=-6) (else=copy) into W2W7_1. recode W2W7_2 (sysmis=-6) (else=copy) into W2W7_2. recode W2W7_3 (sysmis=-6) (else=copy) into W2W7_3. recode W2W7_4 (sysmis=-6) (else=copy) into W2W7_4. recode W2W7_5 (sysmis=-6) (else=copy) into W2W7_5. recode W2W7_6 (sysmis=-6) (else=copy) into W2W7_6. recode W2W7_7 (sysmis=-6) (else=copy) into W2W7_7. recode W2W7_8 (sysmis=-6) (else=copy) into W2W7_8. recode W2W7_9 (sysmis=-6) (else=copy) into W2W7_9. recode W2W7_10 (sysmis=-6) (else=copy) into W2W7_10. recode W2W7_11 (sysmis=-6) (else=copy) into W2W7_11. recode W2W7_12 (sysmis=-6) (else=copy) into W2W7_12. recode W2W7_13 (sysmis=-6) (else=copy) into W2W7_13. recode W2W7_14 (sysmis=-6) (else=copy) into W2W7_14. recode W2W7_15 (sysmis=-6) (else=copy) into W2W7_15. compute white_only4=-9 do if W2W7_1=0 OR W2W7_2=1 OR W2W7_3=1 OR W2W7_4=1 OR W2W7_5=1 OR W2W7_6=1 OR W2W7_7=1 OR W2W7_8=1 OR W2W7_9=1 OR W2W7_10=1 OR W2W7_11=1 OR W2W7_12=1 OR W2W7_13=1 OR W2W7_14=1 OR W2W7_15=1. compute white_only4=0. else if W2W7_1=1 AND ( W2W7_2=0 AND W2W7_3=0 AND W2W7_4=0 AND W2W7_5=0 AND W2W7_6=0 AND W2W7_7=0 AND W2W7_8=0 AND W2W7_9=0 AND W2W7_10=0 AND W2W7_11=0 AND W2W7_12=0 AND W2W7_13=0 AND W2W7_14=0 AND W2W7_15=0). compute white_only4=1. else if W2W7_1=0 AND W2W7_2=0 AND W2W7_3=0 AND W2W7_4=0 AND W2W7_5=0 AND W2W7_6=0 AND W2W7_7=0 AND W2W7_8=0 AND W2W7_9=0 AND W2W7_10=0 AND W2W7_11=0 AND W2W7_12=0 AND W2W7_13=0 AND W2W7_14=0 AND W2W7_15=0. compute white_only4=0. end if. compute black_only4=-9 do if W2W7_1=1 OR W2W7_2=0 OR W2W7_3=1 OR W2W7_4=1 OR W2W7_5=1 OR W2W7_6=1 OR W2W7_7=1 OR W2W7_8=1 OR W2W7_9=1 OR W2W7_10=1 OR W2W7_11=1 OR W2W7_12=1 OR W2W7_13=1 OR W2W7_14=1 OR W2W7_15=1. compute black_only4=0. else if W2W7_1=0 AND ( W2W7_2=1 AND W2W7_3=0 AND W2W7_4=0 AND W2W7_5=0 AND W2W7_6=0 AND W2W7_7=0 AND W2W7_8=0 AND W2W7_9=0 AND W2W7_10=0 AND W2W7_11=0 AND W2W7_12=0 AND W2W7_13=0 AND W2W7_14=0 AND W2W7_15=0). compute black_only4=1. else if W2W7_1=0 AND W2W7_2=0 AND W2W7_3=0 AND W2W7_4=0 AND W2W7_5=0 AND W2W7_6=0 AND W2W7_7=0 AND W2W7_8=0 AND W2W7_9=0 AND W2W7_10=0 AND W2W7_11=0 AND W2W7_12=0 AND W2W7_13=0 AND W2W7_14=0 AND W2W7_15=0. compute black_only4=0. end if. compute other_only4=-9. do if white_only4=1 OR black_only4=1. compute other_only4=0. else if ( W2W7_3=1 OR W2W7_4=1 OR W2W7_5=1 OR W2W7_6=1 OR W2W7_7=1 OR W2W7_8=1 OR W2W7_9=1 OR W2W7_10=1 OR W2W7_11=1 OR W2W7_12=1 OR W2W7_13=1 OR W2W7_14=1 OR W2W7_15=1). compute other_only4=1 . else if W2W7_1=1 AND W2W7_2=1. compute other_only4=1. else if W2W7_1=0 AND W2W7_2=0 AND W2W7_3=0 AND W2W7_4=0 AND W2W7_5=0 AND W2W7_6=0 AND W2W7_7=0 AND W2W7_8=0 AND W2W7_9=0 AND W2W7_10=0 AND W2W7_11=0 AND W2W7_12=0 AND W2W7_13=0 AND W2W7_14=0 AND W2W7_15=0. compute other_only4=0. end if. compute summary_race4=-9. if white_only4=0 AND black_only4=0 AND other_only4=0 summary_race4=0. if white_only4=1 summary_race4=1. if black_only4=1 summary_race4=2. if other_only4=1 summary_race4=3. recode W2W7_1 (-6=sysmis) (else=copy) into W2W7_1. recode W2W7_2 (-6=sysmis) (else=copy) into W2W7_2. recode W2W7_3 (-6=sysmis) (else=copy) into W2W7_3. recode W2W7_4 (-6=sysmis) (else=copy) into W2W7_4. recode W2W7_5 (-6=sysmis) (else=copy) into W2W7_5. recode W2W7_6 (-6=sysmis) (else=copy) into W2W7_6. recode W2W7_7 (-6=sysmis) (else=copy) into W2W7_7. recode W2W7_8 (-6=sysmis) (else=copy) into W2W7_8. recode W2W7_9 (-6=sysmis) (else=copy) into W2W7_9. recode W2W7_10 (-6=sysmis) (else=copy) into W2W7_10. recode W2W7_11 (-6=sysmis) (else=copy) into W2W7_11. recode W2W7_12 (-6=sysmis) (else=copy) into W2W7_12. recode W2W7_13 (-6=sysmis) (else=copy) into W2W7_13. recode W2W7_14 (-6=sysmis) (else=copy) into W2W7_14. recode W2W7_15 (-6=sysmis) (else=copy) into W2W7_15. recode W9ZW7_1 (sysmis=-6) (else=copy) into W9ZW7_1. recode W9ZW7_2 (sysmis=-6) (else=copy) into W9ZW7_2. recode W9ZW7_3 (sysmis=-6) (else=copy) into W9ZW7_3. recode W9ZW7_4 (sysmis=-6) (else=copy) into W9ZW7_4. recode W9ZW7_5 (sysmis=-6) (else=copy) into W9ZW7_5. recode W9ZW7_6 (sysmis=-6) (else=copy) into W9ZW7_6. recode W9ZW7_7 (sysmis=-6) (else=copy) into W9ZW7_7. recode W9ZW7_8 (sysmis=-6) (else=copy) into W9ZW7_8. recode W9ZW7_9 (sysmis=-6) (else=copy) into W9ZW7_9. recode W9ZW7_10 (sysmis=-6) (else=copy) into W9ZW7_10. recode W9ZW7_11 (sysmis=-6) (else=copy) into W9ZW7_11. recode W9ZW7_12 (sysmis=-6) (else=copy) into W9ZW7_12. recode W9ZW7_13 (sysmis=-6) (else=copy) into W9ZW7_13. recode W9ZW7_14 (sysmis=-6) (else=copy) into W9ZW7_14. recode W9ZW7_15 (sysmis=-6) (else=copy) into W9ZW7_15. compute white_only5=-9 do if W9ZW7_1=0 OR W9ZW7_2=1 OR W9ZW7_3=1 OR W9ZW7_4=1 OR W9ZW7_5=1 OR W9ZW7_6=1 OR W9ZW7_7=1 OR W9ZW7_8=1 OR W9ZW7_9=1 OR W9ZW7_10=1 OR W9ZW7_11=1 OR W9ZW7_12=1 OR W9ZW7_13=1 OR W9ZW7_14=1 OR W9ZW7_15=1. compute white_only5=0. else if W9ZW7_1=1 AND ( W9ZW7_2=0 AND W9ZW7_3=0 AND W9ZW7_4=0 AND W9ZW7_5=0 AND W9ZW7_6=0 AND W9ZW7_7=0 AND W9ZW7_8=0 AND W9ZW7_9=0 AND W9ZW7_10=0 AND W9ZW7_11=0 AND W9ZW7_12=0 AND W9ZW7_13=0 AND W9ZW7_14=0 AND W9ZW7_15=0). compute white_only5=1. else if W9ZW7_1=0 AND W9ZW7_2=0 AND W9ZW7_3=0 AND W9ZW7_4=0 AND W9ZW7_5=0 AND W9ZW7_6=0 AND W9ZW7_7=0 AND W9ZW7_8=0 AND W9ZW7_9=0 AND W9ZW7_10=0 AND W9ZW7_11=0 AND W9ZW7_12=0 AND W9ZW7_13=0 AND W9ZW7_14=0 AND W9ZW7_15=0. compute white_only5=0. end if. compute black_only5=-9 do if W9ZW7_1=1 OR W9ZW7_2=0 OR W9ZW7_3=1 OR W9ZW7_4=1 OR W9ZW7_5=1 OR W9ZW7_6=1 OR W9ZW7_7=1 OR W9ZW7_8=1 OR W9ZW7_9=1 OR W9ZW7_10=1 OR W9ZW7_11=1 OR W9ZW7_12=1 OR W9ZW7_13=1 OR W9ZW7_14=1 OR W9ZW7_15=1. compute black_only5=0. else if W9ZW7_1=0 AND ( W9ZW7_2=1 AND W9ZW7_3=0 AND W9ZW7_4=0 AND W9ZW7_5=0 AND W9ZW7_6=0 AND W9ZW7_7=0 AND W9ZW7_8=0 AND W9ZW7_9=0 AND W9ZW7_10=0 AND W9ZW7_11=0 AND W9ZW7_12=0 AND W9ZW7_13=0 AND W9ZW7_14=0 AND W9ZW7_15=0). compute black_only5=1. else if W9ZW7_1=0 AND W9ZW7_2=0 AND W9ZW7_3=0 AND W9ZW7_4=0 AND W9ZW7_5=0 AND W9ZW7_6=0 AND W9ZW7_7=0 AND W9ZW7_8=0 AND W9ZW7_9=0 AND W9ZW7_10=0 AND W9ZW7_11=0 AND W9ZW7_12=0 AND W9ZW7_13=0 AND W9ZW7_14=0 AND W9ZW7_15=0. compute black_only5=0. end if. compute other_only5=-9. do if white_only5=1 OR black_only5=1. compute other_only5=0. else if ( W9ZW7_3=1 OR W9ZW7_4=1 OR W9ZW7_5=1 OR W9ZW7_6=1 OR W9ZW7_7=1 OR W9ZW7_8=1 OR W9ZW7_9=1 OR W9ZW7_10=1 OR W9ZW7_11=1 OR W9ZW7_12=1 OR W9ZW7_13=1 OR W9ZW7_14=1 OR W9ZW7_15=1). compute other_only5=1 . else if W9ZW7_1=1 AND W9ZW7_2=1. compute other_only5=1. else if W9ZW7_1=0 AND W9ZW7_2=0 AND W9ZW7_3=0 AND W9ZW7_4=0 AND W9ZW7_5=0 AND W9ZW7_6=0 AND W9ZW7_7=0 AND W9ZW7_8=0 AND W9ZW7_9=0 AND W9ZW7_10=0 AND W9ZW7_11=0 AND W9ZW7_12=0 AND W9ZW7_13=0 AND W9ZW7_14=0 AND W9ZW7_15=0. compute other_only5=0. end if. compute summary_race5=-9. if white_only5=0 AND black_only5=0 AND other_only5=0 summary_race5=0. if white_only5=1 summary_race5=1. if black_only5=1 summary_race5=2. if other_only5=1 summary_race5=3. recode W9ZW7_1 (-6=sysmis) (else=copy) into W9ZW7_1. recode W9ZW7_2 (-6=sysmis) (else=copy) into W9ZW7_2. recode W9ZW7_3 (-6=sysmis) (else=copy) into W9ZW7_3. recode W9ZW7_4 (-6=sysmis) (else=copy) into W9ZW7_4. recode W9ZW7_5 (-6=sysmis) (else=copy) into W9ZW7_5. recode W9ZW7_6 (-6=sysmis) (else=copy) into W9ZW7_6. recode W9ZW7_7 (-6=sysmis) (else=copy) into W9ZW7_7. recode W9ZW7_8 (-6=sysmis) (else=copy) into W9ZW7_8. recode W9ZW7_9 (-6=sysmis) (else=copy) into W9ZW7_9. recode W9ZW7_10 (-6=sysmis) (else=copy) into W9ZW7_10. recode W9ZW7_11 (-6=sysmis) (else=copy) into W9ZW7_11. recode W9ZW7_12 (-6=sysmis) (else=copy) into W9ZW7_12. recode W9ZW7_13 (-6=sysmis) (else=copy) into W9ZW7_13. recode W9ZW7_14 (-6=sysmis) (else=copy) into W9ZW7_14. recode W9ZW7_15 (-6=sysmis) (else=copy) into W9ZW7_15. recode W10ZW7_1 (sysmis=-6) (else=copy) into W10ZW7_1. recode W10ZW7_2 (sysmis=-6) (else=copy) into W10ZW7_2. recode W10ZW7_3 (sysmis=-6) (else=copy) into W10ZW7_3. recode W10ZW7_4 (sysmis=-6) (else=copy) into W10ZW7_4. recode W10ZW7_5 (sysmis=-6) (else=copy) into W10ZW7_5. recode W10ZW7_6 (sysmis=-6) (else=copy) into W10ZW7_6. recode W10ZW7_7 (sysmis=-6) (else=copy) into W10ZW7_7. recode W10ZW7_8 (sysmis=-6) (else=copy) into W10ZW7_8. recode W10ZW7_9 (sysmis=-6) (else=copy) into W10ZW7_9. recode W10ZW7_10 (sysmis=-6) (else=copy) into W10ZW7_10. recode W10ZW7_11 (sysmis=-6) (else=copy) into W10ZW7_11. recode W10ZW7_12 (sysmis=-6) (else=copy) into W10ZW7_12. recode W10ZW7_13 (sysmis=-6) (else=copy) into W10ZW7_13. recode W10ZW7_14 (sysmis=-6) (else=copy) into W10ZW7_14. recode W10ZW7_15 (sysmis=-6) (else=copy) into W10ZW7_15. compute white_only6=-9 do if W10ZW7_1=0 OR W10ZW7_2=1 OR W10ZW7_3=1 OR W10ZW7_4=1 OR W10ZW7_5=1 OR W10ZW7_6=1 OR W10ZW7_7=1 OR W10ZW7_8=1 OR W10ZW7_9=1 OR W10ZW7_10=1 OR W10ZW7_11=1 OR W10ZW7_12=1 OR W10ZW7_13=1 OR W10ZW7_14=1 OR W10ZW7_15=1. compute white_only6=0. else if W10ZW7_1=1 AND ( W10ZW7_2=0 AND W10ZW7_3=0 AND W10ZW7_4=0 AND W10ZW7_5=0 AND W10ZW7_6=0 AND W10ZW7_7=0 AND W10ZW7_8=0 AND W10ZW7_9=0 AND W10ZW7_10=0 AND W10ZW7_11=0 AND W10ZW7_12=0 AND W10ZW7_13=0 AND W10ZW7_14=0 AND W10ZW7_15=0). compute white_only6=1. else if W10ZW7_1=0 AND W10ZW7_2=0 AND W10ZW7_3=0 AND W10ZW7_4=0 AND W10ZW7_5=0 AND W10ZW7_6=0 AND W10ZW7_7=0 AND W10ZW7_8=0 AND W10ZW7_9=0 AND W10ZW7_10=0 AND W10ZW7_11=0 AND W10ZW7_12=0 AND W10ZW7_13=0 AND W10ZW7_14=0 AND W10ZW7_15=0. compute white_only6=0. end if. compute black_only6=-9 do if W10ZW7_1=1 OR W10ZW7_2=0 OR W10ZW7_3=1 OR W10ZW7_4=1 OR W10ZW7_5=1 OR W10ZW7_6=1 OR W10ZW7_7=1 OR W10ZW7_8=1 OR W10ZW7_9=1 OR W10ZW7_10=1 OR W10ZW7_11=1 OR W10ZW7_12=1 OR W10ZW7_13=1 OR W10ZW7_14=1 OR W10ZW7_15=1. compute black_only6=0. else if W10ZW7_1=0 AND ( W10ZW7_2=1 AND W10ZW7_3=0 AND W10ZW7_4=0 AND W10ZW7_5=0 AND W10ZW7_6=0 AND W10ZW7_7=0 AND W10ZW7_8=0 AND W10ZW7_9=0 AND W10ZW7_10=0 AND W10ZW7_11=0 AND W10ZW7_12=0 AND W10ZW7_13=0 AND W10ZW7_14=0 AND W10ZW7_15=0). compute black_only6=1. else if W10ZW7_1=0 AND W10ZW7_2=0 AND W10ZW7_3=0 AND W10ZW7_4=0 AND W10ZW7_5=0 AND W10ZW7_6=0 AND W10ZW7_7=0 AND W10ZW7_8=0 AND W10ZW7_9=0 AND W10ZW7_10=0 AND W10ZW7_11=0 AND W10ZW7_12=0 AND W10ZW7_13=0 AND W10ZW7_14=0 AND W10ZW7_15=0. compute black_only6=0. end if. compute other_only6=-9. do if white_only6=1 OR black_only6=1. compute other_only6=0. else if ( W10ZW7_3=1 OR W10ZW7_4=1 OR W10ZW7_5=1 OR W10ZW7_6=1 OR W10ZW7_7=1 OR W10ZW7_8=1 OR W10ZW7_9=1 OR W10ZW7_10=1 OR W10ZW7_11=1 OR W10ZW7_12=1 OR W10ZW7_13=1 OR W10ZW7_14=1 OR W10ZW7_15=1). compute other_only6=1 . else if W10ZW7_1=1 AND W10ZW7_2=1. compute other_only6=1. else if W10ZW7_1=0 AND W10ZW7_2=0 AND W10ZW7_3=0 AND W10ZW7_4=0 AND W10ZW7_5=0 AND W10ZW7_6=0 AND W10ZW7_7=0 AND W10ZW7_8=0 AND W10ZW7_9=0 AND W10ZW7_10=0 AND W10ZW7_11=0 AND W10ZW7_12=0 AND W10ZW7_13=0 AND W10ZW7_14=0 AND W10ZW7_15=0. compute other_only6=0. end if. compute summary_race6=-9. if white_only6=0 AND black_only6=0 AND other_only6=0 summary_race6=0. if white_only6=1 summary_race6=1. if black_only6=1 summary_race6=2. if other_only6=1 summary_race6=3. recode W10ZW7_1 (-6=sysmis) (else=copy) into W10ZW7_1. recode W10ZW7_2 (-6=sysmis) (else=copy) into W10ZW7_2. recode W10ZW7_3 (-6=sysmis) (else=copy) into W10ZW7_3. recode W10ZW7_4 (-6=sysmis) (else=copy) into W10ZW7_4. recode W10ZW7_5 (-6=sysmis) (else=copy) into W10ZW7_5. recode W10ZW7_6 (-6=sysmis) (else=copy) into W10ZW7_6. recode W10ZW7_7 (-6=sysmis) (else=copy) into W10ZW7_7. recode W10ZW7_8 (-6=sysmis) (else=copy) into W10ZW7_8. recode W10ZW7_9 (-6=sysmis) (else=copy) into W10ZW7_9. recode W10ZW7_10 (-6=sysmis) (else=copy) into W10ZW7_10. recode W10ZW7_11 (-6=sysmis) (else=copy) into W10ZW7_11. recode W10ZW7_12 (-6=sysmis) (else=copy) into W10ZW7_12. recode W10ZW7_13 (-6=sysmis) (else=copy) into W10ZW7_13. recode W10ZW7_14 (-6=sysmis) (else=copy) into W10ZW7_14. recode W10ZW7_15 (-6=sysmis) (else=copy) into W10ZW7_15. recode W16Q14_1 (sysmis=-6)(else=copy) into W16Q14_1. recode W16Q14_2 (sysmis=-6)(else=copy) into W16Q14_2. recode W16Q14_3 (sysmis=-6)(else=copy) into W16Q14_3. recode W16Q14_5 (sysmis=-6)(else=copy) into W16Q14_5. recode W16Q14_6 (sysmis=-6)(else=copy) into W16Q14_6. recode W16Q14_7 (sysmis=-6)(else=copy) into W16Q14_7. recode W16Q14_8 (sysmis=-6)(else=copy) into W16Q14_8. recode W16Q14_9 (sysmis=-6)(else=copy) into W16Q14_9. recode W16Q14_10 (sysmis=-6)(else=copy) into W16Q14_10. recode W16Q14_11 (sysmis=-6)(else=copy) into W16Q14_11. recode W16Q14_13 (sysmis=-6)(else=copy) into W16Q14_13. recode W16Q14_14 (sysmis=-6)(else=copy) into W16Q14_14. recode W16Q14_15 (sysmis=-6)(else=copy) into W16Q14_15. recode W16Q14_16 (sysmis=-6)(else=copy) into W16Q14_16. recode W16Q14_18 (sysmis=-6)(else=copy) into W16Q14_18. compute white_only7=-9. do if W16Q14_1=0 OR W16Q14_2=1 OR W16Q14_3=1 OR W16Q14_5=1 OR W16Q14_6=1 OR W16Q14_7=1 OR W16Q14_8=1 OR W16Q14_9=1 OR W16Q14_10=1 OR W16Q14_11=1 OR W16Q14_13=1 OR W16Q14_14=1 OR W16Q14_15=1 OR W16Q14_16=1 OR W16Q14_18=1. compute white_only7=0. else if W16Q14_1=1 AND ( W16Q14_2=0 AND W16Q14_3=0 AND W16Q14_5=0 AND W16Q14_6=0 AND W16Q14_7=0 AND W16Q14_8=0 AND W16Q14_9=0 AND W16Q14_10=0 AND W16Q14_11=0 AND W16Q14_13=0 AND W16Q14_14=0 AND W16Q14_15=0 AND W16Q14_16=0 AND W16Q14_18=0). compute white_only7=1. else if W16Q14_1=0 AND ( W16Q14_2=0 AND W16Q14_3=0 AND W16Q14_5=0 AND W16Q14_6=0 AND W16Q14_7=0 AND W16Q14_8=0 AND W16Q14_9=0 AND W16Q14_10=0 AND W16Q14_11=0 AND W16Q14_13=0 AND W16Q14_14=0 AND W16Q14_15=0 AND W16Q14_16=0 AND W16Q14_18=0). compute white_only7=0. end if. compute black_only7=-9. do if W16Q14_2=0 OR W16Q14_1=1 OR W16Q14_3=1 OR W16Q14_5=1 OR W16Q14_6=1 OR W16Q14_7=1 OR W16Q14_8=1 OR W16Q14_9=1 OR W16Q14_10=1 OR W16Q14_11=1 OR W16Q14_13=1 OR W16Q14_14=1 OR W16Q14_15=1 OR W16Q14_16=1 OR W16Q14_18=1. compute black_only7=0. else if W16Q14_2=1 AND ( W16Q14_1=0 AND W16Q14_3=0 AND W16Q14_5=0 AND W16Q14_6=0 AND W16Q14_7=0 AND W16Q14_8=0 AND W16Q14_9=0 AND W16Q14_10=0 AND W16Q14_11=0 AND W16Q14_13=0 AND W16Q14_14=0 AND W16Q14_15=0 AND W16Q14_16=0 AND W16Q14_18=0). compute black_only7=1. else if W16Q14_1=0 AND ( W16Q14_2=0 AND W16Q14_3=0 AND W16Q14_5=0 AND W16Q14_6=0 AND W16Q14_7=0 AND W16Q14_8=0 AND W16Q14_9=0 AND W16Q14_10=0 AND W16Q14_11=0 AND W16Q14_13=0 AND W16Q14_14=0 AND W16Q14_15=0 AND W16Q14_16=0 AND W16Q14_18=0). compute black_only7=0. end if. compute other_only7=-9. do if black_only7=1 OR white_only7=1. compute other_only7=0. else if (W16Q14_3=1 OR W16Q14_5=1 OR W16Q14_6=1 OR W16Q14_7=1 OR W16Q14_8=1 OR W16Q14_9=1 OR W16Q14_10=1 OR W16Q14_11=1 OR W16Q14_13=1 OR W16Q14_14=1 OR W16Q14_15=1 OR W16Q14_16=1 OR W16Q14_18=1). compute other_only7=1. else if W16Q14_1=1 AND W16Q14_2=1. compute other_only7=1. else if W16Q14_1=0 AND ( W16Q14_2=0 AND W16Q14_3=0 AND W16Q14_5=0 AND W16Q14_6=0 AND W16Q14_7=0 AND W16Q14_8=0 AND W16Q14_9=0 AND W16Q14_10=0 AND W16Q14_11=0 AND W16Q14_13=0 AND W16Q14_14=0 AND W16Q14_15=0 AND W16Q14_16=0 AND W16Q14_18=0). compute other_only7=0. end if. compute summary_race7=-9. if white_only7=0 AND black_only7=0 AND other_only7=0 summary_race7=0. if white_only7=1 summary_race7=1. if black_only7=1 summary_race7=2. if other_only7=1 summary_race7=3. recode W16Q14_1 (-6=sysmis)(else=copy) into W16Q14_1. recode W16Q14_2 (-6=sysmis)(else=copy) into W16Q14_2. recode W16Q14_3 (-6=sysmis)(else=copy) into W16Q14_3. recode W16Q14_5 (-6=sysmis)(else=copy) into W16Q14_5. recode W16Q14_6 (-6=sysmis)(else=copy) into W16Q14_6. recode W16Q14_7 (-6=sysmis)(else=copy) into W16Q14_7. recode W16Q14_8 (-6=sysmis)(else=copy) into W16Q14_8. recode W16Q14_9 (-6=sysmis)(else=copy) into W16Q14_9. recode W16Q14_10 (-6=sysmis)(else=copy) into W16Q14_10. recode W16Q14_11 (-6=sysmis)(else=copy) into W16Q14_11. recode W16Q14_13 (-6=sysmis)(else=copy) into W16Q14_13. recode W16Q14_14 (-6=sysmis)(else=copy) into W16Q14_14. recode W16Q14_15 (-6=sysmis)(else=copy) into W16Q14_15. recode W16Q14_16 (-6=sysmis)(else=copy) into W16Q14_16. recode W16Q14_18 (-6=sysmis)(else=copy) into W16Q14_18. do if summary_race2>=0. compute der23=summary_race2. else if summary_race2<0 AND summary_race3>=0. compute der23=summary_race3. else if summary_race2<0 AND summary_race3<0 AND summary_race4>=0. compute der23=summary_race4. else if summary_race2<0 AND summary_race3<0 AND summary_race4<0 AND summary_race5>=0. compute der23=summary_race5. else if summary_race2<0 AND summary_race3<0 AND summary_race4<0 AND summary_race5<0 AND summary_race6>=0. compute der23=summary_race6. else if summary_race2<0 AND summary_race3<0 AND summary_race4<0 AND summary_race5<0 AND summary_race6<0 AND summary_race7>=0. compute der23=summary_race7. else if summary_race2<0 AND summary_race3<0 AND summary_race4<0 AND summary_race5<0 AND summary_race6<0 AND summary_race7<0 AND summary_race1>=0. compute der23=summary_race1. else if summary_race2<0 AND summary_race3<0 AND summary_race4<0 AND summary_race5<0 AND summary_race6<0 AND summary_race7<0 AND summary_race1<0. do if summary_race2=summary_race3 & summary_race3=summary_race4 & summary_race4=summary_race5 & summary_race5=summary_race6 & summary_race6=summary_race7 & summary_race7=summary_race1 and summary_race1=-9. compute der23=-6. else if summary_race2=summary_race3 & summary_race3=summary_race4 & summary_race4=summary_race5 & summary_race5=summary_race6 & summary_race6=summary_race7 & summary_race7=summary_race1. compute der23=summary_race1. else. compute der23=-2. end if. end if. var lab der23 'der23. DERIVED. Race Summary w/o Ethnicity'. val lab der23 0. " 0. Not mentioned" 1. "1. White" 2. "2. Black" 3. "3. Other" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". execute. ***************************** *** MARITAL STATUS: der24 *** *****************************. *frequencies vars = CP_Q12 CP_Q12A. *frequencies vars = W1Y7 W1Y8. *display dictionary /variables = CP_Q12 CP_Q12A W1Y7 W1Y8. *marital status at profile. missing values CP_Q12 CP_Q12A (). execute. recode CP_Q12 (sysmis = -99) (else =copy) into cpq12wk. recode CP_Q12A (sysmis = -99) (else =copy) into cpq12awk. do if cpq12wk = 1. compute marstatcp = 1. else if cpq12wk = 2 and cpq12awk = 2. compute marstatcp = 2. else if cpq12wk = 2 and cpq12awk = 1. compute marstatcp = 3. else if cpq12wk = 3 and cpq12awk = 2. compute marstatcp = 4. else if cpq12wk = 3 and cpq12awk = 1. compute marstatcp = 5. else if cpq12wk = 4 and cpq12awk = 2. compute marstatcp = 6. else if cpq12wk = 4 and cpq12awk = 1. compute marstatcp = 7. else if cpq12wk = 5 and cpq12awk = 2. compute marstatcp = 8. else if cpq12wk = 5 and cpq12awk = 1. compute marstatcp = 9. else if cpq12wk > 0 and cpq12awk < 0. compute marstatcp = cpq12wk. else if cpq12wk = -1. compute marstatcp = -9. else if cpq12wk = -2. compute marstatcp = -1. else if cpq12wk = -7. compute marstatcp = -2. else if cpq12wk = -5. compute marstatcp = -2. end if. value labels marstatcp 1 '1. Married' 2 '2. Widowed' 3 '3. Widowed, living with a partner' 4 '4. Divorced' 5 '5. Divorced, living with a partner' 6 '6. Separated' 7 '7. Separated, living with a partner' 8 '8. Never married' 9 '9. Never married, living with a partner' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -3. '-3. Restricted access' -4. '-4. Error, see documentation' -5. '-5. Not asked, terminated' -6. '-6. Not asked, unit non-response' -7. '-7. No answer' -8. "-8. Don't Know" -9. '-9. Refused'. frequencies vars = marstatcp. *marital status at wave 1. missing values W1Y7 W1Y8 (). execute. recode W1Y7 (sysmis = -99) (else=copy) into w1y7wk. recode W1Y8 (sysmis = -99) (else=copy) into w1y8wk. execute. do if w1y7wk = 1. compute marstatw1 = 1. else if w1y7wk = 2 and w1y8wk = 2. compute marstatw1 = 2. else if w1y7wk = 2 and w1y8wk = 1. compute marstatw1 = 3. else if w1y7wk = 3 and w1y8wk = 2. compute marstatw1 = 4. else if w1y7wk = 3 and w1y8wk = 1. compute marstatw1 = 5. else if w1y7wk = 4 and w1y8wk = 2. compute marstatw1 = 6. else if w1y7wk = 4 and w1y8wk = 1. compute marstatw1 = 7. else if w1y7wk = 5 and w1y8wk = 2. compute marstatw1 = 8. else if w1y7wk = 5 and w1y8wk = 1. compute marstatw1 = 9. else if w1y7wk = 5 and w1y8wk < 0. compute marstatw1 = 8. else if w1y7wk = -2. compute marstatw1 = -4. end if. value labels marstatw1 1 '1. Married' 2 '2. Widowed' 3 '3. Widowed, living with a partner' 4 '4. Divorced' 5 '5. Divorced, living with a partner' 6 '6. Separated' 7 '7. Separated, living with a partner' 8 '8. Never married' 9 '9. Never married, living with a partner' -1 '-1. Inapplicable' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. frequencies vars = marstatw1. *marital status at wave 2. missing values W2W8 W2W8A (). execute. recode W2W8 (sysmis = -99) (else = copy) into w2w8wk. recode W2W8A (sysmis = -99) (else = copy) into w2w8awk. execute. do if w2w8wk = 1. compute marstatw2 = 1. else if w2w8wk = 2 and w2w8awk = 2. compute marstatw2 = 2. else if w2w8wk = 2 and w2w8awk = 1. compute marstatw2 = 3. else if w2w8wk = 3 and w2w8awk = 2. compute marstatw2 = 4. else if w2w8wk = 3 and w2w8awk = 1. compute marstatw2 = 5. else if w2w8wk = 4 and w2w8awk = 2. compute marstatw2 = 6. else if w2w8wk = 4 and w2w8awk = 1. compute marstatw2 = 7. else if w2w8wk = 5 and w2w8awk = 2. compute marstatw2 = 8. else if w2w8wk = 5 and w2w8awk = 1. compute marstatw2 = 9. else if w2w8wk = 5 and w2w8awk < 0. compute marstatw2 = 8. else if w2w8wk = -2. compute marstatw2 = -4. end if. value labels marstatw2 1 '1. Married' 2 '2. Widowed' 3 '3. Widowed, living with a partner' 4 '4. Divorced' 5 '5. Divorced, living with a partner' 6 '6. Separated' 7 '7. Separated, living with a partner' 8 '8. Never married' 9 '9. Never married, living with a partner' -1 '-1. Inapplicable' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. frequencies vars = marstatw2. *marital status at wave 9 missing values W9ZW8 W9ZW8A (). execute. recode W9ZW8 (sysmiss = -99) (else = copy) into w9zw8wk. recode W9ZW8A (sysmiss = -99) (else = copy) into w9zw8awk. execute. do if w9zw8wk = 1. compute marstatw9 = 1. else if w9zw8wk = 2 and w9zw8awk = 2. compute marstatw9 = 2. else if w9zw8wk = 2 and w9zw8awk = 1. compute marstatw9 = 3. else if w9zw8wk = 3 and w9zw8awk = 2. compute marstatw9 = 4. else if w9zw8wk = 3 and w9zw8awk = 1. compute marstatw9 = 5. else if w9zw8wk = 4 and w9zw8awk = 2. compute marstatw9 = 6. else if w9zw8wk = 4 and w9zw8awk = 1. compute marstatw9 = 7. else if w9zw8wk = 5 and w9zw8awk = 2. compute marstatw9 = 8. else if w9zw8wk = 5 and w9zw8awk = 1. compute marstatw9 = 9. else if w9zw8wk = 5 and w9zw8awk < 0. compute marstatw9 = 8. else if w9zw8wk = -2. compute marstatw9 = -4. end if. value labels marstatw9 1 '1. Married' 2 '2. Widowed' 3 '3. Widowed, living with a partner' 4 '4. Divorced' 5 '5. Divorced, living with a partner' 6 '6. Separated' 7 '7. Separated, living with a partner' 8 '8. Never married' 9 '9. Never married, living with a partner' -1 '-1. Inapplicable' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. frequencies vars = marstatw9. *marital status at wave 10 missing values W10ZW8 W10ZW8A (). execute. recode W10ZW8 (sysmiss = -99) (else = copy) into w10zw8wk. recode W10ZW8A (sysmiss = -99) (else = copy) into w10zw8awk. execute. do if w10zw8wk = 1. compute marstatw10 = 1. else if w10zw8wk = 2 and w10zw8awk = 2. compute marstatw10 = 2. else if w10zw8wk = 2 and w10zw8awk = 1. compute marstatw10 = 3. else if w10zw8wk = 3 and w10zw8awk = 2. compute marstatw10 = 4. else if w10zw8wk = 3 and w10zw8awk = 1. compute marstatw10 = 5. else if w10zw8wk = 4 and w10zw8awk = 2. compute marstatw10 = 6. else if w10zw8wk = 4 and w10zw8awk = 1. compute marstatw10 = 7. else if w10zw8wk = 5 and w10zw8awk = 2. compute marstatw10 = 8. else if w10zw8wk = 5 and w10zw8awk = 1. compute marstatw10 = 9. else if w10zw8wk = 5 and w10zw8awk < 0. compute marstatw10 = 8. else if w10zw8wk = -2. compute marstatw10 = -4. end if. value labels marstatw10 1 '1. Married' 2 '2. Widowed' 3 '3. Widowed, living with a partner' 4 '4. Divorced' 5 '5. Divorced, living with a partner' 6 '6. Separated' 7 '7. Separated, living with a partner' 8 '8. Never married' 9 '9. Never married, living with a partner' -1 '-1. Inapplicable' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. frequencies vars = marstatw10. *compute der24 recode marstatcp marstatw1 marstatw2 marstatw9 marstatw10 (sysmis=-99) (else = copy). execute. do if marstatcp > 0. compute der24 = marstatcp. else if marstatcp < 0 and marstatw1 > 0. compute der24 = marstatw1. else if marstatcp < 0 and marstatw1 < 0 and marstatw2 > 0. compute der24 = marstatw2. else if marstatcp < 0 and marstatw1 < 0 and marstatw2 < 0 and marstatw9 > 0. compute der24 = marstatw9. else if marstatcp < 0 and marstatw1 <0 and marstatw2 < 0 and marstatw9 < 0 and marstatw10 > 0. compute der24 = marstatw10. else if marstatcp = -99 and marstatw1 =-99 and marstatw2 =-99 and marstatw9 =-99 and marstatw10 =-99. compute der24 = -6. else if marstatcp = -7 and marstatw1 =-7 and marstatw2 =-7 and marstatw9 =-7 and marstatw10 =-7. compute der24 = -7. else if marstatcp = -5 and marstatw1 =-5 and marstatw2 =-5 and marstatw9 =-5 and marstatw10 =-5. compute der24 = -5. else if marstatcp = -1 and marstatw1 =-1 and marstatw2 =-1 and marstatw9 =-1 and marstatw10 =-1. compute der24 = -1. else if marstatcp < 0 and marstatw1 <0 and marstatw2 < 0 and marstatw9 < 0 and marstatw10 < 0. compute der24 = -2. end if. variable labels der24 'der24. DERIVED. Marital status'. value labels der24 1 'Married' 2 'Widowed' 3 'Widowed, living with a partner' 4 'Divorced' 5 'Divorced, living with a partner' 6 'Separated' 7 'Separated, living with a partner' 8 'Never married' 9 'Never married, living with a partner' -1 '-1. Inapplicable' -2 '-2. Missing, see documentation' -4 '-4. Error, see documentation' -5 '-5. Not asked, terminated' -6 '-6. Not asked, unit non-response' -7 '-7. No answer' -9 '-9. Refused'. execute. frequencies vars = der24. ********************************* *** VOTER REGISTRATION: der25 *** *********************************. recode w1b1 (sysmis=-6) (else=copy) into w1b1wk. recode w2b1 (sysmis=-6) (else=copy) into w2b1wk. recode w6b1 (sysmis=-6) (else=copy) into w6b1wk. recode w9b1 (sysmis=-6) (else=copy) into w9b1wk. compute Registration=w1b1wk. do if w1b1wk<0 and w2b1wk>0. compute Registration=w2b1wk. else if w1b1wk<0 and w2b1wk<0 and w6b1wk>0. compute Registration=w6b1wk. else if w1b1wk<0 and w2b1wk<0 and w6b1wk<0 and w9b1wk>0. compute Registration=w9b1wk. else if w1b1wk=-7 and w2b1wk=-7 and w6b1wk=-7 and w9b1wk=-7. compute Registration=-7. else if w1b1wk=-6 and w2b1wk=-6 and w6b1wk=-6 and w9b1wk=-6. compute Registration=-6. else if w1b1wk=-5 and w2b1wk=-5 and w6b1wk=-5 and w9b1wk=-5. compute Registration=-5. else if w1b1wk=-1 and w2b1wk=-1 and w6b1wk=-1 and w9b1wk=-1. compute Registration=-1. else if w1b1wk<0 and w2b1wk<0 and w6b1wk<0 and w9b1wk<0. compute Registration=-2. end if. execute. * Define Variable Properties. *Registration. VARIABLE LEVEL Registration (NOMINAL). FORMATS Registration(F2.0). VALUE LABELS Registration 1 '1. Yes, registered to vote' 2 '2. No, not registered' 3 "3. Don't Know" -9 '-9. Refused' -8 "-8. Don't Know" -7 '-7. No answer' -6 '-6. Not asked, unit non-response' -5 '-5. Not asked, terminated' -4 '-4. Error, see documentation' -3 '-3. Restricted access' -2 '-2. Missing, see documentation' -1 '-1. Inapplicable'. EXECUTE. rename variables (Registration=der25). execute. variable labels der25 "der25. DERIVED. Voter Registration". execute. frequencies vars = der25 der25. *WAVE 1, WAVE 2, WAVE 6, WAVE 9, WAVE 10 SUMMARY VARIABLES ****************************************************************** *W1, Section B: Usually Voted, Primary Vote Plan, Primary Turnout* ******************************************************************. recode w1b5 (sysmis=-6)(else=copy) into w1b5. recode w1b9 (sysmis=-6)(else=copy) into w1b9. miss val w1b5 w1b9 (). compute derw1b1=-99. do if w1b5>0. compute derw1b1=w1b5. else if w1b5<0 AND w1b9>0. compute derw1b1=w1b9. else if w1b5<0 AND w1b9<0. do if w1b5=-7 | w1b9=-7. compute derw1b1=-7. else if w1b5=-1 | w1b9=-1. compute derw1b1=-1. else if w1b5=-5 | w1b9=-5. compute derw1b1=-5. else if w1b5=w1b9 and w1b5=-6. compute derw1b1=-6. else. compute derw1b1=-2. end if. end if. exe. form derw1b1 (f2.0). var lab derw1b1 "derw1b1. DERIVED. Did R usually vote". val lab derw1b1 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Usually voted" 2 "2. Usually did not vote". * missing values for variable. recode w1b6 (sysmis=-6)(else=copy) into w1b6a. recode w1b10 (sysmis=-6)(else=copy) into w1b10a. recode w1b12 (sysmis=-6)(else=copy) into w1b12a. recode w1b14 (sysmis=-6)(else=copy) into w1b14a. miss val w1b6a w1b10a w1b12a w1b14a (). compute der1wb2=-99. do if w1b6a>0. compute derw1b2=w1b6a. else if w1b6a<0 AND w1b10a>0. compute derw1b2=w1b10a. else if w1b6a<0 AND w1b10a<0 AND w1b12a>0. compute derw1b2=w1b12a. else if w1b6a<0 AND w1b10a<0 AND w1b12a<0 AND w1b14a>0. compute derw1b2=w1b14a. else if w1b6a<0 AND w1b10a<0 AND w1b12a<0 AND w1b14a<0. do if w1b6a=-7 | w1b10a=-7 | w1b12a=-7 | w1b14a=-7. compute derw1b2=-7. else if w1b6a=-1 | w1b10a=-1 | w1b12a=-1 | w1b14a=-1. compute derw1b2=-1. else if w1b6a=-5 | w1b10a=-5 | w1b12a=-5 | w1b14a=-5. compute derw1b2=-5. else if w1b6a=w1b10a AND w1b10a=w1b12a AND w1b12a=w1b14a AND w1b14a=-6. compute derw1b2=-6. else. compute derw1b2=-2. end if. end if. form derw1b2 (f2.0). var labels derw1b2 "derw1b2. DERIVED. Primary vote plan". value labels derw1b2 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Did plan to vote" 2 "2. Did not plan to vote". recode w1b7 (sysmis=-6)(else=copy) into w1b7a. recode w1b11 (sysmis=-6)(else=copy) into w1b11a. recode w1b13 (sysmis=-6)(else=copy) into w1b13a. recode w1b15 (sysmis=-6)(else=copy) into w1b15a. miss val w1b7a w1b11a w1b13a w1b15a (). compute derw1b3=-99. do if w1b7a>0. compute derw1b3=w1b7a. else if w1b7a<0 AND w1b11a>0. compute derw1b3=w1b11a. else if w1b7a<0 AND w1b11a<0 AND w1b13a>0. compute derw1b3=w1b13a. else if w1b7a<0 AND w1b11a<0 AND w1b13a<0 AND w1b15a>0. compute derw1b3=w1b15a. else if w1b7a<0 AND w1b11a<0 AND w1b13a<0 AND w1b15a<0. do if w1b7a=-7 | w1b11a=-7 | w1b13a=-7 | w1b15a=-7. compute derw1b3=-7. else if w1b7a=-1 | w1b11a=-1 | w1b13a=-1 | w1b15a=-1. compute derw1b3=-1. else if w1b7a=-5 | w1b11a=-5 | w1b13a=-5 | w1b15a=-5. compute derw1b3=-5. else if w1b7a=w1b11a & w1b11a=w1b13a & w1b13a=w1b15a & w1b15a=-6. compute derw1b3=-6. else. compute derw1b3=-2. end if. end if. exe. form derw1b3 (f2.0). var labels derw1b3 "derw1b3. DERIVED. Primary turnout". value labels derw1b3 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Definitely did not vote in a {#caucus}" 2 "2. Definitely voted in person at a polling place on election day" 3 "3. Definitely voted in person at a polling place before election day" 4 "4. Definitely voted by mailing a ballot to elections officials before election day" 5 "5. Definitely voted in some other way" 6 "6. Not completely sure whether you voted or not". execute. ************************************************************************************************* *W1, Section F: Hypo Vote Clinton v Romney, Clinton v Giuliani, Obama v Romney, Obama v Giuliani* *************************************************************************************************. * This creates derived variables for four hypothetical pairwise contests: Clinton vs Giuliani (or Giuliani vs Clinton) derw1fcg Clinton vs Romney (or Romney vs Clinton) derw1fcr Obama vs Giuliani (or Giuliani vs Obama) derw1fog Obama vs Romney (or Romney vs Obama) derw1for . * SUMMARY W1F Clinton v Giuliani, derw1fcg. compute derw1fcg=-99. val lab derw1fcg -7 '-7. No answer' -6 '-6. Unit nonresponse' 1 '1. Clinton' 2 '2. Giuliani' . var lab derw1fcg 'summary W1F Clinton v Giuliani' . * Clinton vs Giuliani at W1F1. if w1f1=1 and w1name1=1 and w1name2=3 derw1fcg=1. if w1f1=2 and w1name1=1 and w1name2=3 derw1fcg=2. if w1f1=-7 and w1name1=1 and w1name2=3 derw1fcg=-7. if w1f1=-5 and w1name1=1 and w1name2=3 derw1fcg=-5. * Giuliani vs Clinton at W1F1. if w1f1=1 and w1name1=3 and w1name2=1 derw1fcg=2. if w1f1=2 and w1name1=3 and w1name2=1 derw1fcg=1. if w1f1=-7 and w1name1=3 and w1name2=1 derw1fcg=-7. if w1f1=-5 and w1name1=3 and w1name2=1 derw1fcg=-5. * Clinton vs Giuliani at W1F3. if w1f3=1 and w1name3=1 and w1name4=3 derw1fcg=1. if w1f3=2 and w1name3=1 and w1name4=3 derw1fcg=2. if w1f3=-7 and w1name3=1 and w1name4=3 derw1fcg=-7. if w1f3=-5 and w1name3=1 and w1name4=3 derw1fcg=-5. * Giuliani vs Clinton at W1F3. if w1f3=1 and w1name3=3 and w1name4=1 derw1fcg=2. if w1f3=2 and w1name3=3 and w1name4=1 derw1fcg=1. if w1f3=-7 and w1name3=3 and w1name4=1 derw1fcg=-7. if w1f3=-5 and w1name3=3 and w1name4=1 derw1fcg=-5. * Clinton vs Giuliani at W1F5. if w1f5=1 and w1name1=1 and w1name4=3 derw1fcg=1. if w1f5=2 and w1name1=1 and w1name4=3 derw1fcg=2. if w1f5=-7 and w1name1=1 and w1name4=3 derw1fcg=-7. if w1f5=-5 and w1name1=1 and w1name4=3 derw1fcg=-5. * Giuliani vs Clinton at W1F5. if w1f5=1 and w1name1=3 and w1name4=1 derw1fcg=2. if w1f5=2 and w1name1=3 and w1name4=1 derw1fcg=1. if w1f5=-7 and w1name1=3 and w1name4=1 derw1fcg=-7. if w1f5=-5 and w1name1=3 and w1name4=1 derw1fcg=-5. * Clinton vs Giuliani at W1F7. if w1f7=1 and w1name3=1 and w1name2=3 derw1fcg=1. if w1f7=2 and w1name3=1 and w1name2=3 derw1fcg=2. if w1f7=-7 and w1name3=1 and w1name2=3 derw1fcg=-7. if w1f7=-5 and w1name3=1 and w1name2=3 derw1fcg=-5. * Giuliani vs Clinton at W1F7. if w1f7=1 and w1name3=3 and w1name2=1 derw1fcg=2. if w1f7=2 and w1name3=3 and w1name2=1 derw1fcg=1. if w1f7=-7 and w1name3=3 and w1name2=1 derw1fcg=-7. if w1f7=-5 and w1name3=3 and w1name2=1 derw1fcg=-5. *fre derw1fcg. *tem. *sel if wgtcs01 > 0. *fre derw1fcg . * SUMMARY W1F Clinton v Romney derw1fcr. compute derw1fcr = -99. val lab derw1fcr -7 '-7. No answer' -6 '-6. Unit nonresponse' 1 '1. Clinton' 2 '2. Romney'. var lab derw1fcr 'summary W1F Clinton v Romney'. * Clinton v Romney at W1F1. if w1f1=1 and w1name1=1 and w1name2=4 derw1fcr=1. if w1f1=2 and w1name1=1 and w1name2=4 derw1fcr=2. if w1f1=-7 and w1name1=1 and w1name2=4 derw1fcr=-7. if w1f1=-5 and w1name1=1 and w1name2=4 derw1fcr=-5. * Romney v Clinton at W1F1. if w1f1=1 and w1name1=4 and w1name2=1 derw1fcr=2. if w1f1=2 and w1name1=4 and w1name2=1 derw1fcr=1. if w1f1=-7 and w1name1=4 and w1name2=1 derw1fcr=-7. if w1f1=-5 and w1name1=4 and w1name2=1 derw1fcr=-5. * Clinton v Romney at W1F3. if w1f3=1 and w1name3=1 and w1name4=4 derw1fcr=1. if w1f3=2 and w1name3=1 and w1name4=4 derw1fcr=2. if w1f3=-7 and w1name3=1 and w1name4=4 derw1fcr=-7. if w1f3=-5 and w1name3=1 and w1name4=4 derw1fcr=-5. * Romney v Clinton at W1F3. if w1f3=1 and w1name3=4 and w1name4=1 derw1fcr=2. if w1f3=2 and w1name3=4 and w1name4=1 derw1fcr=1. if w1f3=-7 and w1name3=4 and w1name4=1 derw1fcr=-7. if w1f3=-5 and w1name3=4 and w1name4=1 derw1fcr=-5. * Clinton v Romney at W1F5. if w1f5=1 and w1name1=1 and w1name4=4 derw1fcr=1. if w1f5=2 and w1name1=1 and w1name4=4 derw1fcr=2. if w1f5=-7 and w1name1=1 and w1name4=4 derw1fcr=-7. if w1f5=-5 and w1name1=1 and w1name4=4 derw1fcr=-5. * Romney v Clinton at W1F5. if w1f5=1 and w1name1=4 and w1name4=1 derw1fcr=2. if w1f5=2 and w1name1=4 and w1name4=1 derw1fcr=1. if w1f5=-7 and w1name1=4 and w1name4=1 derw1fcr=-7. if w1f5=-5 and w1name1=4 and w1name4=1 derw1fcr=-5. * Clinton v Romney at W1F7. if w1f7=1 and w1name3=1 and w1name2=4 derw1fcr=1. if w1f7=2 and w1name3=1 and w1name2=4 derw1fcr=2. if w1f7=-7 and w1name3=1 and w1name2=4 derw1fcr=-7. if w1f7=-5 and w1name3=1 and w1name2=4 derw1fcr=-5. * Romney v Clinton at W1F7. if w1f7=1 and w1name3=4 and w1name2=1 derw1fcr=2. if w1f7=2 and w1name3=4 and w1name2=1 derw1fcr=1. if w1f7=-7 and w1name3=4 and w1name2=1 derw1fcr=-7. if w1f7=-5 and w1name3=4 and w1name2=1 derw1fcr=-5. * SUMMARY W1F Obama v Giuliani derw1fog. compute derw1fog = -99. val lab derw1fog -7 '-7. No answer' -6 '-6. Unit nonresponse' 1 '1. Obama' 2 '2. Giuliani' . var lab derw1fog 'summary W1F Obama v Giuliani'. * Obama v Giuliani at W1F1. if w1f1=1 and w1name1=2 and w1name2=3 derw1fog=1. if w1f1=2 and w1name1=2 and w1name2=3 derw1fog=2. if w1f1=-7 and w1name1=2 and w1name2=3 derw1fog=-7. if w1f1=-5 and w1name1=2 and w1name2=3 derw1fog=-5. * Giuliani v Obama at W1F1. if w1f1=1 and w1name1=3 and w1name2=2 derw1fog=2. if w1f1=2 and w1name1=3 and w1name2=2 derw1fog=1. if w1f1=-7 and w1name1=3 and w1name2=2 derw1fog=-7. if w1f1=-5 and w1name1=3 and w1name2=2 derw1fog=-5. * Obama v Giuliani at W1F3. if w1f3=1 and w1name3=2 and w1name4=3 derw1fog=1. if w1f3=2 and w1name3=2 and w1name4=3 derw1fog=2. if w1f3=-7 and w1name3=2 and w1name4=3 derw1fog=-7. if w1f3=-5 and w1name3=2 and w1name4=3 derw1fog=-5. * Giuliani v Obama at W1F3. if w1f3=1 and w1name3=3 and w1name4=2 derw1fog=2. if w1f3=2 and w1name3=3 and w1name4=2 derw1fog=1. if w1f3=-7 and w1name3=3 and w1name4=2 derw1fog=-7. if w1f3=-5 and w1name3=3 and w1name4=2 derw1fog=-5. * Obama v Giuliani at W1F5. if w1f5=1 and w1name1=2 and w1name4=3 derw1fog=1. if w1f5=2 and w1name1=2 and w1name4=3 derw1fog=2. if w1f5=-7 and w1name1=2 and w1name4=3 derw1fog=-7. if w1f5=-5 and w1name1=2 and w1name4=3 derw1fog=-5. * Giuliani v Obama at W1F5. if w1f5=1 and w1name1=3 and w1name4=2 derw1fog=2. if w1f5=2 and w1name1=3 and w1name4=2 derw1fog=1. if w1f5=-7 and w1name1=3 and w1name4=2 derw1fog=-7. if w1f5=-5 and w1name1=3 and w1name4=2 derw1fog=-5. * Obama v Giuliani at W1F7. if w1f7=1 and w1name3=2 and w1name2=3 derw1fog=1. if w1f7=2 and w1name3=2 and w1name2=3 derw1fog=2. if w1f7=-7 and w1name3=2 and w1name2=3 derw1fog=-7. if w1f7=-5 and w1name3=2 and w1name2=3 derw1fog=-5. * Giuliani v Obama at W1F7. if w1f7=1 and w1name3=3 and w1name2=2 derw1fog=2. if w1f7=2 and w1name3=3 and w1name2=2 derw1fog=1. if w1f7=-7 and w1name3=3 and w1name2=2 derw1fog=-7. if w1f7=-5 and w1name3=3 and w1name2=2 derw1fog=-5. * SUMMARY W1F Obama v Romney derw1for. * Obama v Romney at W1F1. compute derw1for =-99. var lab derw1for 'summary S1F Obama v Romney'. val lab derw1for -7 '-7. No answer' -6 '-6. Unit nonresponse' 1 '1. Obama' 2 '2. Romney'. if w1f1=1 and w1name1=2 and w1name2=4 derw1for=1. if w1f1=2 and w1name1=2 and w1name2=4 derw1for=2. if w1f1=-7 and w1name1=2 and w1name2=4 derw1for=-7. if w1f1=-5 and w1name1=2 and w1name2=4 derw1for=-5. * Romney v Obama at W1F1. if w1f1=1 and w1name1=4 and w1name2=2 derw1for=2. if w1f1=2 and w1name1=4 and w1name2=2 derw1for=1. if w1f1=-7 and w1name1=4 and w1name2=2 derw1for=-7. if w1f1=-5 and w1name1=4 and w1name2=2 derw1for=-5. * Obama v Romney at W1F3. if w1f3=1 and w1name3=2 and w1name4=4 derw1for=1. if w1f3=2 and w1name3=2 and w1name4=4 derw1for=2. if w1f3=-7 and w1name3=2 and w1name4=4 derw1for=-7. if w1f3=-5 and w1name3=2 and w1name4=4 derw1for=-5. * Romney v Obama at W1F3. if w1f3=1 and w1name3=4 and w1name4=2 derw1for=2. if w1f3=2 and w1name3=4 and w1name4=2 derw1for=1. if w1f3=-7 and w1name3=4 and w1name4=2 derw1for=-7. if w1f3=-5 and w1name3=4 and w1name4=2 derw1for=-5. * Obama v Romney at W1F5. if w1f5=1 and w1name1=2 and w1name4=4 derw1for=1. if w1f5=2 and w1name1=2 and w1name4=4 derw1for=2. if w1f5=-7 and w1name1=2 and w1name4=4 derw1for=-7. if w1f5=-5 and w1name1=2 and w1name4=4 derw1for=-5. * Romney v Obama at W1F5. if w1f5=1 and w1name1=4 and w1name4=2 derw1for=2. if w1f5=2 and w1name1=4 and w1name4=2 derw1for=1. if w1f5=-7 and w1name1=4 and w1name4=2 derw1for=-7. if w1f5=-5 and w1name1=4 and w1name4=2 derw1for=-5. * Obama v Romney at W1F7. if w1f7=1 and w1name3=2 and w1name2=4 derw1for=1. if w1f7=2 and w1name3=2 and w1name2=4 derw1for=2. if w1f7=-7 and w1name3=2 and w1name2=4 derw1for=-7. if w1f7=-5 and w1name3=2 and w1name2=4 derw1for=-5. * Romney v Obama at W1F7. if w1f7=1 and w1name3=4 and w1name2=2 derw1for=2. if w1f7=2 and w1name3=4 and w1name2=2 derw1for=1. if w1f7=-7 and w1name3=4 and w1name2=2 derw1for=-7. if w1f7=-5 and w1name3=4 and w1name2=2 derw1for=-5. ** How sure R is of each choice. * Clinton Giuliani choice certainty. compute derfcgs = -99. var lab derfcgs 'DER W1Fx How sure are you of that? Clinton v Giuliani' . if (w1name1=1 and w1name2=3) or (w1name1=3 and w1name2=1) derfcgs = w1f2. if (w1name1=1 and w1name4=3) or (w1name1=3 and w1name4=1) derfcgs = w1f6. if (w1name3=1 and w1name4=3) or (w1name3=3 and w1name4=1) derfcgs = w1f4. if (w1name3=1 and w1name2=3) or (w1name3=3 and w1name2=1) derfcgs = w1f8. * Clinton Romney choice certainty. compute derfcrs = -99. var lab derfcrs 'DER W1Fx How sure are you of that? Clinton v Romney' . if (w1name1=1 and w1name2=4) or (w1name1=4 and w1name2=1) derfcrs = w1f2. if (w1name1=1 and w1name4=4) or (w1name1=4 and w1name4=1) derfcrs = w1f6. if (w1name3=1 and w1name4=4) or (w1name3=4 and w1name4=1) derfcrs = w1f4. if (w1name3=1 and w1name2=4) or (w1name3=4 and w1name2=1) derfcrs = w1f8. * Obama Giuliani choice certainty. compute derfogs = -99. var lab derfogs 'DER W1Fx How sure are you of that? Obama v Giuliani' . if (w1name1=2 and w1name2=3) or (w1name1=3 and w1name2=2) derfogs = w1f2. if (w1name1=2 and w1name4=3) or (w1name1=3 and w1name4=2) derfogs = w1f6. if (w1name3=2 and w1name4=3) or (w1name3=3 and w1name4=2) derfogs = w1f4. if (w1name3=2 and w1name2=3) or (w1name3=3 and w1name2=2) derfogs = w1f8. * Obama Romney choice certainty. compute derfors = -99. var lab derfors 'DER W1Fx How sure are you of that? Obama v Romney' . if (w1name1=2 and w1name2=4) or (w1name1=4 and w1name2=2) derfors = w1f2. if (w1name1=2 and w1name4=4) or (w1name1=4 and w1name4=2) derfors = w1f6. if (w1name3=2 and w1name4=4) or (w1name3=4 and w1name4=2) derfors = w1f4. if (w1name3=2 and w1name2=4) or (w1name3=4 and w1name2=2) derfors = w1f8. * CHECK FOR BREAKOFFS OR OTHER NEEDED MISSING CODES. RECODE derw1fcg derw1fcr derw1fog derw1for derfcgs derfcrs derfogs derfors (-99=-6). EXECUTE. val lab derfcgs derfcrs derfogs derfors -7 '-7. No answer' -6 '-6. Not asked, unit nonresponse' -5 '-5. Not asked, terminated' -2 '-2. Missing' -1 '-1. Not applicable' 1 '1. Extremely sure' 2 '2. Very sure' 3 '3. Moderately sure' 4 '4. Slightly sure' 5 '5. Not sure at all'. ** end summary variables for Wave 1, section F. fre derw1fcg derw1fcr derw1fog derw1for derfcgs derfcrs derfogs derfors. ***************************************************** *W1, Section J: Religious Service Frequency Per Year* *****************************************************. recode w1j1a_1 (sysmis=-6)(else=copy) into w1j1a_1. recode w1j1a_2 (sysmis=-6)(else=copy) into w1j1a_2. recode w1j1a_3 (sysmis=-6)(else=copy) into w1j1a_3. recode w1j1c_1 (sysmis=-6)(else=copy) into w1j1c_1. recode w1j1c_2 (sysmis=-6)(else=copy) into w1j1c_2. recode w1j1c_3 (sysmis=-6)(else=copy) into w1j1c_3. miss val w1j1a_1 TO w1j1a_3 w1j1c_1 TO w1j1c_3 w1j1b (). do if w1j1a_1>=0. compute derw1j1d=52*w1j1a_1. else if w1j1a_2>=0. compute derw1j1d=12*w1j1a_2. else if w1j1a_3>=0. compute derw1j1d=w1j1a_3. else if w1j1b=2 & w1j1c_1>=0. compute derw1j1d=52*w1j1c_1. else if w1j1b=2 & w1j1c_2>=0. compute derw1j1d=12*w1j1c_2. else if w1j1b=2 & w1j1c_3>=0. compute derw1j1d=w1j1c_3. else if w1j1a_1<0 AND w1j1a_2<0 AND w1j1a_3<0 AND w1j1c_1<0 AND w1j1c_2<0 AND w1j1c_3<0. do if w1j1a_1=-7 | w1j1a_2=-7 | w1j1a_3=-7 | w1j1c_1=-7 | w1j1c_2=-7 | w1j1c_3=-7. compute derw1j1d=-7. else if w1j1a_1=-1 | w1j1a_2=-1 | w1j1a_3=-1 | w1j1c_1=-1 | w1j1c_2=-1 | w1j1c_3=-1. compute derw1j1d=-1. else if w1j1a_1=-5 | w1j1a_2=-5 | w1j1a_3=-5 | w1j1c_1=-5 | w1j1c_2=-5 | w1j1c_3=-5. compute derw1j1d=-5. else if w1j1a_1=-6 & w1j1a_2=-6 & w1j1a_3=-6 & w1j1c_1=-6 & w1j1c_2=-6 & w1j1c_3=-6. compute derw1j1d=-6. else. compute derw1j1d=-2. end if. end if. exe. if derw1j1d>=730 derw1j1d=730. exe. var lab derw1j1d 'derw1j1d. DERIVED. Church attendance, yearly'. val lab derw1j1d -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". recode derw1j1d (-1=-2) (else=copy). execute. ****************************************************************** *W2, Section B: Usually Voted, Primary Vote Plan, Primary Turnout* ******************************************************************. *Wave 2 Usually Voted. missing values W2B5 W2B9 (). recode W2B5 (sysmis=-99) (else=copy) into w2b5wk. recode W2B9 (sysmis=-99) (else=copy) into w2b9wk. do if w2b5wk > 0. compute derw2b1 = w2b5wk. else if w2b5wk < 0 and w2b9wk > 0. compute derw2b1 = w2b9wk. else if w2b5wk = -1 and w2b9wk = -1. compute derw2b1 = -1. else if w2b5wk = -5 and w2b9wk = -5. compute derw2b1 = -5. else if w2b5wk = -99 and w2b9wk = -99. compute derw2b1 = -6. else if w2b5wk < 0 and w2b9wk < 0. compute derw2b1 = w2b5wk. end if. formats derw2b1 (f2.0). variable labels derw2b1 "derw2b1. DERIVED. Did R usually vote". value labels derw2b1 1 "1. Usually voted" 2 "2. Usually did not vote" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". frequencies vars = derw2b1. *Wave 2 Primary Vote Plan. missing values W2B6 W2B10 W2B12 W2B14 (). compute derw2b2 = -99. do if W2B14 > 0. compute derw2b2 = W2B14. else if W2B12 > 0. compute derw2b2 = W2B12. else if W2B10 > 0. compute derw2b2 = W2B10. else if W2B6 = -1 and W2B10 = -1 and W2B12 = -1 and W2B14 = -1. compute derw2b2 = -1. else if W2B6 = -5 and W2B10 = -5 and W2B12 = -5 and W2B14 = -5. compute derw2b2 = -5. else. compute derw2b2 = W2B10. end if. recode derw2b2 (-99 = -6) (else = copy). execute. formats derw2b2 (f2.0). variable labels derw2b2 "derw2b2. DERIVED. Primary Vote Plan". value labels derw2b2 1 "1. Did not plan to vote" 2 "2. Did plan to vote" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". frequencies vars = derw2b2. *Wave 2 Primary Turnout. missing values W2B7 W2B11 W2B13 W2B15 (). do if W2B15 < 0 and W2B13 < 0 and W2B11 < 0 and W2B7 < 0. compute derw2b3 = W2B15. else if W2B7 >= 0 and W2B15 < 0 and W2B13 < 0 and W2B11 < 0. compute derw2b3 = W2B7. else if W2B11 >= 0 and W2B7 < 0 and W2B13 < 0 and W2B15 < 0. compute derw2b3 = W2B11. else if W2B13 >= 0 and W2B7 < 0 and W2B11 < 0 and W2B15 < 0. compute derw2b3 = W2B13. else if W2B15 >= 0 and W2B7 < 0 and W2B13 < 0 and W2B11 < 0. compute derw2b3 = W2B15. end if. recode derw2b3 (sysmis = -6) (else = copy). execute. formats derw2b3 (f2.0). variable labels derw2b3 "derw2b3. DERIVED. Primary Turnout". value labels derw2b3 1 "1. Definitely did not vote in a [caucus/primary / caucus or primary]" 2 "2. Definitely voted in person at a polling place on election day" 3 "3. Definitely voted in person at a polling place before election day" 4 "4. Definitely voted by mailing a ballot to election officials before election day" 5 "5. Definitely voted in some other way" 6 "6. Not computely sure whether you voted or not" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". frequencies vars = derw2b3. ************************************************************************************************* *W2, Section F: Hypo Vote Clinton v Romney, Clinton v Giuliani, Obama v Romney, Obama v Giuliani* *************************************************************************************************. * This creates derived variables for four hypothetical pairwise contests: Clinton vs Giuliani (or Giuliani vs Clinton) derw2fcg Clinton vs Romney (or Romney vs Clinton) derw2fcr Obama vs Giuliani (or Giuliani vs Obama) derw2fog Obama vs Romney (or Romney vs Obama) derw2for . * SUMMARY W1F Clinton v Giuliani, derw2fcg. compute derw2fcg=-99. val lab derw2fcg -7 '-7. No answer' -6 '-6. Not asked, unit non-response' 1 '1. Hillary Clinton' 2 '2. Rudy Giuliani' . var lab derw2fcg 'summary W2F Clinton v Giuliani' . * Clinton vs Giuliani at W2F1. if w2f1=1 and w2name1=1 and w2name2=3 derw2fcg=1. if w2f1=2 and w2name1=1 and w2name2=3 derw2fcg=2. if w2f1=-7 and w2name1=1 and w2name2=3 derw2fcg=-7. if w2f1=-5 and w2name1=1 and w2name2=3 derw2fcg=-5. * Giuliani vs Clinton at W2F1. if w2f1=1 and w2name1=3 and w2name2=1 derw2fcg=2. if w2f1=2 and w2name1=3 and w2name2=1 derw2fcg=1. if w2f1=-7 and w2name1=3 and w2name2=1 derw2fcg=-7. if w2f1=-5 and w2name1=3 and w2name2=1 derw2fcg=-5. * Clinton vs Giuliani at W2F3. if w2f3=1 and w2name3=1 and w2name4=3 derw2fcg=1. if w2f3=2 and w2name3=1 and w2name4=3 derw2fcg=2. if w2f3=-7 and w2name3=1 and w2name4=3 derw2fcg=-7. if w2f3=-5 and w2name3=1 and w2name4=3 derw2fcg=-5. * Giuliani vs Clinton at W2F3. if w2f3=1 and w2name3=3 and w2name4=1 derw2fcg=2. if w2f3=2 and w2name3=3 and w2name4=1 derw2fcg=1. if w2f3=-7 and w2name3=3 and w2name4=1 derw2fcg=-7. if w2f3=-5 and w2name3=3 and w2name4=1 derw2fcg=-5. * Clinton vs Giuliani at W2F5. if w2f5=1 and w2name1=1 and w2name4=3 derw2fcg=1. if w2f5=2 and w2name1=1 and w2name4=3 derw2fcg=2. if w2f5=-7 and w2name1=1 and w2name4=3 derw2fcg=-7. if w2f5=-5 and w2name1=1 and w2name4=3 derw2fcg=-5. * Giuliani vs Clinton at W2F5. if w2f5=1 and w2name1=3 and w2name4=1 derw2fcg=2. if w2f5=2 and w2name1=3 and w2name4=1 derw2fcg=1. if w2f5=-7 and w2name1=3 and w2name4=1 derw2fcg=-7. if w2f5=-5 and w2name1=3 and w2name4=1 derw2fcg=-5. * Clinton vs Giuliani at W2F7. if w2f7=1 and w2name3=1 and w2name2=3 derw2fcg=1. if w2f7=2 and w2name3=1 and w2name2=3 derw2fcg=2. if w2f7=-7 and w2name3=1 and w2name2=3 derw2fcg=-7. if w2f7=-5 and w2name3=1 and w2name2=3 derw2fcg=-5. * Giuliani vs Clinton at W2F7. if w2f7=1 and w2name3=3 and w2name2=1 derw2fcg=2. if w2f7=2 and w2name3=3 and w2name2=1 derw2fcg=1. if w2f7=-7 and w2name3=3 and w2name2=1 derw2fcg=-7. if w2f7=-5 and w2name3=3 and w2name2=1 derw2fcg=-5. *fre derw2fcg. *tem. *sel if wgtcs02 > 0. *fre derw2fcg . * SUMMARY W2F Clinton v Romney derw2fcr. compute derw2fcr = -99. val lab derw2fcr -7 '-7. No answer' -6 '-6. Not asked, unit non-response' 1 '1. Hillary Clinton' 2 '2. Mitt Romney' . var lab derw2fcr 'summary W2F Clinton v Romney'. * Clinton v Romney at W2F1. if w2f1=1 and w2name1=1 and w2name2=4 derw2fcr=1. if w2f1=2 and w2name1=1 and w2name2=4 derw2fcr=2. if w2f1=-7 and w2name1=1 and w2name2=4 derw2fcr=-7. * Romney v Clinton at W2F1. if w2f1=1 and w2name1=4 and w2name2=1 derw2fcr=2. if w2f1=2 and w2name1=4 and w2name2=1 derw2fcr=1. if w2f1=-7 and w2name1=4 and w2name2=1 derw2fcr=-7. * Clinton v Romney at W2F3. if w2f3=1 and w2name3=1 and w2name4=4 derw2fcr=1. if w2f3=2 and w2name3=1 and w2name4=4 derw2fcr=2. if w2f3=-7 and w2name3=1 and w2name4=4 derw2fcr=-7. * Romney v Clinton at W2F3. if w2f3=1 and w2name3=4 and w2name4=1 derw2fcr=2. if w2f3=2 and w2name3=4 and w2name4=1 derw2fcr=1. if w2f3=-7 and w2name3=4 and w2name4=1 derw2fcr=-7. * Clinton v Romney at W2F5. if w2f5=1 and w2name1=1 and w2name4=4 derw2fcr=1. if w2f5=2 and w2name1=1 and w2name4=4 derw2fcr=2. if w2f5=-7 and w2name1=1 and w2name4=4 derw2fcr=-7. * Romney v Clinton at W2F5. if w2f5=1 and w2name1=4 and w2name4=1 derw2fcr=2. if w2f5=2 and w2name1=4 and w2name4=1 derw2fcr=1. if w2f5=-7 and w2name1=4 and w2name4=1 derw2fcr=-7. * Clinton v Romney at W2F7. if w2f7=1 and w2name3=1 and w2name2=4 derw2fcr=1. if w2f7=2 and w2name3=1 and w2name2=4 derw2fcr=2. if w2f7=-7 and w2name3=1 and w2name2=4 derw2fcr=-7. * Romney v Clinton at W2F7. if w2f7=1 and w2name3=4 and w2name2=1 derw2fcr=2. if w2f7=2 and w2name3=4 and w2name2=1 derw2fcr=1. if w2f7=-7 and w2name3=4 and w2name2=1 derw2fcr=-7. * SUMMARY W2F Obama v Giuliani derw2fog. compute derw2fog = -99. val lab derw2fog -7 '-7. No answer' -6 '-6. Not asked, unit non-response' 1 '1. Barack Obama' 2 '2. Rudy Giuliani' . var lab derw2fog 'summary W1F Obama v Giuliani'. * Obama v Giuliani at W2F1. if w2f1=1 and w2name1=2 and w2name2=3 derw2fog=1. if w2f1=2 and w2name1=2 and w2name2=3 derw2fog=2. if w2f1=-7 and w2name1=2 and w2name2=3 derw2fog=-7. if w2f1=-5 and w2name1=2 and w2name2=3 derw2fog=-5. * Giuliani v Obama at W2F1. if w2f1=1 and w2name1=3 and w2name2=2 derw2fog=2. if w2f1=2 and w2name1=3 and w2name2=2 derw2fog=1. if w2f1=-7 and w2name1=3 and w2name2=2 derw2fog=-7. if w2f1=-5 and w2name1=2 and w2name2=3 derw2fog=-5. * Obama v Giuliani at W2F3. if w2f3=1 and w2name3=2 and w2name4=3 derw2fog=1. if w2f3=2 and w2name3=2 and w2name4=3 derw2fog=2. if w2f3=-7 and w2name3=2 and w2name4=3 derw2fog=-7. if w2f3=-5 and w2name3=2 and w2name4=3 derw2fog=-5. * Giuliani v Obama at W2F3. if w2f3=1 and w2name3=3 and w2name4=2 derw2fog=2. if w2f3=2 and w2name3=3 and w2name4=2 derw2fog=1. if w2f3=-7 and w2name3=3 and w2name4=2 derw2fog=-7. if w2f3=-5 and w2name3=3 and w2name4=2 derw2fog=-5. * Obama v Giuliani at W2F5. if w2f5=1 and w2name1=2 and w2name4=3 derw2fog=1. if w2f5=2 and w2name1=2 and w2name4=3 derw2fog=2. if w2f5=-7 and w2name1=2 and w2name4=3 derw2fog=-7. if w2f5=-5 and w2name1=2 and w2name4=3 derw2fog=-5. * Giuliani v Obama at W2F5. if w2f5=1 and w2name1=3 and w2name4=2 derw2fog=2. if w2f5=2 and w2name1=3 and w2name4=2 derw2fog=1. if w2f5=-7 and w2name1=3 and w2name4=2 derw2fog=-7. if w2f5=-5 and w2name1=3 and w2name4=2 derw2fog=-5. * Obama v Giuliani at W2F7. if w2f7=1 and w2name3=2 and w2name2=3 derw2fog=1. if w2f7=2 and w2name3=2 and w2name2=3 derw2fog=2. if w2f7=-7 and w2name3=2 and w2name2=3 derw2fog=-7. if w2f7=-5 and w2name3=2 and w2name2=3 derw2fog=-5. * Giuliani v Obama at W2F7. if w2f7=1 and w2name3=3 and w2name2=2 derw2fog=2. if w2f7=2 and w2name3=3 and w2name2=2 derw2fog=1. if w2f7=-7 and w2name3=3 and w2name2=2 derw2fog=-7. if w2f7=-5 and w2name3=3 and w2name2=2 derw2fog=-5. * SUMMARY W2F Obama v Romney derw2for. * Obama v Romney at W2F1. compute derw2for =-99. var lab derw2for 'summary W2F Obama v Romney'. val lab derw2for -7 '-7. No answer' -6 '-6. Not asked, unit non-response' 1 '1. Barack Obama' 2 '2. Mitt Romney' . if w2f1=1 and w2name1=2 and w2name2=4 derw2for=1. if w2f1=2 and w2name1=2 and w2name2=4 derw2for=2. if w2f1=-7 and w2name1=2 and w2name2=4 derw2for=-7. if w2f1=-5 and w2name1=2 and w2name2=4 derw2for=-5. * Romney v Obama at W2F1. if w2f1=1 and w2name1=4 and w2name2=2 derw2for=2. if w2f1=2 and w2name1=4 and w2name2=2 derw2for=1. if w2f1=-7 and w2name1=4 and w2name2=2 derw2for=-7. if w2f1=-5 and w2name1=4 and w2name2=2 derw2for=-5. * Obama v Romney at W2F3. if w2f3=1 and w2name3=2 and w2name4=4 derw2for=1. if w2f3=2 and w2name3=2 and w2name4=4 derw2for=2. if w2f3=-7 and w2name3=2 and w2name4=4 derw2for=-7. if w2f3=-5 and w2name3=2 and w2name4=4 derw2for=-5. * Romney v Obama at W2F3. if w2f3=1 and w2name3=4 and w2name4=2 derw2for=2. if w2f3=2 and w2name3=4 and w2name4=2 derw2for=1. if w2f3=-7 and w2name3=4 and w2name4=2 derw2for=-7. if w2f3=-5 and w2name3=4 and w2name4=2 derw2for=-5. * Obama v Romney at W2F5. if w2f5=1 and w2name1=2 and w2name4=4 derw2for=1. if w2f5=2 and w2name1=2 and w2name4=4 derw2for=2. if w2f5=-7 and w2name1=2 and w2name4=4 derw2for=-7. if w2f5=-5 and w2name1=2 and w2name4=4 derw2for=-5. * Romney v Obama at W2F5. if w2f5=1 and w2name1=4 and w2name4=2 derw2for=2. if w2f5=2 and w2name1=4 and w2name4=2 derw2for=1. if w2f5=-7 and w2name1=4 and w2name4=2 derw2for=-7. if w2f5=-5 and w2name1=4 and w2name4=2 derw2for=-5. * Obama v Romney at W2F7. if w2f7=1 and w2name3=2 and w2name2=4 derw2for=1. if w2f7=2 and w2name3=2 and w2name2=4 derw2for=2. if w2f7=-7 and w2name3=2 and w2name2=4 derw2for=-7. if w2f7=-5 and w2name3=2 and w2name2=4 derw2for=-5. * Romney v Obama at W2F7. if w2f7=1 and w2name3=4 and w2name2=2 derw2for=2. if w2f7=2 and w2name3=4 and w2name2=2 derw2for=1. if w2f7=-7 and w2name3=4 and w2name2=2 derw2for=-7. if w2f7=-5 and w2name3=4 and w2name2=2 derw2for=-5. ** How sure R is of each choice. * Clinton Giuliani choice certainty. compute derfcgs2 = -99. var lab derfcgs2 'DER W2Fx How sure are you of that? Clinton v Giuliani' . if (w2name1=1 and w2name2=3) or (w2name1=3 and w2name2=1) derfcgs2 = w2f2. if (w2name1=1 and w2name4=3) or (w2name1=3 and w2name4=1) derfcgs2 = w2f6. if (w2name3=1 and w2name4=3) or (w2name3=3 and w2name4=1) derfcgs2 = w2f4. if (w2name3=1 and w2name2=3) or (w2name3=3 and w2name2=1) derfcgs2 = w2f8. * Clinton Romney choice certainty. compute derfcrs2 = -99. var lab derfcrs2 'DER W2Fx How sure are you of that? Clinton v Romney' . if (w2name1=1 and w2name2=4) or (w2name1=4 and w2name2=1) derfcrs2 = w2f2. if (w2name1=1 and w2name4=4) or (w2name1=4 and w2name4=1) derfcrs2 = w2f6. if (w2name3=1 and w2name4=4) or (w2name3=4 and w2name4=1) derfcrs2 = w2f4. if (w2name3=1 and w2name2=4) or (w2name3=4 and w2name2=1) derfcrs2 = w2f8. * Obama Giuliani choice certainty. compute derfogs2 = -99. var lab derfogs2 'DER W2Fx How sure are you of that? Obama v Giuliani' . if (w2name1=2 and w2name2=3) or (w2name1=3 and w2name2=2) derfogs2 = w2f2. if (w2name1=2 and w2name4=3) or (w2name1=3 and w2name4=2) derfogs2 = w2f6. if (w2name3=2 and w2name4=3) or (w2name3=3 and w2name4=2) derfogs2 = w2f4. if (w2name3=2 and w2name2=3) or (w2name3=3 and w2name2=2) derfogs2 = w2f8. * Obama Romney choice certainty. compute derfors2 = -99. var lab derfors2 'DER W2Fx How sure are you of that? Obama v Romney' . if (w2name1=2 and w2name2=4) or (w2name1=4 and w2name2=2) derfors2 = w2f2. if (w2name1=2 and w2name4=4) or (w2name1=4 and w2name4=2) derfors2 = w2f6. if (w2name3=2 and w2name4=4) or (w2name3=4 and w2name4=2) derfors2 = w2f4. if (w2name3=2 and w2name2=4) or (w2name3=4 and w2name2=2) derfors2 = w2f8. * CHECK FOR BREAKOFFS OR OTHER NEEDED MISSING CODES. recode derw2fcg derw2fcr derw2fog derw2for derfcgs2 derfcrs2 derfogs2 derfors2 (-99 = -6) (else = copy). execute. val lab derfcgs2 derfcrs2 derfogs2 derfors2 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 '1. Extremely sure' 2'2. Very sure' 3'3. Moderately sure' 4'4. Slightly sure' 5'5. Not sure at all'. ** end summary variables for Wave 2, section F. fre derw2fcg derw2fcr derw2fog derw2for derfcgs2 derfcrs2 derfogs2 derfors2. ****************************************************************** *W6, Section B: Usually Voted, Primary Vote Plan, Primary Turnout* ******************************************************************. *Wave 6 Usually Voted. missing values W6B5 W6B9 (). compute derw6b1 = -99. do if W6B5 >= 1. compute derw6b1 = W6B5. else if W6B5 < 0 and W6B9 > 0. compute derw6b1 = W6B9. else if W1B5 < 0 and W6B9 < 0. compute derw6b1 = W6B5. else. compute derw6b1 = W6B5. end if. formats derw6b1 (f2.0). recode derw6b1 (-99 = -6) (else = copy). execute. variable labels derw6b1 "derw6b1. DERIVED. Did R usually vote". value labels derw6b1 1 "1. Usually voted" 2 "2. Usually did not vote" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". *Wave 6 Primary Vote Plan. missing values W6B6 W6B10 W6B12 W6B14 (). compute derw6b2 = -99. do if W6B14 > 0. compute derw6b2 = W6B14. else if W6B12 > 0. compute derw6b21 = W6B12. else if W6B10 > 0. compute derw6b2x = W6B10. else. compute derw6b2 = W6B10. end if. formats derw6b2 (f2.0). recode derw6b2 (-99 = -6) (else = copy). execute. variable labels derw6b2 "derw6b2. DERIVED. Primary Vote Plan". value labels derw6b2 1 "1. Did not plan to vote" 2 "2. Did plan to vote" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". *Wave 6 Primary Turnout. missing values W6B7 W6B11 W6B13 W6B15 (). compute derw6b3 = -99. do if W6B15 < 0 and W6B13 < 0 and W6B11 < 0 and W6B7 < 0. compute derw6b3 = W6B15. else if W6B7 >= 0 and W6B15 < 0 and W6B13 < 0 and W6B11 < 0. compute derw6b3 = W6B7. else if W6B11 >= 0 and W6B7 < 0 and W6B13 < 0 and W6B15 < 0. compute derw6b3 = W6B11. else if W6B13 >= 0 and W6B7 < 0 and W6B11 < 0 and W6B15 < 0. compute derw6b3 = W6B13. else if W6B15 >= 0 and W6B7 < 0 and W6B13 < 0 and W6B11 < 0. compute derw6b3 = W6B15. end if. formats derw6b3 (f2.0). recode derw6b3 (-99 = -6) (else = copy). execute. variable labels derw6b3 "derw6b3. DERIVED. Primary Turnout". value labels derw6b3 1 "1. Definitely did not vote in a [caucus/primary / caucus or primary]" 2 "2. Definitely voted in person at a polling place on election day" 3 "3. Definitely voted in person at a polling place before election day" 4 "4. Definitely voted by mailing a ballot to election officials before election day" 5 "5. Definitely voted in some other way" 6 "6. Not computely sure whether you voted or not" -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable". frequencies vars = derw6b1 derw6b2 derw6b3. *********************************************************** *W6, Section F: Hypo Vote Clinton v McCain, Obama v McCain* ***********************************************************. * This creates derived variables for two hypothetical pairwise contests: Clinton vs McCain (or McCain vs Clinton) derw6fbcm Obama vs McCain (or McCain vs Obama) derw6fbom * SUMMARY W6FB Clinton v McCain, derw6fbcm. compute derw6fbcm=-99. val lab derw6fbcm -7 '-7. No answer' -6 '-6. Not asked, unit non-response' 1 '1. Hillary Clinton' 2 '2. John McCain'. var lab derw6fbcm 'summary W6FB Clinton v McCain' . * Clinton vs McCain at W6FB1. if w6fb1=1 and w6fbname1=1 and w6fbname2=1 derw6fbcm=1. if w6fb1=1 and w6fbname1=2 and w6fbname2=2 derw6fbcm=1. if w6fb1=2 and w6fbname1=1 and w6fbname2=1 derw6fbcm=2. if w6fb1=2 and w6fbname1=2 and w6fbname2=2 derw6fbcm=2. if w6fb1=-7 and w6fbname1=1 and w6fbname2=1 derw6fbcm=-7. if w6fb1=-7 and w6fbname1=2 and w6fbname2=2 derw6fbcm=-7. if w6fb1=-5 and w6fbname1=1 and w6fbname2=1 derw6fbcm=-5. if w6fb1=-5 and w6fbname1=2 and w6fbname2=2 derw6fbcm=-5. *McCain vs Clinton at W6FB1. if w6fb1=1 and w6fbname1=3 and w6fbname2=3 derw6fbcm=2. if w6fb1=1 and w6fbname1=4 and w6fbname2=4 derw6fbcm=2. if w6fb1=2 and w6fbname1=3 and w6fbname2=3 derw6fbcm=1. if w6fb1=2 and w6fbname1=4 and w6fbname2=4 derw6fbcm=1. if w6fb1=-7 and w6fbname1=3 and w6fbname2=3 derw6fbcm=-7. if w6fb1=-7 and w6fbname1=4 and w6fbname2=4 derw6fbcm=-7. if w6fb1=-5 and w6fbname1=3 and w6fbname2=3 derw6fbcm=-5. if w6fb1=-5 and w6fbname1=4 and w6fbname2=4 derw6fbcm=-5. * Clinton vs McCain at W6FB3. if w6fb3=1 and w6fbname3=5 and w6fbname4=5 derw6fbcm=1. if w6fb3=1 and w6fbname3=8 and w6fbname4=8 derw6fbcm=1. if w6fb3=2 and w6fbname3=5 and w6fbname4=5 derw6fbcm=2. if w6fb3=2 and w6fbname3=8 and w6fbname4=8 derw6fbcm=2. if w6fb3=-7 and w6fbname3=5 and w6fbname4=5 derw6fbcm=-7. if w6fb3=-7 and w6fbname3=8 and w6fbname4=8 derw6fbcm=-7. if w6fb3=-5 and w6fbname3=5 and w6fbname4=5 derw6fbcm=-5. if w6fb3=-5 and w6fbname3=8 and w6fbname4=8 derw6fbcm=-5. * McCain vs Clinton at W6FB3. if w6fb3=1 and w6fbname3=6 and w6fbname4=6 derw6fbcm=2. if w6fb3=1 and w6fbname3=7 and w6fbname4=7 derw6fbcm=2. if w6fb3=2 and w6fbname3=6 and w6fbname4=6 derw6fbcm=1. if w6fb3=2 and w6fbname3=7 and w6fbname4=7 derw6fbcm=1. if w6fb3=-7 and w6fbname3=6 and w6fbname4=6 derw6fbcm=-7. if w6fb3=-7 and w6fbname3=7 and w6fbname4=7 derw6fbcm=-7. if w6fb3=-5 and w6fbname3=6 and w6fbname4=6 derw6fbcm=-5. if w6fb3=-5 and w6fbname3=7 and w6fbname4=7 derw6fbcm=-5. *fre derw6fbcm. *tem. *sel if wgtcs06 > 0. *fre derw6fbcm . * SUMMARY W6FB Obama v McCain derw6fbom. compute derw6fbom = -99. val lab derw6fbom -7 '-7. No answer' -6 '-6. Not asked, unit non-response' 1 '1. Barack Obama' 2 '2. John McCain'. var lab derw6fbom 'summary W6FB Obama v McCain'. * Obama v McCain at W6FB1. if w6fb1=1 and w6fbname1=5 and w6fbname2=5 derw6fbom=1. if w6fb1=1 and w6fbname1=6 and w6fbname2=6 derw6fbom=1. if w6fb1=2 and w6fbname1=5 and w6fbname2=5 derw6fbom=2. if w6fb1=2 and w6fbname1=6 and w6fbname2=6 derw6fbom=2. if w6fb1=-7 and w6fbname1=5 and w6fbname2=5 derw6fbom=-7. if w6fb1=-7 and w6fbname1=6 and w6fbname2=6 derw6fbom=-7. if w6fb1=-5 and w6fbname1=5 and w6fbname2=5 derw6fbom=-5. if w6fb1=-5 and w6fbname1=6 and w6fbname2=6 derw6fbom=-5. * McCain v Obama at W6FB1. if w6fb1=1 and w6fbname1=7 and w6fbname2=7 derw6fbom=2. if w6fb1=1 and w6fbname1=8 and w6fbname2=8 derw6fbom=2. if w6fb1=2 and w6fbname1=7 and w6fbname2=7 derw6fbom=1. if w6fb1=2 and w6fbname1=8 and w6fbname2=8 derw6fbom=1. if w6fb1=-7 and w6fbname1=7 and w6fbname2=7 derw6fbom=-7. if w6fb1=-7 and w6fbname1=8 and w6fbname2=8 derw6fbom=-7. if w6fb1=-5 and w6fbname1=7 and w6fbname2=7 derw6fbom=-5. if w6fb1=-5 and w6fbname1=8 and w6fbname2=8 derw6fbom=-5. * Obama v McCain at W6FB3. if w6fb3=1 and w6fbname3=1 and w6fbname4=1 derw6fbom=1. if w6fb3=1 and w6fbname3=3 and w6fbname4=3 derw6fbom=1. if w6fb3=2 and w6fbname3=1 and w6fbname4=1 derw6fbom=2. if w6fb3=2 and w6fbname3=3 and w6fbname4=3 derw6fbom=2. if w6fb3=-7 and w6fbname3=1 and w6fbname4=1 derw6fbom=-7. if w6fb3=-7 and w6fbname3=3 and w6fbname4=3 derw6fbom=-7. if w6fb3=-5 and w6fbname3=1 and w6fbname4=1 derw6fbom=-5. if w6fb3=-5 and w6fbname3=3 and w6fbname4=3 derw6fbom=-5. * McCain v Obama at W6FB3. if w6fb3=1 and w6fbname3=2 and w6fbname4=2 derw6fbom=2. if w6fb3=1 and w6fbname3=4 and w6fbname4=4 derw6fbom=2. if w6fb3=2 and w6fbname3=2 and w6fbname4=2 derw6fbom=1. if w6fb3=2 and w6fbname3=4 and w6fbname4=4 derw6fbom=1. if w6fb3=-7 and w6fbname3=2 and w6fbname4=2 derw6fbom=-7. if w6fb3=-7 and w6fbname3=4 and w6fbname4=4 derw6fbom=-7. if w6fb3=-5 and w6fbname3=2 and w6fbname4=2 derw6fbom=-5. if w6fb3=-5 and w6fbname3=4 and w6fbname4=4 derw6fbom=-5. ** How sure R is of each choice. * Clinton McCain choice certainty. compute derfbcms6 = -99. var lab derfbcms6 'DER W6FBx How sure are you of that? Clinton v McCain'. if (w6fbname1=1 and w6fbname2=1) or (w6fbname1=2 and w6fbname2=2) derfbcms6 = w6fb2. if (w6fbname1=3 and w6fbname2=3) or (w6fbname1=4 and w6fbname2=4) derfbcms6 = w6fb2. if (w6fbname3=5 and w6fbname4=5) or (w6fbname3=8 and w6fbname4=8) derfbcms6 = w6fb4. if (w6fbname3=6 and w6fbname4=6) or (w6fbname3=7 and w6fbname4=7) derfbcms6 = w6fb4. * Obama McCain choice certainty. compute derfboms6 = -99. var lab derfboms6 'DER W6FBx How sure are you of that? Obama v McCain' . if (w6fbname1=5 and w6fbname2=5) or (w6fbname1=6 and w6fbname2=6) derfboms6 = w6fb2. if (w6fbname1=7 and w6fbname2=7) or (w6fbname1=8 and w6fbname2=8) derfboms6 = w6fb2. if (w6fbname3=1 and w6fbname4=1) or (w6fbname3=3 and w6fbname4=3) derfboms6 = w6fb4. if (w6fbname3=2 and w6fbname4=2) or (w6fbname3=4 and w6fbname4=4) derfboms6 = w6fb4. recode derw6fbcm derw6fbom derfbcms6 derfboms6 (-99 = -6) (else = copy). execute. val lab derfbcms6 derfboms6 -7 '-7. No answer' -6'-6. Not asked, unit nonresponse' -5 '-5. Not asked, terminated' -2'-2. Missing' -1 '-1. Not applicable' 1 '1. Extremely sure' 2'2. Very sure' 3'3. Moderately sure' 4'4. Slightly sure' 5'5. Not sure at all'. fre derw6fbcm derw6fbom derfbcms6 derfboms6. ****************************************************************** *W9, Section B: Usually voted, primary vote plan, primary turnout* ******************************************************************. recode w9b5 (sysmis=-6)(else=copy) into w9b5. recode w9b9 (sysmis=-6)(else=copy) into w9b9. miss val w9b5 w9b9 (). compute derw9b1=-99. do if w9b5>0. compute derw9b1=w9b5. else if w9b5<0 AND w9b9>0. compute derw9b1=w9b9. else if w9b5<0 & w9b9<0. do if w9b5=-7 | w9b9=-7. compute derw9b1=-7. else if w9b5=-1 | w9b9=-1. compute derw9b1=-1. else if w9b5=-5 | w9b9=-5. compute derw9b1=-5. else if w9b5=-6 & w9b9=-6. compute derw9b1=-6. else. compute derw9b1=-2. end if. end if. exe. form derw9b1 (f2.0). var lab derw9b1 'derw9b1. DERIVED. Usually voted or not'. val lab derw9b1 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Usually voted" 2 "2. Usually did not vote". recode w9b5 (-6=sysmis)(else=copy) into w9b5. recode w9b9 (-6=sysmis)(else=copy) into w9b9. * missing values for variable. recode w9b6 (sysmis=-6)(else=copy) into w9b6. recode w9b10 (sysmis=-6)(else=copy) into w9b10. recode w9b12 (sysmis=-6)(else=copy) into w9b12. recode w9b14 (sysmis=-6)(else=copy) into w9b14. miss val w9b6 w9b10 w9b12 w9b14 (). compute der9wb2=-99. do if w9b6>0. compute derw9b2=w9b6. else if w9b6<0 AND w9b10>0. compute derw9b2=w9b10. else if w9b6<0 AND w9b10<0 AND w9b12>0. compute derw9b2=w9b12. else if w9b6<0 AND w9b10<0 AND w9b12<0 AND w9b14>0. compute derw9b2=w9b14. else if w9b6<0 AND w9b10<0 AND w9b12<0 AND w9b14<0. do if w9b6=-7 | w9b10=-7 | w9b12=-7 | w9b14=-7. compute derw9b2=-7. else if w9b6=-1 | w9b10=-1 | w9b12=-1 | w9b14=-1. compute derw9b2=-1. else if w9b6=-5 | w9b10=-5 | w9b12=-5 | w9b14=-5. compute derw9b2=-5. else if w9b6=w9b10 AND w9b10=w9b12 AND w9b12=w9b14 & w9b14=-6. compute derw9b2=-6. else. compute derw9b2=-2. end if. end if. exe. form derw9b2 (f2.0). var labels derw9b2 " derw9b2. DERIVED. Primary vote plan". value labels derw9b2 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Did plan to vote" 2 "2. Did not plan to vote". recode w9b6 (-6=sysmis)(else=copy) into w9b6. recode w9b10 (-6=sysmis)(else=copy) into w9b10. recode w9b12 (-6=sysmis)(else=copy) into w9b12. recode w9b14 (-6=sysmis)(else=copy) into w9b14. recode w9b7 (sysmis=-6)(else=copy) into w9b7. recode w9b11 (sysmis=-6)(else=copy) into w9b11. recode w9b13 (sysmis=-6)(else=copy) into w9b13. recode w9b15 (sysmis=-6)(else=copy) into w9b15. miss val w9b7 w9b11 w9b13 w9b15 (). compute derw9b3=-99. do if w9b7>0. compute derw9b3=w9b7. else if w9b7<0 AND w9b11>0. compute derw9b3=w9b11. else if w9b7<0 AND w9b11<0 AND w9b13>0. compute derw9b3=w9b13. else if w9b7<0 AND w9b11<0 AND w9b13<0 AND w9b15>0. compute derw9b3=w9b15. else if w9b7<0 AND w9b11<0 AND w9b13<0 AND w9b15<0. do if w9b7=-7 | w9b11=-7 | w9b13=-7 | w9b15=-7. compute derw9b3=-7. else if w9b7=-1 | w9b11=-1 | w9b13=-1 | w9b15=-1. compute derw9b3=-1. else if w9b7=-5 | w9b11=-5 | w9b13=-5 | w9b15=-5. compute derw9b3=-5. else if w9b7=w9b11 & w9b11=w9b13 & w9b13=w9b15 & w9b15=-6. compute derw9b3=-6. else. compute derw9b3=-2. end if. end if. form derw9b3 (f2.0). var labels derw9b3 "derw9b3. DERIVED. Primary turn-out". value labels derw9b3 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Definitely did not vote in a {#caucus}" 2 "2. Definitely voted in person at a polling place on election day" 3 "3. Definitely voted in person at a polling place before election day" 4 "4. Definitely voted by mailing a ballot to elections officials before election day" 5 "5. Definitely voted in some other way" 6 "6. Not completely sure whether you voted or not". recode w9b7 (-6=sysmis)(else=copy) into w9b7a. recode w9b11 (-6=sysmis)(else=copy) into w9b11a. recode w9b13 (-6=sysmis)(else=copy) into w9b13a. recode w9b15 (-6=sysmis)(else=copy) into w9b15a. recode w9d2a (sysmis=-6)(else=copy) into w9d2a. recode w9d2b (sysmis=-6)(else=copy) into w9d2b. miss val w9d2a w9d2b (). do if w9d2a>0. compute derw9d1=w9d2a. else if w9d2a<0 AND w9d2b>0. compute derw9d1=w9d2b. else if w9d2a<0 and w9d2b<0. do if w9d2a=-7 | w9d2b=-7. compute derw9d1=-7. else if w9d2a=-1 | w9d2b=-1. compute derw9d1=-1. else if w9d2a=-5 | w9d2b=-5. compute derw9d1=-5. else if w9d2a=-6 & w9d2b=-6. compute derw9d1=-6. else. compute derw9d1=-2. end if. end if. *************************************** *W9, Section D: Who will you vote for?* ***************************************. recode w9d2a (sysmis=-6)(else=copy) into w9d2a. recode w9d2b (sysmis=-6)(else=copy) into w9d2b. miss val w9d2a w9d2b (). do if w9d2a>0. compute derw9d1=w9d2a. else if w9d2a<0 AND w9d2b>0. compute derw9d1=w9d2b. else if w9d2a<0 and w9d2b<0. do if w9d2a=-7 | w9d2b=-7. compute derw9d1=-7. else if w9d2a=-1 | w9d2b=-1. compute derw9d1=-1. else if w9d2a=-5 | w9d2b=-5. compute derw9d1=-5. else if w9d2a=-6 & w9d2b=-6. compute derw9d1=-6. else. compute derw9d1=-2. end if. end if. format derw9d1 (f2.0). var lab derw9d1 'derw9d1. Who will R vote for'. val lab derw9d1 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. John McCain" 2 "2. Barack Obama" 3 "3. someone else". recode w9d2a (-6=sysmis)(else=copy) into w9d2a. recode w9d2b (-6=sysmis)(else=copy) into w9d2b. recode w9d3 (sysmis=-6)(else=copy) into w9d3. do if derw9d1=1. compute derw9d2=w9d3. else if derw9d1>1. compute derw9d2=-1. else if derw9d1<0 AND w9d3>0. compute derw9d2=-1. else if derw9d1<0 AND w9d3<0. do if derw9d1=-7. compute derw9d2=-1. else if derw9d1=-1 | w9d3=-1. compute derw9d2=-1. else if derw9d1=-5 | w9d3=-5. compute derw9d2=-5. else if derw9d1=-6 & w9d3=-6. compute derw9d2=-6. else. compute derw9d2=-2. end if. end if. exe. format derw9d2 (f2.0). var lab derw9d2 'derw9d2. DERIVED. Certainty of choice, McCain'. val lab derw9d2 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Extremely sure" 2 "2. Very sure" 3 "3. Moderately sure" 4 "4. Slightly sure" 5 "5. Not sure at all" do if derw9d1=2. compute derw9d3=w9d3. else if derw9d1=1 | derw9d1>=3. compute derw9d3=-1. else if derw9d1<0 AND w9d3>0. compute derw9d3=-1. else if derw9d1<0 AND w9d3<0. do if derw9d1=-7. compute derw9d3=-1. else if derw9d1=-1 | w9d3=-1. compute derw9d3=-1. else if derw9d1=-5 | w9d3=-5. compute derw9d3=-5. else if derw9d1=-6 & w9d3=-6. compute derw9d3=-6. else. compute derw9d3=-2. end if. end if. format derw9d3 (f2.0). var lab derw9d3 'derw9d3. DERIVED. Certainty of choice, Obama'. val lab derw9d3 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. Extremely sure" 2 "2. Very sure" 3 "3. Moderately sure" 4 "4. Slightly sure" 5 "5. Not sure at all". **************************************** *W10, Section A: Who will you vote for?* ****************************************. missing values w10a6a w10a6b (). do if w10a6a > 0. compute derw10a1=w10a6a. else if w10a6a < 0 and w10a6b > 0. compute derw10a1=w10a6b. else if w10a6a =-7 and w10a6b = -7. compute derw10a1 = -7. else if w10a6a =-1 and w10a6b = -1. compute derw10a1 = -1. else if w10a6a =-5 and w10a6b = -5. compute derw10a1 = -5. end if. form derw10a1 (f2.0). recode derw10a1 (sysmis = -6) (else =copy). execute. var labels derw10a1 "derw10a1. DERIVED. Whom will R. vote for". value labels derw10a1 -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 1 "1. John McCain" 2 "2. Barack Obama" 3 "3. someone else". missing val derw10a1 (). fre derw10a1 w10a6a w10a6b. **************************************** *additional race summary vars* ****************************************. recode CP_Q14_01 (sysmis=-6)(else=copy) into CP_Q14_01 . recode W1Y6_1 (sysmis=-6)(else=copy) into W1Y6_1. recode W2W7_1 (sysmis=-6)(else=copy) into W2W7_1. recode W9ZW7_1 (sysmis=-6)(else=copy) into W9ZW7_1. recode W10ZW7_1 (sysmis=-6)(else=copy) into W10ZW7_1. recode W16Q14_1 (sysmis=-6)(else=copy) into W16Q14_1. recode rracewhite (sysmis=-6)(else=copy) into rracewhite. miss val CP_Q14_01 W1Y6_1 W2W7_1 W9ZW7_1 W10ZW7_1 W16Q14_1 rracewhite (). compute white=-99. do if CP_Q14_01=1 OR W1Y6_1=1 OR W2W7_1=1 OR W9ZW7_1=1 OR W10ZW7_1=1 OR W16Q14_1=1 OR rracewhite=1. compute white=1. else if CP_Q14_01=0 AND W1Y6_1<=0 AND W2W7_1<=0 AND W9ZW7_1<=0 AND W10ZW7_1<=0 AND W16Q14_1<=0 AND rracewhite<=0. compute white=0. else if CP_Q14_01<0 AND W1Y6_1=0 AND W2W7_1<=0 AND W9ZW7_1<=0 AND W10ZW7_1<=0 AND W16Q14_1<=0 AND rracewhite<=0. compute white=0. else if CP_Q14_01<0 AND W1Y6_1<0 AND W2W7_1=0 AND W9ZW7_1<=0 AND W10ZW7_1<=0 AND W16Q14_1<=0 AND rracewhite<=0. compute white=0. else if CP_Q14_01<0 AND W1Y6_1<0 AND W2W7_1 <0 AND W9ZW7_1=0 AND W10ZW7_1<=0 AND W16Q14_1<=0 AND rracewhite<=0. compute white=0. else if CP_Q14_01<0 AND W1Y6_1<0 AND W2W7_1<0 AND W9ZW7_1<0 AND W10ZW7_1=0 AND W16Q14_1<=0 AND rracewhite<=0. compute white=0. else if CP_Q14_01<0 AND W1Y6_1<0 AND W2W7_1<0 AND W9ZW7_1<0 AND W10ZW7_1<0 AND W16Q14_1=0 AND rracewhite<=0. compute white=0. else if CP_Q14_01<0 AND W1Y6_1<0 AND W2W7_1<0 AND W9ZW7_1<0 AND W10ZW7_1<0 AND W16Q14_1<0 AND rracewhite=0. compute white=0. * this syntax determines whether all the variables CP_Q14_01 - W10ZW7_1 have * * the same missing value. If this is the case then the variable white is assigned * * that value. If all the variables take on a missing value but at least two of the variables * * take on different missing values then the variable white is assigned the value of -2. * * The same logic applies for other instances in which this chunk of synatx appears. * else if CP_Q14_01<0 AND W1Y6_1<0 AND W2W7_1<0 AND W9ZW7_1<0 AND W10ZW7_1<0 AND W16Q14_1<0 AND rracewhite<0. do if (6*CP_Q14_01=W1Y6_1+W2W7_1+W9ZW7_1+W10ZW7_1 + rracewhite+ W16Q14_1) AND (6*W1Y6_1=CP_Q14_01+W2W7_1+W9ZW7_1+W10ZW7_1 + rracewhite+ W16Q14_1) AND (6*W2W7_1=CP_Q14_01+W1Y6_1+W9ZW7_1+W10ZW7_1 + rracewhite+ W16Q14_1) AND (6*W9ZW7_1=CP_Q14_01+W1Y6_1+W2W7_1+W10ZW7_1 + rracewhite+ W16Q14_1) AND (6*W10ZW7_1=CP_Q14_01+W1Y6_1+W2W7_1+W9ZW7_1+ rracewhite+ W16Q14_1) AND (6*W16Q14_1=CP_Q14_01+W1Y6_1+W2W7_1+W9ZW7_1+ W10ZW7_1 +rracewhite) AND (6*rracewhite=CP_Q14_01+W1Y6_1+W2W7_1+W9ZW7_1+ W10ZW7_1+ W16Q14_1). compute white=CP_Q14_01. else. compute white=-2. end if. end if. exe. miss val CP_Q14_01 W1Y6_1 W2W7_1 W9ZW7_1 W10ZW7_1 rracewhite (-9 thru -1). recode CP_Q14_01 (-6=sysmis)(else=copy) into CP_Q14_01 . recode W1Y6_1 (-6=sysmis)(else=copy) into W1Y6_1. recode W2W7_1 (-6=sysmis)(else=copy) into W2W7_1. recode W9ZW7_1 (-6=sysmis)(else=copy) into W9ZW7_1. recode W10ZW7_1 (-6=sysmis)(else=copy) into W10ZW7_1. recode W16Q14_1 (-6=sysmis)(else=copy) into W16Q14_1. recode rracewhite (-6=sysmis)(else=copy) into rracewhite. var lab white "Those who identify as white". val lab white -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 0 "0. not white" 1 "1. white". recode CP_Q14_02 (sysmis=-6)(else=copy) into CP_Q14_02 . recode W1Y6_2 (sysmis=-6)(else=copy) into W1Y6_2. recode W2W7_2 (sysmis=-6)(else=copy) into W2W7_2. recode W9ZW7_2 (sysmis=-6)(else=copy) into W9ZW7_2. recode W10ZW7_2 (sysmis=-6)(else=copy) into W10ZW7_2. recode W16Q14_2 (sysmis=-6)(else=copy) into W16Q14_2. recode rraceblack (sysmis=-6)(else=copy) into rraceblack. miss val CP_Q14_02 W1Y6_2 W2W7_2 W9ZW7_2 W10ZW7_2 rraceblack (). compute africanamerican=-99. do if CP_Q14_02=1 OR W1Y6_2=1 OR W2W7_2=1 OR W9ZW7_2=1 OR W10ZW7_2=1 OR W16Q14_2=1 OR rraceblack=1. compute africanamerican=1. else if CP_Q14_02=0 AND W1Y6_2<=0 AND W2W7_2<=0 AND W9ZW7_2<=0 AND W10ZW7_2<=0 AND W16Q14_2<=0 AND rraceblack<=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2=0 AND W2W7_2<=0 AND W9ZW7_2<=0 AND W10ZW7_2<=0 AND W16Q14_2<=0 AND rraceblack<=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2<0 AND W2W7_2=0 AND W9ZW7_2<=0 AND W10ZW7_2<=0 AND W16Q14_2<=0 AND rraceblack<=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2<0 AND W2W7_2 <0 AND W9ZW7_2=0 AND W10ZW7_2<=0 AND W16Q14_2<=0 AND rraceblack<=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2<0 AND W2W7_2<0 AND W9ZW7_2<0 AND W10ZW7_2=0 AND W16Q14_2<=0 AND rraceblack<=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2<0 AND W2W7_2<0 AND W9ZW7_2<0 AND W10ZW7_2<0 AND W16Q14_2=0 and rraceblack<=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2<0 AND W2W7_2<0 AND W9ZW7_2<0 AND W10ZW7_2<0 AND W16Q14_2<0 and rraceblack=0. compute africanamerican=0. else if CP_Q14_02<0 AND W1Y6_2<0 AND W2W7_2<0 AND W9ZW7_2<0 AND W10ZW7_2<0 AND W16Q14_2<0 AND rraceblack<0. do if (6*CP_Q14_02=W1Y6_2+W2W7_2+W9ZW7_2+W10ZW7_2 + rraceblack + W16Q14_2) AND (6*W1Y6_2=CP_Q14_02+W2W7_2+W9ZW7_2+W10ZW7_2 + rraceblack+ W16Q14_2) AND (6*W2W7_2=CP_Q14_02+W1Y6_2+W9ZW7_2+W10ZW7_2 + rraceblack+ W16Q14_2) AND (6*W9ZW7_2=CP_Q14_02+W1Y6_2+W2W7_2+W10ZW7_2 + rraceblack+ W16Q14_2) AND (6*W10ZW7_2=CP_Q14_02+W1Y6_2+W2W7_2+W9ZW7_2+ rraceblack+ W16Q14_2) AND (6*rraceblack=CP_Q14_02+W1Y6_2+W2W7_2+W9ZW7_2+ W10ZW7_2+ W16Q14_2) AND (6*W16Q14_2=CP_Q14_02+W1Y6_2+W2W7_2+W9ZW7_2+ W10ZW7_2+ rraceblack). compute africanamerican=CP_Q14_02. else. compute africanamerican=-2. end if. end if. exe. miss val CP_Q14_02 W1Y6_2 W2W7_2 W9ZW7_2 W10ZW7_2 rraceblack (-9 thru -1). recode CP_Q14_02 (-6=sysmis)(else=copy) into CP_Q14_02 . recode W1Y6_2 (-6=sysmis)(else=copy) into W1Y6_2. recode W2W7_2 (-6=sysmis)(else=copy) into W2W7_2. recode W9ZW7_2 (-6=sysmis)(else=copy) into W9ZW7_2. recode W10ZW7_2 (-6=sysmis)(else=copy) into W10ZW7_2. recode W16Q14_2 (-6=sysmis)(else=copy) into W16W14_2. recode rraceblack (-6=sysmis)(else=copy) into rraceblack. var lab africanamerican "Those who identify as africanamerican". val lab africanamerican -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 0 "0. not white" 1 "1. white". recode CP_Q14_04 (sysmis=-6)(else=copy) into CP_Q14_04. recode CP_Q14_05 (sysmis=-6)(else=copy) into CP_Q14_05. recode CP_Q14_06 (sysmis=-6)(else=copy) into CP_Q14_06. recode CP_Q14_07 (sysmis=-6)(else=copy) into CP_Q14_07. recode CP_Q14_08 (sysmis=-6)(else=copy) into CP_Q14_08. recode CP_Q14_09 (sysmis=-6)(else=copy) into CP_Q14_09. recode CP_Q14_10 (sysmis=-6)(else=copy) into CP_Q14_10. miss val CP_Q14_04 TO CP_Q14_10 (). compute asianamerican_a=-99. do if CP_Q14_04=1 OR CP_Q14_05=1 OR CP_Q14_06=1 OR CP_Q14_07=1 OR CP_Q14_08=1 OR CP_Q14_09=1 OR CP_Q14_10=1. compute asianamerican_a=1. else if CP_Q14_04=0 AND CP_Q14_05=0 AND CP_Q14_06=0 AND CP_Q14_07=0 AND CP_Q14_08=0 AND CP_Q14_09=0 AND CP_Q14_10=0. compute asianamerican_a=0. else if CP_Q14_04<0 AND CP_Q14_05<0 AND CP_Q14_06<0 AND CP_Q14_07<0 AND CP_Q14_08<0 AND CP_Q14_09<0 AND CP_Q14_10<0. do if (6*CP_Q14_04=CP_Q14_05+CP_Q14_06+CP_Q14_07+CP_Q14_08+CP_Q14_09+CP_Q14_10) AND (6*CP_Q14_05=CP_Q14_04+CP_Q14_06+CP_Q14_07+CP_Q14_08+CP_Q14_09+CP_Q14_10) AND (6*CP_Q14_06=CP_Q14_04+CP_Q14_05+CP_Q14_07+CP_Q14_08+CP_Q14_09+CP_Q14_10) AND (6*CP_Q14_07=CP_Q14_04+CP_Q14_05+CP_Q14_06+CP_Q14_08+CP_Q14_09+CP_Q14_10) AND (6*CP_Q14_08=CP_Q14_04+CP_Q14_05+CP_Q14_06+CP_Q14_07+CP_Q14_09+CP_Q14_10) AND (6*CP_Q14_09=CP_Q14_04+CP_Q14_05+CP_Q14_06+CP_Q14_07+CP_Q14_08+CP_Q14_10) AND (6*CP_Q14_10=CP_Q14_04+CP_Q14_05+CP_Q14_06+CP_Q14_07+CP_Q14_08+CP_Q14_09). compute asianamerican_a=CP_Q14_05. else. compute asianamerican_a=-2. end if. end if. exe. recode W1Y6_4 (sysmis=-6)(else=copy) into W1Y6_4 . recode W1Y6_5 (sysmis=-6)(else=copy) into W1Y6_5. recode W1Y6_6 (sysmis=-6)(else=copy) into W1Y6_6. recode W1Y6_7 (sysmis=-6)(else=copy) into W1Y6_7. recode W1Y6_8 (sysmis=-6)(else=copy) into W1Y6_8. recode W1Y6_9 (sysmis=-6)(else=copy) into W1Y6_9. recode W1Y6_10 (sysmis=-6)(else=copy) into W1Y6_10. miss val W1Y6_4 TO W1Y6_10 (). compute asianamerican_b=-99. do if W1Y6_4=1 OR W1Y6_5=1 OR W1Y6_6=1 OR W1Y6_7=1 OR W1Y6_8=1 OR W1Y6_9=1 OR W1Y6_10=1. compute asianamerican_b=1. else if W1Y6_4=0 AND W1Y6_5=0 AND W1Y6_6=0 AND W1Y6_7=0 AND W1Y6_8=0 AND W1Y6_9=0 AND W1Y6_10=0. compute asianamerican_b=0. else if W1Y6_4<0 AND W1Y6_5<0 AND W1Y6_6<0 AND W1Y6_7<0 AND W1Y6_8<0 AND W1Y6_9<0 AND W1Y6_10<0. do if (6*W1Y6_4=W1Y6_5+W1Y6_6+W1Y6_7+W1Y6_8+W1Y6_9+W1Y6_10) AND (6*W1Y6_5=W1Y6_4+W1Y6_6+W1Y6_7+W1Y6_8+W1Y6_9+W1Y6_10) AND (6*W1Y6_6=W1Y6_4+W1Y6_5+W1Y6_7+W1Y6_8+W1Y6_9+W1Y6_10) AND (6*W1Y6_7=W1Y6_4+W1Y6_5+W1Y6_6+W1Y6_8+W1Y6_9+W1Y6_10) AND (6*W1Y6_8=W1Y6_4+W1Y6_5+W1Y6_6+W1Y6_7+W1Y6_9+W1Y6_10) AND (6*W1Y6_9=W1Y6_4+W1Y6_5+W1Y6_6+W1Y6_7+W1Y6_8+W1Y6_10) AND (6*W1Y6_10=W1Y6_4+W1Y6_5+W1Y6_6+W1Y6_7+W1Y6_8+W1Y6_9). compute asianamerican_b=W1Y6_5. else. compute asianamerican_b=-2. end if. end if. exe. recode W2W7_4 (sysmis=-6)(else=copy) into W2W7_4 . recode W2W7_5 (sysmis=-6)(else=copy) into W2W7_5. recode W2W7_6 (sysmis=-6)(else=copy) into W2W7_6. recode W2W7_7 (sysmis=-6)(else=copy) into W2W7_7. recode W2W7_8 (sysmis=-6)(else=copy) into W2W7_8. recode W2W7_9 (sysmis=-6)(else=copy) into W2W7_9. recode W2W7_10 (sysmis=-6)(else=copy) into W2W7_10. miss val W2W7_4 TO W2W7_10 (). compute asianamerican_c=-99. do if W2W7_4=1 OR W2W7_5=1 OR W2W7_6=1 OR W2W7_7=1 OR W2W7_8=1 OR W2W7_9=1 OR W2W7_10=1. compute asianamerican_c=1. else if W2W7_4=0 AND W2W7_5=0 AND W2W7_6=0 AND W2W7_7=0 AND W2W7_8=0 AND W2W7_9=0 AND W2W7_10=0. compute asianamerican_c=0. else if W2W7_4<0 AND W2W7_5<0 AND W2W7_6<0 AND W2W7_7<0 AND W2W7_8<0 AND W2W7_9<0 AND W2W7_10<0. do if (6*W2W7_4=W2W7_5+W2W7_6+W2W7_7+W2W7_8+W2W7_9+W2W7_10) AND (6*W2W7_5=W2W7_4+W2W7_6+W2W7_7+W2W7_8+W2W7_9+W2W7_10) AND (6*W2W7_6=W2W7_4+W2W7_5+W2W7_7+W2W7_8+W2W7_9+W2W7_10) AND (6*W2W7_7=W2W7_4+W2W7_5+W2W7_6+W2W7_8+W2W7_9+W2W7_10) AND (6*W2W7_8=W2W7_4+W2W7_5+W2W7_6+W2W7_7+W2W7_9+W2W7_10) AND (6*W2W7_9=W2W7_4+W2W7_5+W2W7_6+W2W7_7+W2W7_8+W2W7_10) AND (6*W2W7_10=W2W7_4+W2W7_5+W2W7_6+W2W7_7+W2W7_8+W2W7_9). compute asianamerican_c=W2W7_5. else. compute asianamerican_c=-2. end if. end if. exe. recode W9ZW7_4 (sysmis=-6)(else=copy) into W9ZW7_4 . recode W9ZW7_5 (sysmis=-6)(else=copy) into W9ZW7_5. recode W9ZW7_6 (sysmis=-6)(else=copy) into W9ZW7_6. recode W9ZW7_7 (sysmis=-6)(else=copy) into W9ZW7_7. recode W9ZW7_8 (sysmis=-6)(else=copy) into W9ZW7_8. recode W9ZW7_9 (sysmis=-6)(else=copy) into W9ZW7_9. recode W9ZW7_10 (sysmis=-6)(else=copy) into W9ZW7_10. miss val W9ZW7_4 TO W9ZW7_10 (). compute asianamerican_d=-99. do if W9ZW7_4=1 OR W9ZW7_5=1 OR W9ZW7_6=1 OR W9ZW7_7=1 OR W9ZW7_8=1 OR W9ZW7_9=1 OR W9ZW7_10=1. compute asianamerican_d=1. else if W9ZW7_4=0 AND W9ZW7_5=0 AND W9ZW7_6=0 AND W9ZW7_7=0 AND W9ZW7_8=0 AND W9ZW7_9=0 AND W9ZW7_10=0. compute asianamerican_d=0. else if W9ZW7_4<0 AND W9ZW7_5<0 AND W9ZW7_6<0 AND W9ZW7_7<0 AND W9ZW7_8<0 AND W9ZW7_9<0 AND W9ZW7_10<0. do if (6*W9ZW7_4=W9ZW7_5+W9ZW7_6+W9ZW7_7+W9ZW7_8+W9ZW7_9+W9ZW7_10) AND (6*W9ZW7_5=W9ZW7_4+W9ZW7_6+W9ZW7_7+W9ZW7_8+W9ZW7_9+W9ZW7_10) AND (6*W9ZW7_6=W9ZW7_4+W9ZW7_5+W9ZW7_7+W9ZW7_8+W9ZW7_9+W9ZW7_10) AND (6*W9ZW7_7=W9ZW7_4+W9ZW7_5+W9ZW7_6+W9ZW7_8+W9ZW7_9+W9ZW7_10) AND (6*W9ZW7_8=W9ZW7_4+W9ZW7_5+W9ZW7_6+W9ZW7_7+W9ZW7_9+W9ZW7_10) AND (6*W9ZW7_9=W9ZW7_4+W9ZW7_5+W9ZW7_6+W9ZW7_7+W9ZW7_8+W9ZW7_10) AND (6*W9ZW7_10=W9ZW7_4+W9ZW7_5+W9ZW7_6+W9ZW7_7+W9ZW7_8+W9ZW7_9). compute asianamerican_d=W9ZW7_5. else. compute asianamerican_d=-2. end if. end if. exe. recode W10ZW7_4 (sysmis=-6)(else=copy) into W10ZW7_4 . recode W10ZW7_5 (sysmis=-6)(else=copy) into W10ZW7_5. recode W10ZW7_6 (sysmis=-6)(else=copy) into W10ZW7_6. recode W10ZW7_7 (sysmis=-6)(else=copy) into W10ZW7_7. recode W10ZW7_8 (sysmis=-6)(else=copy) into W10ZW7_8. recode W10ZW7_9 (sysmis=-6)(else=copy) into W10ZW7_9. recode W10ZW7_10 (sysmis=-6)(else=copy) into W10ZW7_10. miss val W10ZW7_4 TO W10ZW7_10 (). compute asianamerican_e=-99. do if W10ZW7_4=1 OR W10ZW7_5=1 OR W10ZW7_6=1 OR W10ZW7_7=1 OR W10ZW7_8=1 OR W10ZW7_9=1 OR W10ZW7_10=1. compute asianamerican_e=1. else if W10ZW7_4=0 AND W10ZW7_5=0 AND W10ZW7_6=0 AND W10ZW7_7=0 AND W10ZW7_8=0 AND W10ZW7_9=0 AND W10ZW7_10=0. compute asianamerican_e=0. else if W10ZW7_4<0 AND W10ZW7_5<0 AND W10ZW7_6<0 AND W10ZW7_7<0 AND W10ZW7_8<0 AND W10ZW7_9<0 AND W10ZW7_10<0. do if (6*W10ZW7_4=W10ZW7_5+W10ZW7_6+W10ZW7_7+W10ZW7_8+W10ZW7_9+W10ZW7_10) AND (6*W10ZW7_5=W10ZW7_4+W10ZW7_6+W10ZW7_7+W10ZW7_8+W10ZW7_9+W10ZW7_10) AND (6*W10ZW7_6=W10ZW7_4+W10ZW7_5+W10ZW7_7+W10ZW7_8+W10ZW7_9+W10ZW7_10) AND (6*W10ZW7_7=W10ZW7_4+W10ZW7_5+W10ZW7_6+W10ZW7_8+W10ZW7_9+W10ZW7_10) AND (6*W10ZW7_8=W10ZW7_4+W10ZW7_5+W10ZW7_6+W10ZW7_7+W10ZW7_9+W10ZW7_10) AND (6*W10ZW7_9=W10ZW7_4+W10ZW7_5+W10ZW7_6+W10ZW7_7+W10ZW7_8+W10ZW7_10) AND (6*W10ZW7_10=W10ZW7_4+W10ZW7_5+W10ZW7_6+W10ZW7_7+W10ZW7_8+W10ZW7_9). compute asianamerican_e=W10ZW7_5. else. compute asianamerican_e=-2. end if. end if. exe. recode W16Q14_5 (sysmis=-6)(else=copy) into W16Q14_5. recode W16Q14_6 (sysmis=-6)(else=copy) into W16Q14_6. recode W16Q14_7 (sysmis=-6)(else=copy) into W16Q14_7. recode W16Q14_8 (sysmis=-6)(else=copy) into W16Q14_8. recode W16Q14_9 (sysmis=-6)(else=copy) into W16Q14_9. recode W16Q14_10 (sysmis=-6)(else=copy) into W16Q14_10. recode W16Q14_11 (sysmis=-6)(else=copy) into W16Q14_11. miss val W16Q14_5 to W16Q14_11 (). compute asianamerican_f=-99. do if W16Q14_5=1 OR W16Q14_6=1 OR W16Q14_7=1 OR W16Q14_8=1 OR W16Q14_9=1 OR W16Q14_10=1 OR W16Q14_11=1. compute asianamerican_f=1. else if W16Q14_5=0 AND W16Q14_6=0 AND W16Q14_7=0 AND W16Q14_8=0 AND W16Q14_9=0 AND W16Q14_10=0 AND W16Q14_11=0. compute asianamerican_f=0. else if W16Q14_5<0 AND W16Q14_6<0 AND W16Q14_7<0 AND W16Q14_8<0 AND W16Q14_9<0 AND W16Q14_10<0 AND W16Q14_11<0. do if (6*W16Q14_5=W16Q14_6+W16Q14_7+W16Q14_8+W16Q14_9+W16Q14_10+W16Q14_11) AND (6*W16Q14_6=W16Q14_5+W16Q14_7+W16Q14_8+W16Q14_9+W16Q14_10+W16Q14_11) AND (6*W16Q14_7=W16Q14_5+W16Q14_6+W16Q14_8+W16Q14_9+W16Q14_10+W16Q14_11) AND (6*W16Q14_8=W16Q14_5+W16Q14_6+W16Q14_7+W16Q14_9+W16Q14_10+W16Q14_11) AND (6*W16Q14_9=W16Q14_5+W16Q14_6+W16Q14_7+W16Q14_8+W16Q14_10+W16Q14_11) AND (6*W16Q14_10=W16Q14_5+W16Q14_6+W16Q14_7+W16Q14_8+W16Q14_9+W16Q14_11) AND (6*W16Q14_11=W16Q14_5+W16Q14_6+W16Q14_7+W16Q14_8+W16Q14_9+W16Q14_10). compute asianamerican_f=W16Q14_6. else. compute asianamerican_f=-2. end if. end if. exe. recode rraceasian (sysmis=-6)(else=copy) into rraceasian. miss val rraceasian (). compute asianamerican=-99. do if asianamerican_a=1 OR asianamerican_b=1 OR asianamerican_c=1 OR asianamerican_d=1 OR asianamerican_e=1 OR asianamerican_f=1 OR rraceasian=1. compute asianamerican=1. else if asianamerican_a=0 AND asianamerican_b<=0 AND asianamerican_c<=0 AND asianamerican_d<=0 AND asianamerican_e<=0 AND asianamerican_f<=0 AND rraceasian<=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b=0 AND asianamerican_c<=0 AND asianamerican_d<=0 AND asianamerican_e<=0 AND asianamerican_f<=0 AND rraceasian<=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b<0 AND asianamerican_c=0 AND asianamerican_d<=0 AND asianamerican_e<=0 AND asianamerican_f<=0 AND rraceasian<=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b<0 AND asianamerican_c<0 AND asianamerican_d=0 AND asianamerican_e<=0 AND asianamerican_f<=0 AND rraceasian<=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b<0 AND asianamerican_c<0 AND asianamerican_d<0 AND asianamerican_e=0 AND asianamerican_f<=0 AND rraceasian<=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b<0 AND asianamerican_c<0 AND asianamerican_d<0 AND asianamerican_e<0 AND asianamerican_f=0 AND rraceasian<=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b<0 AND asianamerican_c<0 AND asianamerican_d<0 AND asianamerican_e<0 AND asianamerican_f<0 AND rraceasian=0. compute asianamerican=0. else if asianamerican_a<0 AND asianamerican_b<0 AND asianamerican_c<0 AND asianamerican_d<0 AND asianamerican_e<0 AND rraceasian<0 AND asianamerican_f<0. do if (6*asianamerican_a=asianamerican_b+asianamerican_c+asianamerican_d+asianamerican_e+rraceasian+asianamerican_f) AND (6*asianamerican_b=asianamerican_a+asianamerican_c+asianamerican_d+asianamerican_e+rraceasian+asianamerican_f) AND (6*asianamerican_c=asianamerican_a+asianamerican_b+asianamerican_d+asianamerican_e+rraceasian+asianamerican_f) AND (6*asianamerican_d=asianamerican_a+asianamerican_b+asianamerican_c+asianamerican_e+rraceasian+asianamerican_f) AND (6*asianamerican_e=asianamerican_a+asianamerican_b+asianamerican_c+asianamerican_d+rraceasian+asianamerican_f) AND (6*rraceasian=asianamerican_a+asianamerican_b+asianamerican_c+asianamerican_d+asianamerican_e+asianamerican_f) AND (6*asianamerican_f=asianamerican_a+asianamerican_b+asianamerican_c+asianamerican_d+asianamerican_e+rraceasian). compute asianamerican=asianamerican_e. else. compute asianamerican=-2. end if. end if. miss val CP_Q14_04 TO CP_Q14_10 (-9 thru -1). recode CP_Q14_04 (-6=sysmis)(else=copy) into CP_Q14_04 . recode CP_Q14_05 (-6=sysmis)(else=copy) into CP_Q14_05. recode CP_Q14_06 (-6=sysmis)(else=copy) into CP_Q14_06. recode CP_Q14_07 (-6=sysmis)(else=copy) into CP_Q14_07. recode CP_Q14_08 (-6=sysmis)(else=copy) into CP_Q14_08. recode CP_Q14_09 (-6=sysmis)(else=copy) into CP_Q14_09. recode CP_Q14_10 (-6=sysmis)(else=copy) into CP_Q14_10. miss val W1Y6_4 TO W1Y6_10 (-9 thru -1). recode W1Y6_4 (-6=sysmis)(else=copy) into W1Y6_4 . recode W1Y6_5 (-6=sysmis)(else=copy) into W1Y6_5. recode W1Y6_6 (-6=sysmis)(else=copy) into W1Y6_6. recode W1Y6_7 (-6=sysmis)(else=copy) into W1Y6_7. recode W1Y6_8 (-6=sysmis)(else=copy) into W1Y6_8. recode W1Y6_9 (-6=sysmis)(else=copy) into W1Y6_9. recode W1Y6_10 (-6=sysmis)(else=copy) into W1Y6_10. miss val W2W7_4 TO W2W7_10 (-9 thru -1). recode W2W7_4 (-6=sysmis)(else=copy) into W2W7_4 . recode W2W7_5 (-6=sysmis)(else=copy) into W2W7_5. recode W2W7_6 (-6=sysmis)(else=copy) into W2W7_6. recode W2W7_7 (-6=sysmis)(else=copy) into W2W7_7. recode W2W7_8 (-6=sysmis)(else=copy) into W2W7_8. recode W2W7_9 (-6=sysmis)(else=copy) into W2W7_9. recode W2W7_10 (-6=sysmis)(else=copy) into W2W7_10. miss val W9ZW7_4 TO W9ZW7_10 (-9 thru -1). recode W9ZW7_4 (-6=sysmis)(else=copy) into W9ZW7_4 . recode W9ZW7_5 (-6=sysmis)(else=copy) into W9ZW7_5. recode W9ZW7_6 (-6=sysmis)(else=copy) into W9ZW7_6. recode W9ZW7_7 (-6=sysmis)(else=copy) into W9ZW7_7. recode W9ZW7_8 (-6=sysmis)(else=copy) into W9ZW7_8. recode W9ZW7_9 (-6=sysmis)(else=copy) into W9ZW7_9. recode W9ZW7_10 (-6=sysmis)(else=copy) into W9ZW7_10. miss val W10ZW7_4 TO W10ZW7_14 (-9 thru -1). recode W10ZW7_4 (-6=sysmis)(else=copy) into W10ZW7_4 . recode W10ZW7_5 (-6=sysmis)(else=copy) into W10ZW7_5. recode W10ZW7_6 (-6=sysmis)(else=copy) into W10ZW7_6. recode W10ZW7_7 (-6=sysmis)(else=copy) into W10ZW7_7. recode W10ZW7_8 (-6=sysmis)(else=copy) into W10ZW7_8. recode W10ZW7_9 (-6=sysmis)(else=copy) into W10ZW7_9. recode W10ZW7_10 (-6=sysmis)(else=copy) into W10ZW7_10. miss val W16Q14_5 TO W16Q14_11 (-9 thru -1). recode W16Q14_5 (-6=sysmis)(else=copy) into W16Q14_5. recode W16Q14_6 (-6=sysmis)(else=copy) into W16Q14_6. recode W16Q14_7 (-6=sysmis)(else=copy) into W16Q14_7. recode W16Q14_8 (-6=sysmis)(else=copy) into W16Q14_8. recode W16Q14_9 (-6=sysmis)(else=copy) into W16Q14_9. recode W16Q14_10 (-6=sysmis)(else=copy) into W16Q14_10. recode W16Q14_11 (-6=sysmis)(else=copy) into W16Q14_11. var lab asianamerican "Those who identify as asian american". val lab asianamerican -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 0 "0. not white" 1 "1. white". recode CP_Q14_11 (sysmis=-6)(else=copy) into CP_Q14_11. recode CP_Q14_12 (sysmis=-6)(else=copy) into CP_Q14_12. recode CP_Q14_13 (sysmis=-6)(else=copy) into CP_Q14_13. recode CP_Q14_14 (sysmis=-6)(else=copy) into CP_Q14_14. miss val CP_Q14_11 TO CP_Q14_14 (). compute pacificislander_a=-99. do if CP_Q14_11=1 OR CP_Q14_12=1 OR CP_Q14_13=1 OR CP_Q14_14=1. compute pacificislander_a=1. else if CP_Q14_11=0 AND CP_Q14_12=0 AND CP_Q14_13=0 AND CP_Q14_14=0. compute pacificislander_a=0. else if CP_Q14_11<0 AND CP_Q14_12<0 AND CP_Q14_13<0 AND CP_Q14_14<0. do if (3*CP_Q14_11=CP_Q14_12+CP_Q14_13+CP_Q14_14) AND (3*CP_Q14_12=CP_Q14_11+CP_Q14_13+CP_Q14_14) AND (3*CP_Q14_13=CP_Q14_11+CP_Q14_12+CP_Q14_14) AND (3*CP_Q14_14=CP_Q14_11+CP_Q14_12+CP_Q14_13). compute pacificislander_a=CP_Q14_11. else. compute pacificislander_a=-2. end if. end if. exe. recode W1Y6_11 (sysmis=-6)(else=copy) into W1Y6_11. recode W1Y6_12 (sysmis=-6)(else=copy) into W1Y6_12. recode W1Y6_13 (sysmis=-6)(else=copy) into W1Y6_13. recode W1Y6_14 (sysmis=-6)(else=copy) into W1Y6_14. miss val W1Y6_11 TO W1Y6_14 (). compute pacificislander_b=-99. do if W1Y6_11=1 OR W1Y6_12=1 OR W1Y6_13=1 OR W1Y6_14=1. compute pacificislander_b=1. else if W1Y6_11=0 AND W1Y6_12=0 AND W1Y6_13=0 AND W1Y6_14=0. compute pacificislander_b=0. else if W1Y6_11<0 AND W1Y6_12<0 AND W1Y6_13<0 AND W1Y6_14<0. do if (3*W1Y6_11=W1Y6_12+W1Y6_13+W1Y6_14) AND (3*W1Y6_12=W1Y6_11+W1Y6_13+W1Y6_14) AND (3*W1Y6_13=W1Y6_11+W1Y6_12+W1Y6_14) AND (3*W1Y6_14=W1Y6_11+W1Y6_12+W1Y6_13). compute pacificislander_b=W1Y6_11. else. compute pacificislander_b=-2. end if. end if. recode W2W7_11 (sysmis=-6)(else=copy) into W2W7_11. recode W2W7_12 (sysmis=-6)(else=copy) into W2W7_12. recode W2W7_13 (sysmis=-6)(else=copy) into W2W7_13. recode W2W7_14 (sysmis=-6)(else=copy) into W2W7_14. miss val W2W7_11 TO W2W7_14 (). compute pacificislander_c=-99. do if W2W7_11=1 OR W2W7_12=1 OR W2W7_13=1 OR W2W7_14=1. compute pacificislander_c=1. else if W2W7_11=0 AND W2W7_12=0 AND W2W7_13=0 AND W2W7_14=0. compute pacificislander_c=0. else if W2W7_11<0 AND W2W7_12<0 AND W2W7_13<0 AND W2W7_14<0. do if (3*W2W7_11=W2W7_12+W2W7_13+W2W7_14) AND (3*W2W7_12=W2W7_11+W2W7_13+W2W7_14) AND (3*W2W7_13=W2W7_11+W2W7_12+W2W7_14) AND (3*W2W7_14=W2W7_11+W2W7_12+W2W7_13). compute pacificislander_c=W2W7_11. else. compute pacificislander_c=-2. end if. end if. exe. recode W9ZW7_11 (sysmis=-6)(else=copy) into W9ZW7_11. recode W9ZW7_12 (sysmis=-6)(else=copy) into W9ZW7_12. recode W9ZW7_13 (sysmis=-6)(else=copy) into W9ZW7_13. recode W9ZW7_14 (sysmis=-6)(else=copy) into W9ZW7_14. miss val W9ZW7_11 TO W9ZW7_14 (). compute pacificislander_d=-99. do if W9ZW7_11=1 OR W9ZW7_12=1 OR W9ZW7_13=1 OR W9ZW7_14=1. compute pacificislander_d=1. else if W9ZW7_11=0 AND W9ZW7_12=0 AND W9ZW7_13=0 AND W9ZW7_14=0. compute pacificislander_d=0. else if W9ZW7_11<0 AND W9ZW7_12<0 AND W9ZW7_13<0 AND W9ZW7_14<0. do if (3*W9ZW7_11=W9ZW7_12+W9ZW7_13+W9ZW7_14) AND (3*W9ZW7_12=W9ZW7_11+W9ZW7_13+W9ZW7_14) AND (3*W9ZW7_13=W9ZW7_11+W9ZW7_12+W9ZW7_14) AND (3*W9ZW7_14=W9ZW7_11+W9ZW7_12+W9ZW7_13). compute pacificislander_d=W9ZW7_11. else. compute pacificislander_d=-2. end if. end if. exe. recode W10ZW7_11 (sysmis=-6)(else=copy) into W10ZW7_11. recode W10ZW7_12 (sysmis=-6)(else=copy) into W10ZW7_12. recode W10ZW7_13 (sysmis=-6)(else=copy) into W10ZW7_13. recode W10ZW7_14 (sysmis=-6)(else=copy) into W10ZW7_14. miss val W10ZW7_11 TO W10ZW7_14 (). compute pacificislander_e=-99. do if W10ZW7_11=1 OR W10ZW7_12=1 OR W10ZW7_13=1 OR W10ZW7_14=1. compute pacificislander_e=1. else if W10ZW7_11=0 AND W10ZW7_12=0 AND W10ZW7_13=0 AND W10ZW7_14=0. compute pacificislander_e=0. else if W10ZW7_11<0 AND W10ZW7_12<0 AND W10ZW7_13<0 AND W10ZW7_14<0. do if (3*W10ZW7_11=W10ZW7_12+W10ZW7_13+W10ZW7_14) AND (3*W10ZW7_12=W10ZW7_11+W10ZW7_13+W10ZW7_14) AND (3*W10ZW7_13=W10ZW7_11+W10ZW7_12+W10ZW7_14) AND (3*W10ZW7_14=W10ZW7_11+W10ZW7_12+W10ZW7_13). compute pacificislander_e=W10ZW7_11. else. compute pacificislander_e=-2. end if. end if. exe. recode W16Q14_13 (sysmis=-6)(else=copy) into W16Q14_13. recode W16Q14_14 (sysmis=-6)(else=copy) into W16Q14_14. recode W16Q14_15 (sysmis=-6)(else=copy) into W16Q14_15. recode W16Q14_16 (sysmis=-6)(else=copy) into W16Q14_16. miss val W16Q14_13 TO W16Q14_16 (). compute pacificislander_f=-99. do if W16Q14_13=1 OR W16Q14_14=1 OR W16Q14_15=1 OR W16Q14_16=1. compute pacificislander_f=1. else if W16Q14_13=0 AND W16Q14_14=0 AND W16Q14_15=0 AND W16Q14_16=0. compute pacificislander_f=0. else if W16Q14_13<0 AND W16Q14_14<0 AND W16Q14_15<0 AND W16Q14_16<0. do if (3*W16Q14_13=W16Q14_14+W16Q14_15+W16Q14_16) AND (3*W16Q14_14=W16Q14_13+W16Q14_15+W16Q14_16) AND (3*W16Q14_15=W16Q14_13+W16Q14_14+W16Q14_16) AND (3*W16Q14_16=W16Q14_13+W16Q14_14+W16Q14_15). compute pacificislander_f=W16Q14_13. else. compute pacificislander_f=-2. end if. end if. exe. recode rracepacisle (sysmis=-6)(else=copy) into rracepacisle. recode rracehawaiian (sysmis=-6)(else=copy) into rracehawaiian. miss val rracehawaiian rracepacisle (). compute pacificislander=-99. do if pacificislander_a=1 OR pacificislander_b=1 OR pacificislander_c=1 OR pacificislander_d=1 OR pacificislander_e=1 OR rracehawaiian=1 OR rracepacisle=1 OR pacificislander_f=1. compute pacificislander=1. else if pacificislander_a=0 AND pacificislander_b<=0 AND pacificislander_c<=0 AND pacificislander_d<=0 AND pacificislander_e<=0 AND pacificislander_f<=0 AND rracehawaiian<=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b=0 AND pacificislander_c<=0 AND pacificislander_d<=0 AND pacificislander_e<=0 AND pacificislander_f<=0 AND rracehawaiian<=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c=0 AND pacificislander_d<=0 AND pacificislander_e<=0 AND pacificislander_f<=0 AND rracehawaiian<=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c<0 AND pacificislander_d=0 AND pacificislander_e<=0 AND pacificislander_f<=0 AND rracehawaiian<=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c<0 AND pacificislander_d<0 AND pacificislander_e=0 AND pacificislander_f<=0 AND rracehawaiian<=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c<0 AND pacificislander_d<0 AND pacificislander_e<0 AND pacificislander_f=0 AND rracehawaiian<=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c<0 AND pacificislander_d<0 AND pacificislander_e<0 AND pacificislander_f<0 AND rracehawaiian=0 AND rracepacisle<=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c<0 AND pacificislander_d<0 AND pacificislander_e<0 AND pacificislander_f<0 AND rracehawaiian<0 AND rracepacisle=0. compute pacificislander=0. else if pacificislander_a<0 AND pacificislander_b<0 AND pacificislander_c<0 AND pacificislander_d<0 AND pacificislander_e<0 AND pacificislander_f<0 AND rracehawaiian<0 AND rracepacisle<0. do if (7*pacificislander_a=pacificislander_b+pacificislander_c+pacificislander_d+pacificislander_e + rracehawaiian +rracepacisle+pacificislander_f) AND (7*pacificislander_b=pacificislander_a+pacificislander_c+pacificislander_d+pacificislander_e + rracehawaiian +rracepacisle+pacificislander_f) AND (7*pacificislander_c=pacificislander_a+pacificislander_b+pacificislander_d+pacificislander_e + rracehawaiian+rracepacisle+pacificislander_f) AND (7*pacificislander_d=pacificislander_a+pacificislander_b+pacificislander_c+pacificislander_e + rracehawaiian+rracepacisle+pacificislander_f) AND (7*pacificislander_e=pacificislander_a+pacificislander_b+pacificislander_c+pacificislander_d+ rracehawaiian+rracepacisle+pacificislander_f) AND (7*rracehawaiian=pacificislander_a+pacificislander_b+pacificislander_c+pacificislander_d+ pacificislander_e+rracepacisle+pacificislander_f) AND (7*rracepacisle=pacificislander_a+pacificislander_b+pacificislander_c+pacificislander_d+ pacificislander_e+rracehawaiian+pacificislander_f) AND (7*pacificislander_f=pacificislander_a+pacificislander_b+pacificislander_c+pacificislander_d+ pacificislander_e+rracehawaiian+rracepacisle). compute pacificislander=rracehawaiian. else. compute pacificislander=-2. end if. end if. exe. miss val CP_Q14_11 TO CP_Q14_14 (-9 thru -1). recode CP_Q14_11 (-6=sysmis)(else=copy) into CP_Q14_11. recode CP_Q14_12 (-6=sysmis)(else=copy) into CP_Q14_12. recode CP_Q14_13 (-6=sysmis)(else=copy) into CP_Q14_13. recode CP_Q14_14 (-6=sysmis)(else=copy) into CP_Q14_14. miss val W1Y6_11 TO W1Y6_14 (-9 thru -1). recode W1Y6_11 (-6=sysmis)(else=copy) into W1Y6_11. recode W1Y6_12 (-6=sysmis)(else=copy) into W1Y6_12. recode W1Y6_13 (-6=sysmis)(else=copy) into W1Y6_13. recode W1Y6_14 (-6=sysmis)(else=copy) into W1Y6_14. miss val W2W7_11 TO W2W7_14 (-9 thru -1). recode W2W7_11 (-6=sysmis)(else=copy) into W2W7_11. recode W2W7_12 (-6=sysmis)(else=copy) into W2W7_12. recode W2W7_13 (-6=sysmis)(else=copy) into W2W7_13. recode W2W7_14 (-6=sysmis)(else=copy) into W2W7_14. miss val W9ZW7_11 TO W9ZW7_14 (-9 thru -1). recode W9ZW7_11 (-6=sysmis)(else=copy) into W9ZW7_11. recode W9ZW7_12 (-6=sysmis)(else=copy) into W9ZW7_12. recode W9ZW7_13 (-6=sysmis)(else=copy) into W9ZW7_13. recode W9ZW7_14 (-6=sysmis)(else=copy) into W9ZW7_14. miss val W10ZW7_11 TO W10ZW7_14 (-9 thru -1). recode W10ZW7_11 (-6=sysmis)(else=copy) into W10ZW7_11. recode W10ZW7_12 (-6=sysmis)(else=copy) into W10ZW7_12. recode W10ZW7_13 (-6=sysmis)(else=copy) into W10ZW7_13. recode W10ZW7_14 (-6=sysmis)(else=copy) into W10ZW7_14. miss val W16Q14_13 TO W16Q14_16 (-9 thru -1). recode W16Q14_13 (-6=sysmis)(else=copy) into W16Q14_13. recode W16Q14_14 (-6=sysmis)(else=copy) into W16Q14_14. recode W16Q14_15 (-6=sysmis)(else=copy) into W16Q14_15. recode W16Q14_16 (-6=sysmis)(else=copy) into W16Q14_16. miss val rracehawaiian (-9 thru -1). recode rracehawaiian (-6=sysmis)(else=copy) into rracehawaiian. miss val rracepacisle (-9 thru -1). recode rracepacisle (-6=sysmis)(else=copy) into rracepacisle. var lab pacificislander "Those who identify as Pacific Islander". val lab pacificislander -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 0 "0. not white" 1 "1. white". recode CP_Q14_15 (sysmis=-6)(else=copy) into CP_Q14_15 . recode W1Y6_15 (sysmis=-6)(else=copy) into W1Y6_15. recode W2W7_15 (sysmis=-6)(else=copy) into W2W7_15. recode W9ZW7_15 (sysmis=-6)(else=copy) into W9ZW7_15. recode W10ZW7_15 (sysmis=-6)(else=copy) into W10ZW7_15. recode W16Q14_18 (sysmis=-6)(else=copy) into W16Q14_18. recode rraceother (sysmis=-6)(else=copy) into rraceother. miss val CP_Q14_15 W1Y6_15 W2W7_15 W9ZW7_15 W10ZW7_15 W16Q14_18 rraceother (). compute other=-99. do if CP_Q14_15=1 OR W1Y6_15=1 OR W2W7_15=1 OR W9ZW7_15=1 OR W10ZW7_15=1 OR rraceother=1 OR W16Q14_18=1. compute other=1. else if CP_Q14_15=0 AND W1Y6_15<=0 AND W2W7_15<=0 AND W9ZW7_15<=0 AND W10ZW7_15<=0 AND W16Q14_18<=0 and rraceother<=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15=0 AND W2W7_15<=0 AND W9ZW7_15<=0 AND W10ZW7_15<=0 AND W16Q14_18<=0 AND rraceother<=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15<0 AND W2W7_15=0 AND W9ZW7_15<=0 AND W10ZW7_15<=0 AND W16Q14_18<=0 AND rraceother<=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15<0 AND W2W7_15 <0 AND W9ZW7_15=0 AND W10ZW7_15<=0 AND W16Q14_18<=0 AND rraceother<=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15<0 AND W2W7_15<0 AND W9ZW7_15<0 AND W10ZW7_15=0 AND W16Q14_18<=0 AND rraceother<=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15<0 AND W2W7_15<0 AND W9ZW7_15<0 AND W10ZW7_15<0 and W16Q14_18=0 AND rraceother<=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15<0 AND W2W7_15<0 AND W9ZW7_15<0 AND W10ZW7_15<0 AND W16Q14_18<0 AND rraceother=0. compute other=0. else if CP_Q14_15<0 AND W1Y6_15<0 AND W2W7_15<0 AND W9ZW7_15<0 AND W10ZW7_15<0 AND W16Q14_18<0 AND rraceother<0. do if (6*CP_Q14_15=W1Y6_15+W2W7_15+W9ZW7_15+W10ZW7_15 + rraceother + W16Q14_18) AND (6*W1Y6_15=CP_Q14_15+W2W7_15+W9ZW7_15+W10ZW7_15 + rraceother + W16Q14_18) AND (6*W2W7_15=CP_Q14_15+W1Y6_15+W9ZW7_15+W10ZW7_15 + rraceother + W16Q14_18) AND (6*W9ZW7_15=CP_Q14_15+W1Y6_15+W2W7_15+W10ZW7_15 + rraceother + W16Q14_18) AND (6*W10ZW7_15=CP_Q14_15+W1Y6_15+W2W7_15+W9ZW7_15+ rraceother + W16Q14_18) AND (6*rraceother=CP_Q14_15+W1Y6_15+W2W7_15+W9ZW7_15+ W10ZW7_15+ W16Q14_18) AND (6*W16Q14_18=CP_Q14_15+W1Y6_15+W2W7_15+W9ZW7_15+ W10ZW7_15+ rraceother). compute other=CP_Q14_15. else. compute other=-2. end if. end if. exe. miss val CP_Q14_15 W1Y6_15 W2W7_15 W9ZW7_15 W10ZW7_15 rraceother (-9 thru -1). recode CP_Q14_15 (-6=sysmis)(else=copy) into CP_Q14_15 . recode W1Y6_15 (-6=sysmis)(else=copy) into W1Y6_15. recode W2W7_15 (-6=sysmis)(else=copy) into W2W7_15. recode W9ZW7_15 (-6=sysmis)(else=copy) into W9ZW7_15. recode W10ZW7_15 (-6=sysmis)(else=copy) into W10ZW7_15. recode rraceother (-6=sysmis)(else=copy) into rraceother. var lab other "Those who identify as other". val lab other -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 0 "0. not white" 1 "1. White". *miss val white africanamerican asianamerican pacificislander other (-9 thru -1). * includes Alaska natives. recode CP_Q14_03 (sysmis=-6)(else=copy) into CP_Q14_03 . recode W1Y6_3 (sysmis=-6)(else=copy) into W1Y6_3. recode W2W7_3 (sysmis=-6)(else=copy) into W2W7_3. recode W9ZW7_3 (sysmis=-6)(else=copy) into W9ZW7_3. recode W10ZW7_3 (sysmis=-6)(else=copy) into W10ZW7_3. recode rraceamind (sysmis=-6)(else=copy) into rraceamind. recode rracealaska (sysmis=-6)(else=copy) into rracealaska. miss val CP_Q14_03 W1Y6_3 W2W7_3 W9ZW7_3 W10ZW7_3 rraceamind rracealaska (). compute amerindalaska=-99. do if CP_Q14_03=1 OR W1Y6_3=1 OR W2W7_3=1 OR W9ZW7_3=1 OR W10ZW7_3=1 OR rraceamind=1 OR rracealaska=1. compute amerindalaska=1. else if CP_Q14_03=0 AND W1Y6_3<=0 AND W2W7_3<=0 AND W9ZW7_3<=0 AND W10ZW7_3<=0 AND rraceamind<=0 AND rracealaska<=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3=0 AND W2W7_3<=0 AND W9ZW7_3<=0 AND W10ZW7_3<=0 AND rraceamind<=0 AND rracealaska<=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3<0 AND W2W7_3=0 AND W9ZW7_3<=0 AND W10ZW7_3<=0 AND rraceamind<=0 AND rracealaska<=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3<0 AND W2W7_3 <0 AND W9ZW7_3=0 AND W10ZW7_3<=0 AND rraceamind<=0 AND rracealaska<=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3<0 AND W2W7_3<0 AND W9ZW7_3<0 AND W10ZW7_3=0 AND rraceamind<=0 AND rracealaska<=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3<0 AND W2W7_3<0 AND W9ZW7_3<0 AND W10ZW7_3<0 and rraceamind=0 AND rracealaska<=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3<0 AND W2W7_3<0 AND W9ZW7_3<0 AND W10ZW7_3<0 and rraceamind<0 AND rracealaska=0. compute amerindalaska=0. else if CP_Q14_03<0 AND W1Y6_3<0 AND W2W7_3<0 AND W9ZW7_3<0 AND W10ZW7_3<0 AND rraceamind<0 AND rracealaska<0. do if (6*CP_Q14_03=W1Y6_3+W2W7_3+W9ZW7_3+W10ZW7_3+rraceamind+rracealaska) AND (6*W1Y6_3=CP_Q14_03+W2W7_3+W9ZW7_3+W10ZW7_3+rraceamind+rracealaska) AND (6*W2W7_3=CP_Q14_03+W1Y6_3+W9ZW7_3+W10ZW7_3+rraceamind+rracealaska) AND (6*W9ZW7_3=CP_Q14_03+W1Y6_3+W2W7_3+W10ZW7_3+rraceamind+rracealaska) AND (6*W10ZW7_3=CP_Q14_03+W1Y6_3+W2W7_3+W9ZW7_3+rraceamind+rracealaska) AND (6*rraceamind=CP_Q14_03+W1Y6_3+W2W7_3+W9ZW7_3+W10ZW7_3+rracealaska) AND (6*rracealaska=CP_Q14_03+W1Y6_3+W2W7_3+W9ZW7_3+W10ZW7_3+rraceamind). compute amerindalaska=CP_Q14_03. else. compute amerindalaska=-2. end if. end if. execute. miss val CP_Q14_03 W1Y6_3 W2W7_3 W9ZW7_3 W10ZW7_3 rraceamind rracealaska (-9 thru -1). recode CP_Q14_03 (-6=sysmis)(else=copy) into CP_Q14_03 . recode W1Y6_3 (-6=sysmis)(else=copy) into W1Y6_3. recode W2W7_3 (-6=sysmis)(else=copy) into W2W7_3. recode W9ZW7_3 (-6=sysmis)(else=copy) into W9ZW7_3. recode W10ZW7_3 (-6=sysmis)(else=copy) into W10ZW7_3. recode rraceamind (-6=sysmis)(else=copy) into rraceamind. recode rracealaska (-6=sysmis)(else=copy) into rracealaska. var lab amerindalaska "Those who identify as American Indian or Alaska Native". val lab amerindalaska -9 "-9. Refused" -8 "-8. Don't Know" -7 "-7. No answer" -6 "-6. Not asked, unit non-response" -5 "-5. Not asked, terminated" -4 "-4. Error, see documentation" -3 "-3. Restricted access" -2 "-2. Missing, see documentation" -1 "-1. Inapplicable" 0 "0. not marked" 1 "1. marked". frequencies vars = amerindalaska. rename variables (pacificislander = der03d) (white = der03a) (asianamerican = der03c) (other = der03f) (africanamerican = der03b) (amerindalaska = der03e). execute. variable labels der03 "der03. DERIVED. Ethnicity - Hispanic" der03a "der03a. DERIVED. Ethnicity - White" der03b "der03b. DERIVED. Ethnicity - African American" der03c "der03c. DERIVED. Ethnicity - Asian American" der03d "der03d. DERIVED. Ethnicity - Pacific Islander" der03e "der03e. DERIVED. Ethnicity - American Indian or Alaska Native" der03f "der03f. DERIVED. Ethnicity - other". execute. formats der03a der03b der03c der03d der03e der03f (f2.0). execute. SAVE OUTFILE = 'C:\Users\Jaime\Desktop\08302010\anes waves3.sav' /KEEP = caseid TO rqinb2 der01 der02 der03 der04 der05 der06 der07 der08W1 der08W9 der08W10 der08W11 der08W17 der08W19 der09W1 der09W2 der09W6 der09W10 der09W11 der10 der10a der11 der12 der13 der14 der15 der16 der17 der18 der19 der20 der21 der22 der23 der24 der25 derw1b1 derw1b2 derw1b3 derw1fcg derw1fcr derw1fog derw1for derfcgs derfcrs derfogs derfors derw1j1d derw2b1 derw2b2 derw2b3 derw2fcg derw2fcr derw2fog derw2for derfcgs2 derfcrs2 derfogs2 derfors2 derw6b1 derw6b2 derw6b3 derw6fbcm derw6fbom derfbcms6 derfboms6 derw9b1 derw9b2 derw9b3 derw9d1 derw9d2 derw10a1 der03d der03a der03c der03e der03b der03f.