Dear All,
1)The child having "_1" expression is the youngest (or last-born) child. By the same logic, the child having "_2" and "_3" expression is the oldest (or first born) child. It depends on the total number of children. It is also given in "birth order".
2)For sex, 1 stands for "males" and 2 stands for "females".
3) Age is given in months.
In my analyses, the dependent variable is only available for the last-born (the youngest) child. My dependent variable is "duration of breastfeeding given in months". In the regressions, I noticed a gender gap and I am trying to understand "sibling composition". To that extent, here is what I would like to do:
I would like to construct "male fraction" which should stands for the fraction of older siblings of child i that are male, conditional on birth order. Normally, it is very easy to generate a variable that says to me the total fraction of malebirths in the household. However, I would like to do it conditional on birth order. Yet, I am confused how to do this.
If anybody can help me, I will be really appreiciated ! Thank you in advance.
1)The child having "_1" expression is the youngest (or last-born) child. By the same logic, the child having "_2" and "_3" expression is the oldest (or first born) child. It depends on the total number of children. It is also given in "birth order".
2)For sex, 1 stands for "males" and 2 stands for "females".
3) Age is given in months.
In my analyses, the dependent variable is only available for the last-born (the youngest) child. My dependent variable is "duration of breastfeeding given in months". In the regressions, I noticed a gender gap and I am trying to understand "sibling composition". To that extent, here is what I would like to do:
I would like to construct "male fraction" which should stands for the fraction of older siblings of child i that are male, conditional on birth order. Normally, it is very easy to generate a variable that says to me the total fraction of malebirths in the household. However, I would like to do it conditional on birth order. Yet, I am confused how to do this.
If anybody can help me, I will be really appreiciated ! Thank you in advance.
ID | ChildSex_1 | ChildSex_2 | ChildSex_3 | ChildAge_1 | ChildAge_2 | ChildAge_3 | ChildBirthOrder_1 | ChildBirthOrder_2 | ChildBirthOrder_3 | Total Male Births | Total Female Birtsh | Total Births |
1 | 1 | 1 | 2 | 6 | 19 | 46 | 3 | 2 | 1 | 2 | 1 | 3 |
2 | 2 | 2 | 2 | 3 | 25 | 50 | 3 | 2 | 1 | 0 | 3 | 3 |
3 | 2 | 2 | . | 4 | 17 | . | 2 | 1 | . | 0 | 2 | 2 |
4 | 1 | . | . | 7 | . | . | 1 | . | . | 1 | 0 | 1 |
Comment