The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Merging three different files
Re: Merging three different files [message #5597 is a reply to message #3996] Sun, 14 June 2015 11:32 Go to previous messageGo to previous message
duke2015
Messages: 27
Registered: March 2015
Location: United States
Member
Thank you!

My next question is about the syntax. I used this syntax in Stata 13 to merge the household recode file to the child recode file:

** Using Household recode as base
use "F:\Data\2011 UDHS Household Recode\2011 UDHS Household Sorted by HV001 HV002.dta"

** Merging Household Dataset to Child Dataset
merge 1:m hv001 hv002 using "F:\Data\2011 UDHS Childrens Recode\2011 UDHS Childrens Recode sorted by HV001 HV002.dta"


Does it make sense to merge using a 1:many merge for these purposes? Does it make sense which file you use as your base?

Thanks!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing 'language of inerview' variable in African surveys
Next Topic: Union History Calendar
Goto Forum:
  


Current Time: Mon May 20 22:24:00 Coordinated Universal Time 2024