Dear Stata Users,
I am trying to merge two datasets with the merge command.
Dataset1 is a panel dataset, with 1000 firms over 5 years (5k obs). I have a specific identifier.
Dataset2 contains the a list of firms with same identifier, not in panel format, reporting the belonging industry.
I would like to associate the industries in Dataset2 to the firms in Dataset1, repeating the information n times according to the panel time horizon.
I am trying with:
#merge m:1 RIC using "" #
I get the following message:
variable IDENTIFIER does not uniquely identify observations in the using data.
Actually, I do not care if the identifier does not uniquely identify observations, because I want that the industry will be repeated through the panel. The same identifier may have for example "energy sector" n times depending on the number of year obs in the panel.
Thank you in advance, any suggestions would be appreciated.
Best,
nr
I am trying to merge two datasets with the merge command.
Dataset1 is a panel dataset, with 1000 firms over 5 years (5k obs). I have a specific identifier.
Dataset2 contains the a list of firms with same identifier, not in panel format, reporting the belonging industry.
I would like to associate the industries in Dataset2 to the firms in Dataset1, repeating the information n times according to the panel time horizon.
I am trying with:
#merge m:1 RIC using "" #
I get the following message:
variable IDENTIFIER does not uniquely identify observations in the using data.
Actually, I do not care if the identifier does not uniquely identify observations, because I want that the industry will be repeated through the panel. The same identifier may have for example "energy sector" n times depending on the number of year obs in the panel.
Thank you in advance, any suggestions would be appreciated.
Best,
nr
Comment