Can somebody tell me how to get around this? I don't understand my error message given that this is the first time I have used the variable merge. Here is my do file and output.
do file:
use "C:\Users\rjohn123\Documents\hh09dta_b3a\iiia_tb.d ta", clear
merge m:1 folio ls using "C:\Users\rjohn123\Documents\hh09dta_b3b\iiib_gh.d ta"
merge m:1 folio ls using "C:\Users\rjohn123\Documents\hh09dta_b3a\iiia_ed.d ta"
merge m:1 folio ls using "C:\Users\rjohn123\Documents\hh09dta_b3a\iiia_hm1. dta"
merge m:1 folio ls using "C:\Users\rjohn123\Documents\hh09dta_b3a\iiia_iin. dta"
drop _merge
sort folio ls
save "C:\Users\rjohn123\Documents\09to12mflsdataset.dta ", replace
output:
do "C:\Users\rjohn123\AppData\Local\Temp\STD1050_0000 00.tmp"
. use "C:\Users\rjohn123\Documents\hh09dta_b3a\iiia_tb.d ta", clear
(Ennvih-3 Libro 3a_portad)
. merge m:1 folio ls using "C:\Users\rjohn123\Documents\hh09dta_b3b\iiib_gh.d ta"
Result # of obs.
-----------------------------------------
not matched 97
from master 57 (_merge==1)
from using 40 (_merge==2)
matched 24,887 (_merge==3)
-----------------------------------------
. merge m:1 folio ls using "C:\Users\rjohn123\Documents\hh09dta_b3a\iiia_ed.d ta"
variable _merge already defined
r(110);
end of do-file
r(110);
.
Comment