Changes

Jump to navigation Jump to search
[[Leveraged Buyout Innovation (Academic Paper)]]
==Instructions for running matching code==
===Inputs and Outputs===
*Input: tab delimited file "E:/McNair/Projects/LBO/Clean/STATApredictLBOclean.txt"
**Positive integers identify pairs matched, negative integers identify matched non-LBOs in years other than the match, -0.1 identifies LBOs that failed to match to any non-LBOs under constraints provided
===Running Code===
*Open Julia command line in administrator mode
*Run script LBOmatchscript.jl
===Options===
There are a few options that can be customized in the script before running. Getting this into a more user-friendly form is a WIP. In fact, some parts might be difficult, if not impossible, to write in a more accessible way.
====Specify input file (if using different file than default)====
Line 12:
df = readtable("E:/McNair/Projects/LBO/Clean/STATApredictLBOclean.txt", separator = '\t');
====Specify which observations are valid for matching.====
*For now, we filter out all firms that were never granted a single patent in the period 1970-2015
*For firms that LBO, we also drop their observations in all other years from the list of candidates to match to other LBOs
Lines 38-48
====Specify propensity score type to use for matching====
*Options are: logitp (panel logit), probitp (panel probit), or Cox proportional hazard (hr)
*Alternatively, can use the above, with regressions performed using winsorized values of regressors (trimmed at 1st and 99th percentiles): logitpw, probitpw, hrw
mscore = :logitpw;
====Specify whether matching priority should be deterministic or random.====
*If deterministic, priority goes to lower GVKEY
randoption = 0;
====Specify additional constraints on valid matches (modify code within function mcexpr as desired)====
*For example, default code forces matches to be within the same industry group, within the same decade, and with patent stocks within +/- 20% of LBO firm.

Navigation menu