The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Maternal Mortality Ratio
Re: Maternal Mortality Ratio [message #3411 is a reply to message #3408] Sat, 06 December 2014 16:50 Go to previous messageGo to previous message
femifemi is currently offline  femifemi
Messages: 8
Registered: December 2014
Location: NIGERIA
Member
Thank you for the response. But everytime I tried to reshape the maternal mortality data after renaming all the repeating variables, the software kept on freezing. I used STATA/SE 12.0. While trying to change the memory settings, I received a summary response that such was done on the fly automatically in modern STATA. What could be the immediate solution? Thank you alot sir.
The procedures I've followed:

* Rename all of the repeating variables to drop the leading 0 to help with reshaping

rename mm1_01 mm1_1
rename mm1_02 mm1_2
rename mm1_03 mm1_3
rename mm1_04 mm1_4
rename mm1_05 mm1_5
rename mm1_06 mm1_6
rename mm1_07 mm1_7
rename mm1_08 mm1_8
rename mm1_09 mm1_9


rename mm2_01 mm2_1
rename mm2_02 mm2_2
rename mm2_03 mm2_3
rename mm2_04 mm2_4
rename mm2_05 mm2_5
rename mm2_06 mm2_6
rename mm2_07 mm2_7
rename mm2_08 mm2_8
rename mm2_09 mm2_9


rename mm3_01 mm3_1
rename mm3_02 mm3_2
rename mm3_03 mm3_3
rename mm3_04 mm3_4
rename mm3_05 mm3_5
rename mm3_06 mm3_6
rename mm3_07 mm3_7
rename mm3_08 mm3_8
rename mm3_09 mm3_9


rename mm4_01 mm4_1
rename mm4_02 mm4_2
rename mm4_03 mm4_3
rename mm4_04 mm4_4
rename mm4_05 mm4_5
rename mm4_06 mm4_6
rename mm4_07 mm4_7
rename mm4_08 mm4_8
rename mm4_09 mm4_9


rename mm5_01 mm5_1
rename mm5_02 mm5_2
rename mm5_03 mm5_3
rename mm5_04 mm5_4
rename mm5_05 mm5_5
rename mm5_06 mm5_6
rename mm5_07 mm5_7
rename mm5_08 mm5_8
rename mm5_09 mm5_9


rename mm6_01 mm6_1
rename mm6_02 mm6_2
rename mm6_03 mm6_3
rename mm6_04 mm6_4
rename mm6_05 mm6_5
rename mm6_06 mm6_6
rename mm6_07 mm6_7
rename mm6_08 mm6_8
rename mm6_09 mm6_9


rename mm7_01 mm7_1
rename mm7_02 mm7_2
rename mm7_03 mm7_3
rename mm7_04 mm7_4
rename mm7_05 mm7_5
rename mm7_06 mm7_6
rename mm7_07 mm7_7
rename mm7_08 mm7_8
rename mm7_09 mm7_9


rename mm8_01 mm8_1
rename mm8_02 mm8_2
rename mm8_03 mm8_3
rename mm8_04 mm8_4
rename mm8_05 mm8_5
rename mm8_06 mm8_6
rename mm8_07 mm8_7
rename mm8_08 mm8_8
rename mm8_09 mm8_9


rename mm9_01 mm9_1
rename mm9_02 mm9_2
rename mm9_03 mm9_3
rename mm9_04 mm9_4
rename mm9_05 mm9_5
rename mm9_06 mm9_6
rename mm9_07 mm9_7
rename mm9_08 mm9_8
rename mm9_09 mm9_9


rename mm10_01 mm10_1
rename mm10_02 mm10_2
rename mm10_03 mm10_3
rename mm10_04 mm10_4
rename mm10_05 mm10_5
rename mm10_06 mm10_6
rename mm10_07 mm10_7
rename mm10_08 mm10_8
rename mm10_09 mm10_9


rename mm11_01 mm11_1
rename mm11_02 mm11_2
rename mm11_03 mm11_3
rename mm11_04 mm11_4
rename mm11_05 mm11_5
rename mm11_06 mm11_6
rename mm11_07 mm11_7
rename mm11_08 mm11_8
rename mm11_09 mm11_9


rename mm12_01 mm12_1
rename mm12_02 mm12_2
rename mm12_03 mm12_3
rename mm12_04 mm12_4
rename mm12_05 mm12_5
rename mm12_06 mm12_6
rename mm12_07 mm12_7
rename mm12_08 mm12_8
rename mm12_09 mm12_9


rename mm13_01 mm13_1
rename mm13_02 mm13_2
rename mm13_03 mm13_3
rename mm13_04 mm13_4
rename mm13_05 mm13_5
rename mm13_06 mm13_6
rename mm13_07 mm13_7
rename mm13_08 mm13_8
rename mm13_09 mm13_9


rename mm14_01 mm14_1
rename mm14_02 mm14_2
rename mm14_03 mm14_3
rename mm14_04 mm14_4
rename mm14_05 mm14_5
rename mm14_06 mm14_6
rename mm14_07 mm14_7
rename mm14_08 mm14_8
rename mm14_09 mm14_9


rename mm15_01 mm15_1
rename mm15_02 mm15_2
rename mm15_03 mm15_3
rename mm15_04 mm15_4
rename mm15_05 mm15_5
rename mm15_06 mm15_6
rename mm15_07 mm15_7
rename mm15_08 mm15_8
rename mm15_09 mm15_9


rename mmidx_01 mmidx_1
rename mmidx_02 mmidx_2
rename mmidx_03 mmidx_3
rename mmidx_04 mmidx_4
rename mmidx_05 mmidx_5
rename mmidx_06 mmidx_6
rename mmidx_07 mmidx_7
rename mmidx_08 mmidx_8
rename mmidx_09 mmidx_9

* 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)
 
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 08:03:50 Coordinated Universal Time 2024