Home » Countries » Nepal » Merging Nepal DHS data sets across years
Merging Nepal DHS data sets across years [message #2995] |
Wed, 01 October 2014 18:52  |
UAB_user
Messages: 21 Registered: September 2014 Location: Alabama
|
Member |
|
|
Hello,
For my current project I am merging all the Nepal DHS files (Household, (individual)Women, (individual)Men, Children, Births, Household member) for the years 1996, 2001, 2006, 2011. I know you have to merge all of the files within a year before you can concatenate each of the years together. However, I have noticed that several variables have the same name within the Nepal DHS files (Household, (individual)Women, (individual)Men, Children, Births, Household member) and some variables which measure the same thing are named differently in separate DHS files. I have also noticed that some of the variables change their names over the years.
Is there a way to merge all of the files together across different years or do I have to choose the variables I need before I merge the data sets together and limit the number of variables in my final dataset.
Thank you
Derek
|
|
|
Re: Merging Nepal DHS data sets across years [message #3005 is a reply to message #2995] |
Thu, 02 October 2014 22:33   |
Reduced-For(u)m
Messages: 292 Registered: March 2013
|
Senior Member |
|
|
At what level are you trying to "merge" all of these? I mean - what do you want the final unit of observation to be? In some of those recodes it is a person, and in some it is a household. Do you want one observation for each human being that was contacted in any way, and then have their household's information attached to them? Or do you want one observation per household, but need information on all the men, women and children in that household?
Depending on what you want your data to look like, you might be doing some merging and some appending. You should also just be wary of problems with sample selection, weighting, estimation, and inference (p-values) when you combine all of those recodes. I do not believe there is any set procedure for getting consistent estimates when joining together all the different survey types into one dataset, and there is certainly scope for a lot of accidental double-counting or running un-interpretable regressions or comparisons.
|
|
|
Re: Merging Nepal DHS data sets across years [message #3018 is a reply to message #3005] |
Fri, 03 October 2014 18:23   |
UAB_user
Messages: 21 Registered: September 2014 Location: Alabama
|
Member |
|
|
Hello,
Thank you for helping me with my question. I would like my unit of observation to be the individual (women) and have their household's information attached to them. I will definitely be conscious of accidental double-counting and making sure my estimates are correct. However, I know merging the files correctly is an important step to getting the correct values and I just want to make sure I am doing it correctly.
Currently, for the 2011 files I am merging the "household" file to the "memberhousehold" file using the variables "hv001" and "hv002". Then I merge the "individual women" file using "v001" and "v002". Lastly, I merge the birth file using "v001, v002, v003".
I follow this merging order for the years 96', 01', 06', and 11'. I then concatenate them together into one data set.
Is there a template or set of instructions I can follow (other then what is on the DHS website) to make sure I am merging the files correctly? SAS or STATA code on how to merge the files would be a great help.
Thank you very much!
Derek
|
|
|
|
Re: Merging Nepal DHS data sets across years [message #3062 is a reply to message #3019] |
Fri, 10 October 2014 00:04  |
UAB_user
Messages: 21 Registered: September 2014 Location: Alabama
|
Member |
|
|
Thank you very much for the helpful info. It has made merging the different files much easier. I will definitely check to makes sure the variables I use are coded in a consistent manner across years. Also, thank you for the link on how to pool data across years.
The purpose for pooling the different years together was to look at factors influencing infant mortality over several years of the Nepal DHS.
Thank you again
Derek
|
|
|
Goto Forum:
Current Time: Tue Feb 25 15:05:58 Coordinated Universal Time 2025
|