Hello,
I am trying to create a categorical variable that captures all of the information from several dummy variables combined. More specifically, my usual approach of using "gen" and "replace" does not work properly, because the resultant categories in the categorical variable do not equal the number of "yes" responses in the corresponding dummy variables. Put another way, I am trying to collapse responses to a "Check all that apply" question that was originally coded as dummy variables for each response, but the resultant categories seem to be unique (or mutually exclusive) counts of the dummy variables. For example, for a question, "Which statistical software package(s) do you use? Check all that apply." I could have the following responses:
Stata (0, 1) = 34
SPSS (0, 1) = 12
Mplus (0, 1) = 5
R (0, 1) = 15
How can I create a categorical variable, collapsing the responses to these 4 individually coded questions?
Any assistance would be greatly appreciated!
CLB
I am trying to create a categorical variable that captures all of the information from several dummy variables combined. More specifically, my usual approach of using "gen" and "replace" does not work properly, because the resultant categories in the categorical variable do not equal the number of "yes" responses in the corresponding dummy variables. Put another way, I am trying to collapse responses to a "Check all that apply" question that was originally coded as dummy variables for each response, but the resultant categories seem to be unique (or mutually exclusive) counts of the dummy variables. For example, for a question, "Which statistical software package(s) do you use? Check all that apply." I could have the following responses:
Stata (0, 1) = 34
SPSS (0, 1) = 12
Mplus (0, 1) = 5
R (0, 1) = 15
How can I create a categorical variable, collapsing the responses to these 4 individually coded questions?
Any assistance would be greatly appreciated!
CLB
Comment