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
bootstrapping after xtregHi, I am using xtreg for a panel-data analysis and after xtreg, I need to do bootstrap. The problem …
Repeated time values within panel r(451)i have panel data of firms. i have merged two data sets to process data further first i tired to dec…
xtabond2, Is my model valid?I am trying lots of models about system GMM with xtabond2 command. But I always think are there any …
type mismatch error in htlist command of htopen package.Stata gives type mismatch error on if inlist(strvar, "abc" , "abc xyz") like condition in package - …
Labeling multiple variables using the foreach loopI am trying to learn the foreach loop command in Stata 13.0. I want to label multiple variables usin…
Subscribe to:
Post Comments (Atom)
0 Response to using DHS DATA SET
Post a Comment