The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Maternal Mortality
Re: MMR & PRMRatio (pregnancy related mortality ratio) [message #20458 is a reply to message #20455] Thu, 05 November 2020 10:48 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 789
Registered: January 2013
Senior Member
Hi Placid
AM_gfr.do appears to run ok because all it is doing is defining up the 'program's that are being called by AM_rates.do. When AM_rates.do is running it calls the programs that are defined in AM_gfr.do, and it is n the code defined in AM_gfr.do that the error appears. The message about using the old merge syntax is not important - it is using older syntax, but that part still works properly, as you can see by the tab _merge output that follows. We need to find the actual command that it is failing on, which is buried in the code.
Line 1346 is main_adult_mm_mortality, which calls several other programs, and it is in these programs, many of which are in AM_gfr.do that the problem occurs. For example, you can see in your output that temp1.dta is saved. This happens in line 330 of AM_gfr.do. After this the programs setup_GFR, make_exposure_and_births, and calc_rates are run. Setup_gfr is fairly simple and seems to have run. I think the issue is in the make_exposure_and_births program. Can you try commenting out the recast command on line 202? I think it is possible that the recast command does not exist in your version of Stata, and it also looks like it is not needed. Please send me your output after trying this. Good luck.

 
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
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
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Under five mortality
Next Topic: Effect of Fertility decline on Maternal Mortality
Goto Forum:
  


Current Time: Fri Apr 26 16:24:30 Coordinated Universal Time 2024