Re: Merging three different files [message #5597 is a reply to message #3996] |
Sun, 14 June 2015 11:32 |
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!
|
|
|