Dear all,
We have tried excessively to merge two datasets by cusip and fiscal year. However, Stata keeps giving the error, which says that our variables do not uniquely identify observations in the master data. We know that in one of the databases there are multiple firm observations (with the same cusip) per year, but even merging many to one does not work. Is there anyone that can give us tips regarding trying to merge this 1:1, m:1 or 1:m, and not m:m?
We particularly tried this command: merge 1:m cusip_8d fyear using ExecuComp_Query.dta in Stata 14. But we also tried to create a new variable by combining cusip and fiscal year to ahve a unique identifier, but this also didn't work.
Thank you in advance for all help!
We have tried excessively to merge two datasets by cusip and fiscal year. However, Stata keeps giving the error, which says that our variables do not uniquely identify observations in the master data. We know that in one of the databases there are multiple firm observations (with the same cusip) per year, but even merging many to one does not work. Is there anyone that can give us tips regarding trying to merge this 1:1, m:1 or 1:m, and not m:m?
We particularly tried this command: merge 1:m cusip_8d fyear using ExecuComp_Query.dta in Stata 14. But we also tried to create a new variable by combining cusip and fiscal year to ahve a unique identifier, but this also didn't work.
Thank you in advance for all help!
Comment