Hello everyone,
I have searched the forum but did not manage to find help for my problem. Im new to stata and still trying to learn so i apologize if my questions are inappropriate.

Im trying to merge two panel data sets like the ones in the examples below but i get the fallowing error msg: "variables Country year do not uniquely identify observations in the master data"

i have tried to use the datasets the other way around and i get this error: variables Country year do not uniquely identify observations in the using data

the code i type is : merge 1:1 Country year using "\\Client\C$\Users\1\Desktop\xxxx.dta nogenerate force

I would appreciate very much any answers and again im very sorry if my question are out of place or inappropriate.



First data set is:
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte ID str1 Country int year byte(var1 var2 var3)
1 "A" 2013  6  6  7
1 "A" 2013  8  1  3
2 "A" 2013  4  8  9
2 "A" 2013 10 14 15
1 "A" 2014  1  2  3
1 "A" 2014  1  5  4
2 "A" 2014  6  8  5
2 "A" 2014  5  7  5
1 "B" 2013  7  3  7
1 "B" 2013  8  5  8
end
The second one looks like this:
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str1 Country int year byte(var1 var2 var3)
"A" 2013 1 4 6
"A" 2014 2 4 6
"A" 2015 2 4 6
"B" 2013 3 4 6
"B" 2014 1 2 3
end