Hello,
I am very new to Stata and facing a problem with merging. I have two datasets, each containing variables CountryName and CountryCode. The first datasets also contains a variable with info on CO2 emission, the second one contains a variable with info on GDP. I need to to merge them, and tried to do it by CountryName, or CountryCode, or both using one-to-one, many-to-one, one-to-many but neither of these worked. The error: variable CountryName does not uniquely identify observations in the master data r(459); variables CountryName CountryCode do not uniquely identify observations in the using data r(459); but they should be unique. Could you please help me with this issue?
I am very new to Stata and facing a problem with merging. I have two datasets, each containing variables CountryName and CountryCode. The first datasets also contains a variable with info on CO2 emission, the second one contains a variable with info on GDP. I need to to merge them, and tried to do it by CountryName, or CountryCode, or both using one-to-one, many-to-one, one-to-many but neither of these worked. The error: variable CountryName does not uniquely identify observations in the master data r(459); variables CountryName CountryCode do not uniquely identify observations in the using data r(459); but they should be unique. Could you please help me with this issue?
Comment