Hi,
my sample consists of M&A deals and peer companies which are not filtered yet. For each observation there is a unique identifier for the target company (Target6digitCUSIP) and the acquirer (a_cusip_six) of the deal as well as the year. The variable deal determines if the observation is a deal (1) or not (0). If it is not a deal there variable Target6digitCUSIP is empty.Since I want to proceed with Propensity Score Matching to create my final sample, I want to follow Beta and Li (2014) and exclude every company in year t which was part in a deal in the last 3 years, either as an acquirer or a target company.
I tried many formulas but none of them led to the correct result for the variable participated which should be 1 if the company participated in a deal and 0 otherwise.
Here is an excerpt of my data.
Target6digitCUSIP deal Year a_cusip_six participated
4C8250 1 2014 000307
7C7919 1 2015 000307
7C1485 1 2015 000307
5C7040 1 2015 000307
*empty* 0 2018 000307
*empty* 0 2021 00032Q
*empty* 0 2022 00032Q
Excuse me if I provided something incorrectly, it's my first time using the forum. Many thanks for your support in advance.
Best,
Sebastian
my sample consists of M&A deals and peer companies which are not filtered yet. For each observation there is a unique identifier for the target company (Target6digitCUSIP) and the acquirer (a_cusip_six) of the deal as well as the year. The variable deal determines if the observation is a deal (1) or not (0). If it is not a deal there variable Target6digitCUSIP is empty.Since I want to proceed with Propensity Score Matching to create my final sample, I want to follow Beta and Li (2014) and exclude every company in year t which was part in a deal in the last 3 years, either as an acquirer or a target company.
I tried many formulas but none of them led to the correct result for the variable participated which should be 1 if the company participated in a deal and 0 otherwise.
Here is an excerpt of my data.
Target6digitCUSIP deal Year a_cusip_six participated
4C8250 1 2014 000307
7C7919 1 2015 000307
7C1485 1 2015 000307
5C7040 1 2015 000307
*empty* 0 2018 000307
*empty* 0 2021 00032Q
*empty* 0 2022 00032Q
Excuse me if I provided something incorrectly, it's my first time using the forum. Many thanks for your support in advance.
Best,
Sebastian
Comment