Hallo, I currently have a sample of 143 public firms that were involved in Merger and Acquisition (M&A) behavior in 2016. I am studying the effect of this merger and acquisition behavior on Audit Fees.
I have created 2 databases of listed firms, one with the 143 public firms that were associated with M&A behavior and one with 2478 public firms NOT associated with M&A behavior. Both of these databases have Ticker Symbol as company identifier.
I would like to match the 2 databases, so that every public firm with M&A behavior has 1 uniquely "matched" (without replacement) observervation, ultimately doubling my M&A database with non-M&A observervations.
I want them to match having equal 2-digit SIC codes (Standard Industry Classification Codes) and as close as possible Total assets while still keeping all my variables from my databases (like audit fees, auditor, audit opinon, total inventories etc).
Is there any way this can actually be done?
Someone suggested I tried using "Calipmatch" which I have installed using ssc install calipmatch, but I can't figure out how it actually works.
I've tried the following code: (Note AT = assets total, acquirortic is the company identifyer/tickler)
This does appear to be matching the 2 databases, but gets rid of the majority of my secondary database's variables and does not create new observations but just places them in the columns behind the current observations.
Any suggestions/help/code which helps me improve this? I hope my question is clear, any help would be appreciated.
Thank you in advance for any help!
Robin
I have created 2 databases of listed firms, one with the 143 public firms that were associated with M&A behavior and one with 2478 public firms NOT associated with M&A behavior. Both of these databases have Ticker Symbol as company identifier.
I would like to match the 2 databases, so that every public firm with M&A behavior has 1 uniquely "matched" (without replacement) observervation, ultimately doubling my M&A database with non-M&A observervations.
I want them to match having equal 2-digit SIC codes (Standard Industry Classification Codes) and as close as possible Total assets while still keeping all my variables from my databases (like audit fees, auditor, audit opinon, total inventories etc).
Is there any way this can actually be done?
Someone suggested I tried using "Calipmatch" which I have installed using ssc install calipmatch, but I can't figure out how it actually works.
I've tried the following code: (Note AT = assets total, acquirortic is the company identifyer/tickler)
Code:
use "C:\Users\Gebruiker\Desktop\Thesis samples\2016 M&A final.dta", clear rename at case_at rename acquirortic case_acquirortic joinby sic2 using "C:\Users\Gebruiker\Desktop\Thesis samples\matching sample 2017.dta" gen delta = abs(at - case_at) drop if delta >= 500 drop if delta < 1 set seed 15 gen double shuffle1 = runiform() gen double shuffle2 = runiform() by acquirortic (delta shuffle1 shuffle2), sort: keep if _n == 1 by case_acquirortic (delta shuffle1 shuffle2), sort: keep if _n == 1 drop delta shuffle1 shuffle2
Any suggestions/help/code which helps me improve this? I hope my question is clear, any help would be appreciated.
Thank you in advance for any help!
Robin
Comment