Hello everyone,
I am currently working with a data set based off of a questionnaire. I would like to make my race variable a binary variable, (1) white versus nonwhite(0). However, the variable has a skip pattern and entries for "refused," "don't know," and missing data. I'm not too sure what's the best way of going about coding the binary variable. I appreciate any suggestions!
race
sex | Freq. Percent Cum.
------------+-----------------------------------
skipped | 914 34.05 34.05
man | 772 28.76 62.82
woman | 647 24.11 86.92
refused | 11 0.41 87.33
don't know | 2 0.07 87.41
missing | 338 12.59 100.00
------------+-----------------------------------
Total | 2,684 100.00
I am currently working with a data set based off of a questionnaire. I would like to make my race variable a binary variable, (1) white versus nonwhite(0). However, the variable has a skip pattern and entries for "refused," "don't know," and missing data. I'm not too sure what's the best way of going about coding the binary variable. I appreciate any suggestions!
race
sex | Freq. Percent Cum.
------------+-----------------------------------
skipped | 914 34.05 34.05
man | 772 28.76 62.82
woman | 647 24.11 86.92
refused | 11 0.41 87.33
don't know | 2 0.07 87.41
missing | 338 12.59 100.00
------------+-----------------------------------
Total | 2,684 100.00
Comment