Hi listers,

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
Indicating the ethnicity of the household through which language is spoken (numerical, ranging from 1-13, all indicating a different language/ethnicity).

Code:
dleader_10
Dummy variable indicating whether household head is the community leader.

Code:
com_id
Indicating the community of the household. (numerical, with different codes for the approximately 50 different communities).


Could you please help me out? Let me know if something is not clear.
Thanks in advance!

Piet