Hi Everyone,
Below is a hypothetical data set of 10 different households (HHID).
My objectives are to create the following variable;
Please your help/input will be highly appreciated!
Regards
Below is a hypothetical data set of 10 different households (HHID).
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(HHID Indiv Male) double Age str13 Relationship byte(Can_read Can_write size) 1 1 1 75 "Husband Alone" 1 1 1 2 1 1 67 "Husband " 0 0 4 2 3 0 40 "Daughter" 0 0 4 2 4 0 14 "Daughter" 1 1 4 2 2 0 74 "Wife" 1 1 4 3 2 1 24 "Son" 0 0 2 3 1 1 65 "Husband Alone" 0 0 2 4 3 1 15 "Son" 1 1 5 4 5 0 2 "Daughter" 0 0 5 4 1 1 40 "Husband" 1 1 5 4 4 0 6 "Daughter" 0 0 5 4 2 0 41 "Wife" 1 1 5 5 6 0 6 "Daugther" 0 0 7 5 3 1 19 "Son" 1 1 7 5 5 0 12 "Daughter" 0 0 7 5 2 0 45 "Wife" 1 1 7 5 7 1 3 "Son" 0 0 7 5 4 1 15 "Son" 1 1 7 5 1 1 53 "Husband" 0 0 7 6 2 0 24 "Daughter" 0 0 4 6 3 1 19 "Son" 0 0 4 6 4 0 19 "Daughter" 0 0 4 6 1 1 26 "Son" 0 0 4 7 4 0 1 "Daughter" 0 0 4 7 3 0 2 "Daughter" 0 0 4 7 2 0 26 "Wife" 0 0 4 7 1 1 27 "Husband" 1 1 4 8 1 1 42 "Husband" 1 1 3 8 3 1 11 "Son" 1 1 3 8 2 0 40 "Wife" 0 0 3 9 3 1 19 "Son" 1 1 5 9 1 1 50 "Husband" 0 0 5 9 4 1 15 "Son" 1 1 5 9 2 0 49 "Wife" 1 1 5 9 5 1 10 "Son" 0 0 5 10 1 1 40 "Husband" 0 0 8 10 5 1 3 "Son" 0 0 8 10 6 0 2 "Daughter" 0 0 8 10 3 1 10 "Son" 1 1 8 10 2 0 30 "Wife" 1 1 8 10 4 1 6 "Son" 0 0 8 10 8 0 .01 "Daughter" 0 0 8 10 7 0 .01 "Daughter" 0 0 8 end
- Literacy rate: for an individual who can read and write
- Child literacy rate: for an individual who is between ages 5 and 15 that can read and write
- Father literacy rate: for a child who has a father that can read and write
- Mother literacy rate: for a child who has a mother that can read and write
- Number of children between ages 5 and 15 in a household
- Number of siblings a child has
- Number of female siblings a child has
- Number of male siblings a child has
- Number of older siblings a child has
- Number of younger siblings a child has
Please your help/input will be highly appreciated!
Regards

Comment