Hello, Stata community
I am struggling with a problem. I have a household roster listing all members of a household and their relationship to each other. I'm particularly interested in marriage relations within households. I have a variable per household (serial), a variable indicating a person's number in the household, the person's sex, their relationship to the household head, and a variable indicating the person number with which a person is married (i.e. the head of the household might have the person number of 1. The wife of the household might be listed 4th. Then, the variable indicating who is married to who would take a value of 4 for the household head and 1 for the wife).
The thing is, some households are polygamous, meaning that multiple women would report being married to the same husband (who is not always listed 1st in the household).
What I would like to do is to, per household, create a variable indicating whether the woman is in a polygamous relationship (i.e. the woman will take a value of 1 of two or more women report being married to the same husband in the household). In addition, per household, I would like to calculate how many wives are in the household.
Does anyone have an idea how I can go about doing this?
P.S. I apologize about the suboptimal nature of my post. I tried extracting the data with dataex, but it didn't seem to work. I hope that my explanation is helpful regardless.
I am struggling with a problem. I have a household roster listing all members of a household and their relationship to each other. I'm particularly interested in marriage relations within households. I have a variable per household (serial), a variable indicating a person's number in the household, the person's sex, their relationship to the household head, and a variable indicating the person number with which a person is married (i.e. the head of the household might have the person number of 1. The wife of the household might be listed 4th. Then, the variable indicating who is married to who would take a value of 4 for the household head and 1 for the wife).
The thing is, some households are polygamous, meaning that multiple women would report being married to the same husband (who is not always listed 1st in the household).
What I would like to do is to, per household, create a variable indicating whether the woman is in a polygamous relationship (i.e. the woman will take a value of 1 of two or more women report being married to the same husband in the household). In addition, per household, I would like to calculate how many wives are in the household.
Does anyone have an idea how I can go about doing this?
P.S. I apologize about the suboptimal nature of my post. I tried extracting the data with dataex, but it didn't seem to work. I hope that my explanation is helpful regardless.
Comment