The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Maternal Mortality Ratio
Re: Maternal Mortality Ratio [message #3408 is a reply to message #3393] Fri, 05 December 2014 19:05 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 803
Registered: January 2013
Senior Member
You will need to reshape the data as follows:
use "NGIR6AFL.DTA"
* Rename all of the repeating variables to drop the leading 0 to help with reshaping
rename mm*_0* 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==.


 
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 Dec 2 10:42:04 Coordinated Universal Time 2024