Yesterday I posted a question but when I re-read it, I found that there was some context missing.
I want to generate a dummy variable that indicates 1 if a household has the same ethnicity as the leader of their community, and 0 if the ethnicity is different from their community leader.
Because is concerns different tribes with different languages, I find the ethnicity of the household through the language that is spoken at home. I think the following variables should contain enough information for solving my question:
Code:
ethnicity_10
Code:
dleader_10
Code:
com_id
Could you please help me out? Let me know if something is not clear.
Thanks in advance!
Piet
0 Response to Multi level dummy variable
Post a Comment