The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Maternal Mortality Ratio
Re: Maternal Mortality Ratio [message #3421 is a reply to message #3412] Mon, 08 December 2014 02:05 Go to previous messageGo to previous message
femifemi is currently offline  femifemi
Messages: 8
Registered: December 2014
Location: NIGERIA
Member
Sir, thank you for the responses.
I'm still on the estimation; my result is far from the expected. Where have I gone wrong? Is the weighting right or wrong? Thank you in anticipation sir.
The do file:

use "NGIR6AFL.DTA"
* Rename all of the repeating variables to drop the leading 0 to help with reshaping
rename mm*_0* mm*_*
*keep
keep caseid v005 v008 v022 v021 mm*


* Reshape the maternal mortality data
reshape long mmidx_ mm1_ mm2_ mm3_ mm4_ mm5_ mm6_ mm7_ mm8_ mm9_ mm10_ mm11_ mm12_ mm13_ mm14_ mm15_, i(caseid) j(mmindex)
* Rename the new variables
rename mm*_ mm*
* Drop the empty entries
drop if mmidx==.
* view the value labels of sibling's death and pregnancy
codebook mm9
*clean mm9
mvdecode mm9,mv(98=. \ 99=.a)
*recode variable mm9
recode mm9 (1=0 "Non Maternal") (2/6=1 "Maternal"),gen(maternal)

* weighting
gen weight=v005/1000000
svyset v021 [pweight=weight], strata(v022)


*tabulate maternal and non-maternal deaths
svy: tab maternal
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Under 5 Mortality for Nepal
Next Topic: Problem in converting birth date CMC from Afghan calendar to Gregorian calendar
Goto Forum:
  


Current Time: Mon Jun 3 06:26:42 Coordinated Universal Time 2024