Dear all, I would very much appreciate your support for the following:
I need to generate a dummy variable named "Respondent 1" and another named "Respondent 2".
I have variables for which information was collected only for first respondents (for example. Gender R1, or Name R1, Ethnicity R1) or and other variables for which information is collected only for second respondents (for example. Gender R2, or Name R2, Ethnicity R2).
I need a command that allows me to generate my dummy variables from the variables I have.
For example, saying that Respondent 1==1 if the respondent has any value on variable GenderR1 and one saying that Respondent2==1 if the respondent has any value on variable GenderR2.
How can I do that?
Thank you very much in advance for your support.
I need to generate a dummy variable named "Respondent 1" and another named "Respondent 2".
I have variables for which information was collected only for first respondents (for example. Gender R1, or Name R1, Ethnicity R1) or and other variables for which information is collected only for second respondents (for example. Gender R2, or Name R2, Ethnicity R2).
I need a command that allows me to generate my dummy variables from the variables I have.
For example, saying that Respondent 1==1 if the respondent has any value on variable GenderR1 and one saying that Respondent2==1 if the respondent has any value on variable GenderR2.
How can I do that?
Thank you very much in advance for your support.
Comment