Dear Statalisters,
I am new with Stata (Version 15). I am conducting a gravity model on trade volumes. I am trying to merge two datasets by using the repsective options (m:1) - but in vain.The data sources look like:
data in memory

data on disk:

I have been trying to combine both files via the Stata-Code:
. merge m:1 exporter year using "GDP_exporter.dta"
Prior to the merge-command, I have sorted for exporter and year.
This does not work as I receive the following error "variables exporter year do not uniquely identify observations in the using data". I've got m observations/ combinations in the memory-file and 1 in the disk-file?
I really appreciate your support. Thanks in advance.
Best,
Christoph
I am new with Stata (Version 15). I am conducting a gravity model on trade volumes. I am trying to merge two datasets by using the repsective options (m:1) - but in vain.The data sources look like:
data in memory
data on disk:
I have been trying to combine both files via the Stata-Code:
. merge m:1 exporter year using "GDP_exporter.dta"
Prior to the merge-command, I have sorted for exporter and year.
This does not work as I receive the following error "variables exporter year do not uniquely identify observations in the using data". I've got m observations/ combinations in the memory-file and 1 in the disk-file?
I really appreciate your support. Thanks in advance.
Best,
Christoph
Comment