The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Maternal Mortality Ratio
Re: Maternal Mortality Ratio [message #3412 is a reply to message #3411] Sat, 06 December 2014 17:32 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 803
Registered: January 2013
Senior Member
1) The software doesn't actually freeze, although it appears like it has frozen. The problem is that the reshaping operation takes a long time to run (when I tried it the code took about an hour to run). You can reduce this substantially by dropping unnecessary variables before the reshape command. I would drop every variable that you don't need before running the reshape (sorry, I should have realized that it would be very slow). Its probably easier just to use the keep command as you will probably be keeping far less variables than you are dropping:
keep <varlist>
e.g.
keep caseid v005 v008 mm*

and any other variables that you might need.

2) You don't need to write out the rename commands individually. The command I gave will do all of the renaming in one go:
rename mm*_0* mm*_*
 
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 07:38:07 Coordinated Universal Time 2024