Hi all
I am trying to merge two panel data sets and therefore I am wondering in what way I could best use either reclink or matchit to merge them?
The first dataset contains variables/information on assurance services and the second one contains financial data.
I need to merge the data on company name and year. The two datasets differ with regards to the "name" variable but I want to merge and look into the companies that occur in both datasets. It is however so that the names of the companies are not written completely the same in both datasets (e.g. "ABN AMRO holding" in first set and "abn amro holding NV" in the second)For this variable I thus need a fuzzy match. The year variable, on the other hand, should be merged 1:1.
A final important remark is that both datasets do not contain the same amount of observations. It could be that a company is found in the first dataset but not in the second and vice versa.
Here’s an example of what the data looks like:
Source A
Source B
I hope anyone has a good tip for me!
I am trying to merge two panel data sets and therefore I am wondering in what way I could best use either reclink or matchit to merge them?
The first dataset contains variables/information on assurance services and the second one contains financial data.
I need to merge the data on company name and year. The two datasets differ with regards to the "name" variable but I want to merge and look into the companies that occur in both datasets. It is however so that the names of the companies are not written completely the same in both datasets (e.g. "ABN AMRO holding" in first set and "abn amro holding NV" in the second)For this variable I thus need a fuzzy match. The year variable, on the other hand, should be merged 1:1.
A final important remark is that both datasets do not contain the same amount of observations. It could be that a company is found in the first dataset but not in the second and vice versa.
Here’s an example of what the data looks like:
Source A
name AUDI AG AUDI AG AUDI AG AVINOR AVINOR AVINOR AVINOR AWISTA GmbH AWISTA GmbH AXA AXA AXA AXA AXA AXA |
year 2013 2015 2017 2014 2015 2016 2017 2015 2016 2012 2013 2014 2015 2016 2017 |
Name AUDI AG AUDI AG AUDI AG AUDI AG AUDI AG AUDI AG AUDIKA GROUPE AUDIKA GROUPE AUDIKA GROUPE AUDINATE PTY LTD AUDINATE PTY LTD AUDINATE PTY LTD AUDINATE PTY LTD AUDIO PIXELS HOLDINGS LTD AUDIO PIXELS HOLDINGS LTD |
year 2012 2013 2014 2015 2016 2017 2012 2013 2014 2014 2015 2016 2017 2012 2013 |
Comment