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
Propensity score matchingDear Stata colleges, I have a problem with the comand teffects overlap. I have run two propensity s…
How to do indirect estimation of two odds ratios?Hi Statalist members, I am planning to do a meta-analysis to find out the odds of having oral cance…
How can I show my matrix here?I know -dataex- can upload variables on this website. But I want to upload a matrix on this website.…
How to suppress the title name and column name in -estout- command?My dataset (matrix): Code: * Example generated by -dataex-. To install: ssc install dataex clear in…
Diff-in-Diff with Kernel PSM: R-Square and CoefficientsHi! I try to estimate 3 consecutive models using the "diff" command in Stata: 1. Diff model: Code…
Subscribe to:
Post Comments (Atom)
0 Response to using DHS DATA SET
Post a Comment