Hello, I am new to stata, and making use of DHS Data set, b4__01 to b4_20 are the sex for the number of children each respondent have, while b8_01 to b8_20 are the corresponding ages. how do I sort to form a new variable for the sex of children with ages 10 and below?
below is the commands i did
*to merge all the children into a single variable b4
egen b4= concat(b4_01 b4_02 b4_03 b4_04 b4_05 b4_06 b4_07 b4_08.......), punct(,)
*to merge all the child age into a single variable b8
egen b8= concat(b8_01 b8_02 b8_03 b8_04 b8_05 b8_06 b8_07 b8_08.....), punct(,)
but when i run a probit regression I get an error message of no observation.
thanks
Related Posts with using DHS DATA SET
iterations to find 2 breakpointshi! is there any suggestion to find two breakpoints in an equation other than iterating over a nl es…
Generate matching groupGood Morning/Afternoon, after conducting an event-study on two different groups of bonds (Green and…
merge dataHello everyone, sorry for asking many questions …
GMM problem - Sargan Arellano-Bond testDear Statalist members, I have been trying to implement xtdpdsys in my paper. However, based on my …
Fill column based on simple rulesSAMPLE DATA: Code: input person var1 1 1 1 2 1 . 1 3 1 1 1 4 2 2 2 2 2 . 2 . 2 3 2 3 3 3 3 4 3 . 3 …
Subscribe to:
Post Comments (Atom)
0 Response to using DHS DATA SET
Post a Comment