Dear all,
I have a variable called partner, which is equal to zero if the partner is the wife and 1 if the partner is the husband. Within each household, denoted by a household identifier (hhid) there are various couples. I want to group each combination of 0 and 1 within the household as a couple.
I have tried to do this using:
egen partner_id = group(hhid partner) but I do not quite get the identifier for each combination of 0 and 1 within a household.
Do you know how I could do this?
Thank you in advance,
Enrique
I have a variable called partner, which is equal to zero if the partner is the wife and 1 if the partner is the husband. Within each household, denoted by a household identifier (hhid) there are various couples. I want to group each combination of 0 and 1 within the household as a couple.
I have tried to do this using:
egen partner_id = group(hhid partner) but I do not quite get the identifier for each combination of 0 and 1 within a household.
Do you know how I could do this?
Thank you in advance,
Enrique
Comment