*** === BANGLADESH 2011 _ ANTENATAL VISITS === ***
*==============================================================================*
// USE THE BIRTHS RECODE - BDHS 2011
********************************************************************************
**
** WEIGHT VARIABLE
gen weight = v005/1000000
********************************************************************************
** SURVEY SET
gen psu = v021
gen strata = v022
svyset psu [pw = weight], strata(strata)
********************************************************************************
** BIRTHS IN THE THREE YEARS PRECEDING THE SURVEY
keep if v238 > 0 & v238 !=.
********************************************************************************
/*
You were close to the results in the DHS report, but you did not limit
your analysis to the three years preceding the survey, as in the report,
and you had made some mistakes with your recode [you had coded both these as "=4" (4/20=4 "4+") (98/99=5 "dk")]...
The recode below should give you the exact figures as in the report
*/
recode m14 (0=0 "none") (1=1 "1") (2=2 "2") (3=3 "3") ///
(4/20=4 "4+") (98/99=5 "dk"), gen(anc)
ta anc v025 [iw=v005/1000000]
ta anc v025 [iw=v005/1000000], col nofreq
*** SURVEY TAB
/* This will give you the same results as in the report */
svy: tab anc v025, count format(%4.0f)
svy: tab anc v025, percent format(%4.1f) col
**============================================================================**
]]>