The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Dealing with country-specific codes with panel data across 10 countries
Re: Dealing with country-specific codes with panel data across 10 countries [message #10415 is a reply to message #10413] Tue, 26 July 2016 10:46 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3173
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

What you are describing is indeed very time consuming. We had to do much the same thing for Methodological Report 15 in 2014 (https://www.dhsprogram.com/pubs/pdf/MR15/MR15.pdf). There are probably many ways to approach it, but we did it as follows.

The first attachment is an excel file with one sheet for each country. The sheets have columns for the successive surveys and panels for the variables. The final column of the sheet is a "harmonized" coding. We were working with the HR files, with one record per household. You would probably be using the IR or KR files, but that would make little difference in the steps..

The second attachment is a Stata program I wrote to do the recoding. Basically it converts the excel sheets into recode instructions for every variable and every file. It's not a simple program but there are lots of comments. Hope you can figure out the logic--I can't provide much support beyond this. Good luck!


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Discrepancy in stunting, wasting, underweight prevalence for Nepal DHS 2001
Next Topic: Antibiotic use for ARI - Tanzania DHS 2016
Goto Forum:
  


Current Time: Mon Oct 21 11:20:46 Coordinated Universal Time 2024