Hello,
I have a dataset looking as follows:
where deal_type =1: M&A; deal_type=0: Firm Divestment
Now, I am trying to generate two variables. One that gives me the frequency of M&A activity per firm (the firm is identified by ISIN variable) per year. Similarly, the second one should give me the frequency of firm divestment activity per firm (again, the individual firm is identified by ISIN variable) and per year.
Essentially, I am trying to achieve the following from the above table:
Firm 1 (CH0012221716), year 2000: 2 M&A deals
Firm 2 (US0008863096), year 2012: 1 firm divestment
Firm 3 (JP3121980001), year 2013: 1 M&A deal, 2 firm divestments
Firm 4 (US0077681049), year 2015: 1 M&A deal
Is there a way to create two variables that could display the sum of M&A deals and divestment deals in separate rows?
Thank you and best regards,
Sebastian
I have a dataset looking as follows:
ISIN | deal_type | Year |
CH0012221716 | 1 | 2000 |
CH0012221716 | 1 | 2000 |
US0008863096 | 0 | 2012 |
JP3121980001 | 1 | 2013 |
JP3121980001 | 0 | 2013 |
JP3121980001 | 0 | 2013 |
US0077681049 | 1 | 2015 |
Now, I am trying to generate two variables. One that gives me the frequency of M&A activity per firm (the firm is identified by ISIN variable) per year. Similarly, the second one should give me the frequency of firm divestment activity per firm (again, the individual firm is identified by ISIN variable) and per year.
Essentially, I am trying to achieve the following from the above table:
Firm 1 (CH0012221716), year 2000: 2 M&A deals
Firm 2 (US0008863096), year 2012: 1 firm divestment
Firm 3 (JP3121980001), year 2013: 1 M&A deal, 2 firm divestments
Firm 4 (US0077681049), year 2015: 1 M&A deal
Is there a way to create two variables that could display the sum of M&A deals and divestment deals in separate rows?
Thank you and best regards,
Sebastian
Comment