Dear All,
I have a master data set, called master, with approx. 100.000 firms. One of the variables is the city where the firm is located. There are multiple firms within each city in my data. I want to add some city characteristics to the master data set. I have a separate data set, called mergedata where the cities are listed uniquely with different variables. I have tried the following:
use master
merge m:1 city using mergedata
This gives the error: "variable city does not uniquely identify observations in the using data"
What am I doing wrong? I have checked that the variable "city" is uniquely identified in mergedata.
Thanks for your help!
Best,
Fredrik Bakkemo
I have a master data set, called master, with approx. 100.000 firms. One of the variables is the city where the firm is located. There are multiple firms within each city in my data. I want to add some city characteristics to the master data set. I have a separate data set, called mergedata where the cities are listed uniquely with different variables. I have tried the following:
use master
merge m:1 city using mergedata
This gives the error: "variable city does not uniquely identify observations in the using data"
What am I doing wrong? I have checked that the variable "city" is uniquely identified in mergedata.
Thanks for your help!
Best,
Fredrik Bakkemo
Comment