Re: ANC coverage for BDHS-2011 [message #11906 is a reply to message #11893] |
Tue, 28 February 2017 09:50   |
Mlue
Messages: 92 Registered: February 2017 Location: North West
|
Senior Member |
|
|
Please use code below, and use the births recode dataset...
Notice that there are some slight differences in the proportions with the DHS reports, but I don't believe that this matters...
*********
*** === 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
**============================================================================**
[Updated on: Tue, 28 February 2017 09:56] Report message to a moderator
|
|
|