Hi, I am very new to Stata, so I apologize if this a basic question or has been answered elsewhere. I am working with survey data that included a "select all that apply" question with 4 different options. When the responses were imported, each option was generated as a separate variable. For example:
| What race are you (White) |
What race are you (Hispanic) |
What race are you (African American) |
What race are you(Asian) |
| White |
. |
. |
. |
| . |
. |
African American |
. |
| . |
Hispanic |
. |
. |
| White |
. |
. |
Asian |
Each row corresponds to an individual survey respondent. Is there a way to collapse all of these answers into one column, so it looks something like this:
| What race are you? |
| White |
| African American |
| Hispanic |
| White, Asian |
My goal is to run simple demographics on the survey responses based on the race/ethnicity of the participant. The answers are encoded as bytes.
Thank you in advance.
0 Response to Combing Multiple Variables
Post a Comment