This file summarizes the companion sample data and code of 'How Does the Stock Market View Bank Regulatory Capital Forbearance Policies?' by Van Son Lai and Xiaoxia Ye, forthcoming in Journal of Credit, Money, and Banking 2019.

All code was written in MATLAB and saved in the code folder. There are five mfiles:

-- 'summary_plot(plotstr)' 
Input plotstr as 'ffc' to reproduce figure 2 in the forthcoming version of Lai & Ye (2019)
Input plotstr as 'fc' to reproduce figure 3 in the forthcoming version of Lai & Ye (2019)
Input plotstr as 'rhostar' to reproduce figure 4 in the forthcoming version of Lai & Ye (2019)

--- 'FC_TAC_TALF_plots'
No input is needed. This function reads "FC_mlydata.csv" and "TACTALF_Hamilton2014.csv", and reproduces figure 5 in the forthcoming version of Lai & Ye (2019)

--- 'ICR_BE2TA_plots'
No input is needed. This function reads "IMC2IA_TA2BE_FMC2IA_large.csv", "IMC2IA_TA2BE_FMC2IA_big.csv", "IMC2IA_TA2BE_FMC2IA_mid.csv", and "IMC2IA_TA2BE_FMC2IA_allnosmall.csv", then reproducess figure 6 in the forthcoming version of Lai & Ye (2019)

--- 'ffc_diff_plot'
No input is needed. This function reads "ffc_diff.csv" and reproduces figure 7 in the forthcoming version of Lai & Ye (2019)

--- 'ROC_AUC_LYvsRV_plot'
No input is needed. This function reads "LY_RV_PD_cmp_data.csv" and reproduces figure 8 in the forthcoming version of Lai & Ye (2019)


All data are in csv format and saved in the data folder. There are 21 csv files:

--- 'large_bank_plotstr.csv', 'big_bank_plotstr.csv', 'mid_bank_plotstr.csv', 'nosmall_bank_plotstr.csv' (where plotstr can be 'ffc', 'fc', and 'rhostar'), 'dateinmatformat.csv' are for 'summary_plot.m' (4 x 3 + 1 = 13 csv files);

--- 'FC_mlydata.csv' and 'TACTALF_Hamilton2014.csv' are for 'FC_TAC_TALF_plots.m' (2 csv files);

--- 'IMC2IA_TA2BE_FMC2IA_large.csv', 'IMC2IA_TA2BE_FMC2IA_big.csv', 'IMC2IA_TA2BE_FMC2IA_mid.csv', and 'IMC2IA_TA2BE_FMC2IA_allnosmall.csv' are for 'ICR_BE2TA_plots.m' (4 csv files);

--- 'ffc_diff.csv' is for 'ffc_diff_plot.m' (1 csv files);

--- 'LY_RV_PD_cmp_data' is for 'ROC_AUC_LYvsRV_plot.m' (1 csv files);
