I am trying to merge two data sets but running into a problem. Here's what I get
. merge 1:1 cid3 year using "C:\Users\Thomas Dietz\Desktop\Current work\Macro\xnational\Fraser\Fraserfive.dta"
variables cid3 year do not uniquely identify observations in the using data
r(459);
cid3 is a str12 in the open data set and a str3 in the using data set. Is that the problem? I tried
recast str3 cid, force
but that didn't seem to help.
Before this merge I merged a number of other data sets using the same syntax but in those cid3 is all str12.
As always, grateful for any help.
. merge 1:1 cid3 year using "C:\Users\Thomas Dietz\Desktop\Current work\Macro\xnational\Fraser\Fraserfive.dta"
variables cid3 year do not uniquely identify observations in the using data
r(459);
cid3 is a str12 in the open data set and a str3 in the using data set. Is that the problem? I tried
recast str3 cid, force
but that didn't seem to help.
Before this merge I merged a number of other data sets using the same syntax but in those cid3 is all str12.
As always, grateful for any help.

Comment