This repository replicates the results of Muermann, Rauter & Scheuch (2017) and consists of the following two parts:
- The sample construction implemented in R. The code cleans raw data from various sources and constructs the loan-level, deal-level and bank-level samples used in the empirical analysis. Below we provide information on the raw data used to construct the samples.
- The empirical analysis implemented in Stata. The code reads the samples and implements all tests described in the paper. The results are exported to latex tables. Below we provide information on the modules that are necessary to
Note that variable labels in the code might differ from the labels actually used in the paper. We refer to Muermann, Rauter & Scheuch (2017) and the code for details on reasoning and implementation.
The sample construction is implemented in the open source statistical computing language R. To construct the samples used in the empirical analysis, you need the following CSV files in the sample_construction/raw
folder.
- Dealscan
dealscan_facility.csv
: facility-level information from WRDS.dealscan_package.csv
: package-level information from WRDS.dealscan_currfacpricing.csv
: current facility pricing schedule from WRDS.dealscan_lendershares.csv
: lender information from WRDS.dealscan_financialcovenant.csv
: information about financial covenants from WRDS (can only be accessed via direct connection to the WRDS cloud).dealscan_performancepricing.csv
: performance pricing schedule from WRDS (can only be accessed via direct connection to the WRDS cloud).dealscan_borrower_link.csv
: Michael Robert's borrower linking table available on his homepage or via WRDS.dealscan_lender_link.csv
: Michael Schwert's lender linking table available on his homepage in XLSX format.dealscan_tcb.csv
: the total cost of borrowing measure developed by Tobias Berg, Anthony Saunders and Sascha Steffen. Available on Tobias Berg's homepage in DTA format.
- Compustat North America
comp_firms_funda_annual.csv
: annual firm fundamentals.comp_bank_funda_annual.csv
: annual bank fundamentals.compm_adsprate.csv
: S&P ratings.
- CRSP
crsp_banks.csv
: end of fiscal-year stock prices for Compustat bank fundamentals need to be retrieved from CRSP. The fileprep_compustat.R
therefore exports a list of bank CUSIPs (bank_cusips.txt
) which can be used to extract the relevant data from WRDS because the whole CRSP data is simply too large.
- Markit
cds_raw.csv
: daily CDS spreads (incl. ticker, date, 5-year spread, 10-year spread and recovery). Note that the full sample has more than 15 GB.
- Fortune's Most Admired Companies Survey
prestige.csv
: manually-collected data on firm-level prestige. The data will be available online once the paper is published.
To construct the samples, first run prep_dealscan.R
, then all other preparation files (order does not matter) and lastly prep_samples.R
. Then transfer the output from sample_construction/samples
to empirical_analysis/samples
.
The empirical analysis is implemented in the statistical software Stata. To replicate the results, run _prestige_main.do
which calls all other DO-files in the appropriate order. Make sure the following modules are installed:
cem
: coarsened exact matching algorithm.estout
: module to make regression tables.reghdfe
: module to efficiently estimate models with many levels of fixed effects.rdrobust
: module for statistical inference and graphical procedures for regression discontinuity designs employing local polynomial and partitioning methods.outtable
: module to write matrices to LaTeX tables.winsor2
: module to winsorize or trim data.
All output tables are exported as TEX-files to empirical_analysis/output
.