1) For Kenya, hw1 only exists for the subset of the population for which anthropometry was collected. Instead of hw1, calculate b19 as follows:
and use b19 instead if hw1
2) Try the following code:
recode m71 (100/202=1 "within 48 hours") (203/max=0 ">48 hours or no check"), gen (postcheck)
* set to 0 if no checkup was performed
replace postcheck = 0 if m70 != 1
* restrict to births in the last 2 years, last births only, in the subsample for which the indicator is applicable
tab postcheck if v008 - b3 < 24 & midx==1 & v044 != . [iw=wt]
3) I don't have Stata code for this currently, but there are several other posts on exclusive breastfeeding on the forum, so I suggest searching those first.
[Updated on: Sat, 21 April 2018 02:42]
Report message to a moderator