Review of Financial Studies · 2025 · 10.1093/rfs/hhae074

Cross-Subsidization of Bad Credit in a Lending Crisis

Nikolaos Artavanis; Brian Jonghwan Lee; Stavros Panageas; Margarita Tsoutsoura

Review history

Received 19 Jan 2023 → editorial decision 16.8 months later.
Received: 19 Jan 2023Editorial decision: 14 Jun 2024
Received → editorial decision. Review of Financial Studies, papers printed 2023–2026: median 19.9 months (middle half 14.2–27.2), 356 papers measured. This paper: 16.8 months, shorter than the median.
Dates as printed on the paper's first page; read from the paper's text, not from publisher metadata. Journal medians leave out: under 14 days, out of order, special issue / invited, implausible year — the same papers /review-times leaves out.

The research recipe, read from the replication code

dataverse · package · stata
2014–2014
sample period in the code
17
keep/drop statements
0
winsorizations
3
missing-data rules
0
de-duplications
16
distinct estimations
Sample period in the code: only one-year subsets are written, so this is a subset, not a full sample period — RFS_Replication_code_figure_2.do:27; other windows in the code: 2015–2015.
These tiles count distinct estimations (one per command, method, inference, fixed effects and file) and keep/drop statements. "How the code gets from data to results" below counts every estimating statement (43) and keep/drop statements plus winsorized variables (17).
1 · Data and structure
Databases read: none detected
Panel declared as: none
2 · How the sample is built
  • keep time period ×13
  • drop missing data ×2
  • drop time period ×1
  • keep indicator subset ×1
Reshaping: collapse to a coarser unit ×7
3 · Design and validation
Identification: —
Standard measures: Log Total Assets
4 · What it estimates
CommandMethodFixed effects absorbedInferenceFile
reg
reg actual_rate c.theoretical_rate if datem==`dt', cluster(customerid)
ols cluster by customerid RFS_Replication_code_figure_5.do
reg
quietly reg actual_rate c.theoretical_rate, cluster(customerid)
ols cluster by customerid RFS_Replication_code_table_2.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate, abs(dateq) cluster(customerid)
panel fedateq cluster by customerid RFS_Replication_code_table_2.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance, abs(dateq Industry) cluster(customerid)
panel fedateq, Industry cluster by customerid RFS_Replication_code_table_2.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance, abs(firmid dateq) cluster(customerid)
panel fefirmid, dateq cluster by customerid RFS_Replication_code_table_2.do
reg
quietly reg actual_rate c.theoretical_rate avgAR_l1, cluster(customerid)
ols cluster by customerid RFS_Replication_code_table_3.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate avgAR_l1, abs(dateq) cluster(customerid)
panel fedateq cluster by customerid RFS_Replication_code_table_3.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance avgAR_l1, abs(dateq Industry) cluster(customerid)
panel fedateq, Industry cluster by customerid RFS_Replication_code_table_3.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance avgAR_l1, abs(firmid dateq) cluster(customerid)
panel fefirmid, dateq cluster by customerid RFS_Replication_code_table_3.do
reghdfe
reghdfe actual_rate c.theoretical_rate i.datem_crisis ib0.datem_crisis#c.theoretical_rate if inrange(datem,664,671), abs(datem) cluster(customerid)
panel fedatem cluster by customerid RFS_Replication_code_table_4.do
reghdfe
reghdfe actual_rate c.theoretical_rate i.datem_crisis ib0.datem_crisis#c.theoretical_rate if inrange(datem,664,671), abs(datem Industry) cluster(customerid)
panel fedatem, Industry cluster by customerid RFS_Replication_code_table_4.do
reghdfe
reghdfe actual_rate c.theoretical_rate i.datem_crisis ib0.datem_crisis#c.theoretical_rate if inrange(datem,664,671), abs(datem firmid Industry) cluster(customerid)
panel fedatem, firmid, Industry cluster by customerid RFS_Replication_code_table_4.do
reghdfe
quietly reghdfe actual_rate c.theoretical_rate if be_first < 4.6 , abs(firmid dateq) cluster(customerid)
panel fefirmid, dateq cluster by customerid RFS_Replication_code_table_5.do
reg
reg dif_ar_1415 dif_thr_15, robust
ols robust RFS_Replication_code_table_6.do
reghdfe
reghdfe dif_ar_1415 dif_thr_15 dif_OROA_1415 dif_lDeposits_1415 dif_lTotalAssets_1415 dif_ratio_CurrLiab_1415, abs(Industry) vce(robust)
panel feIndustry robust RFS_Replication_code_table_6.do
reghdfe
reghdfe rating_12mAfter Dif Rating , abs(Industry dateq) cluster(customerid)
panel feIndustry, dateq cluster by customerid RFS_Replication_code_table_7.do
5 · What it produces
11 table files and 21 figure files (tex 11, png 10, pdf 10, ? 1); 40 estimates traced from the model that produced them into the exhibit that reports them.
$outputfolder\table_1_A.tex$outputfolder\table_1_B.tex$outputfolder\table_2.tex$outputfolder\table_3.tex$outputfolder\table_4.tex$outputfolder\table_5.tex$outputfolder\table_6_A.tex$outputfolder\table_6_B.tex$outputfolder\table_7_A.tex$outputfolder\table_7_B.tex$outputfolder\table_7_C.texfigure_1.pdffigure_1.png$outputfolder\figure_2.pdf$outputfolder\figure_2.png$outputfolder\figure_3.pdf$outputfolder\figure_3.png$outputfolder\figure_4.pdf$outputfolder\figure_4.png
How the code gets from data to results own page
14
scripts
3
input files
0
file hand-offs
0
merges
17
sample steps
43
estimations

1 · Data in — files the code reads and no script of the package writes

Other input files 3 files
  • $datafolder\maindata.dta Stata · read by 13 scripts
    RFS_Replication_code_figure_2.do:13
    RFS_Replication_code_figure_2.do, line 13 use "$datafolder\maindata.dta", clear
  • $datafolder\financials.dta Stata
    RFS_Replication_code_figure_2.do:23
    RFS_Replication_code_figure_2.do, line 23 append using "$datafolder\financials.dta"
  • $datafolder\gdp.dta Stata
    RFS_Replication_code_figure_1.do:13
    RFS_Replication_code_figure_1.do, line 13 use "$datafolder\gdp.dta", clear

2 · The file pipeline — which script writes which file that a later script reads

14 scripts, in file names (the package states no order and no script reads another's output); 0 hand-offs through 0 intermediate files.

Low-confidence order: the package states no order and no script reads another's output: file-name order.

  1. 1.RFS_Replication_code_figure_1.do reads 1 input file ·
  2. 2.RFS_Replication_code_figure_2.do reads 2 input files · 1 merge ·
  3. 3.RFS_Replication_code_figure_3.do reads 1 input file ·
  4. 4.RFS_Replication_code_figure_4.do reads 1 input file ·
  5. 5.RFS_Replication_code_figure_5.do reads 1 input file · 3 estimations
  6. 6.RFS_Replication_code_figure_6.do reads 1 input file ·
  7. 7.RFS_Replication_code_figure_7.do reads 1 input file ·
  8. 8.RFS_Replication_code_table_1.do reads 1 input file ·
  9. 9.RFS_Replication_code_table_2.do reads 1 input file · 6 estimations
  10. 10.RFS_Replication_code_table_3.do reads 1 input file · 6 estimations
  11. 11.RFS_Replication_code_table_4.do reads 1 input file · 3 estimations
  12. 12.RFS_Replication_code_table_5.do reads 1 input file · 4 estimations
  13. 13.RFS_Replication_code_table_6.do reads 1 input file · 6 estimations
  14. 14.RFS_Replication_code_table_7.do reads 1 input file · 15 estimations

3 · Merges — 0 joins; 1 appends

No merges recorded.

4 · The sample — 17 keep/drop steps, 0 variables winsorized or trimmed

Filters, by kind
time period ×14
  • keep if datem >= 660
    RFS_Replication_code_figure_2.do:15
    RFS_Replication_code_figure_2.do, line 15 keep if datem >= 660
  • keep if year==2014 | sample==1
    RFS_Replication_code_figure_2.do:27
    RFS_Replication_code_figure_2.do, line 27 keep if year==2014 | sample==1
  • drop if dup==1 & MONTHS!=12 & MONTHS!=14
    RFS_Replication_code_figure_2.do:32
    RFS_Replication_code_figure_2.do, line 32 drop if dup==1 & MONTHS!=12 & MONTHS!=14
  • keep if datem >= 660
    RFS_Replication_code_figure_3.do:15
    RFS_Replication_code_figure_3.do, line 15 keep if datem >= 660
  • keep if datem >= 660
    RFS_Replication_code_figure_4.do:15
    RFS_Replication_code_figure_4.do, line 15 keep if datem >= 660
  • keep if datem >= 660
    RFS_Replication_code_figure_5.do:15
    RFS_Replication_code_figure_5.do, line 15 keep if datem >= 660
  • keep if datem >= 660
    RFS_Replication_code_figure_7.do:17
    RFS_Replication_code_figure_7.do, line 17 keep if datem >= 660
  • keep if datem >= 660
    RFS_Replication_code_table_1.do:16
    RFS_Replication_code_table_1.do, line 16 keep if datem >= 660
  • first 8 of 14
indicator subsets ×1
  • keep if has_2015m1m12==1
    RFS_Replication_code_figure_6.do:19
    RFS_Replication_code_figure_6.do, line 19 keep if has_2015m1m12==1
missing values ×2
  • drop if dif_ar_1415 == .
    RFS_Replication_code_figure_6.do:45
    RFS_Replication_code_figure_6.do, line 45 drop if dif_ar_1415 == .
  • drop if dif_ar_1415 == . | dif_thr_15 == .
    RFS_Replication_code_table_6.do:55
    RFS_Replication_code_table_6.do, line 55 drop if dif_ar_1415 == . | dif_thr_15 == .
Outliers

No winsorizing or trimming recorded.

Missing values
dropped ×2
  • RFS_Replication_code_figure_6.do:45
    RFS_Replication_code_figure_6.do, line 45 drop if dif_ar_1415 == .
  • RFS_Replication_code_table_6.do:55
    RFS_Replication_code_table_6.do, line 55 drop if dif_ar_1415 == . | dif_thr_15 == .
set to zero ×1
  • sample → 0
    RFS_Replication_code_figure_2.do:29
    RFS_Replication_code_figure_2.do, line 29 replace sample=0 if sample==.

5 · Key variables — what enters the models, and where the code builds it

Standard measures computed here: Log Total Assets (l_asset
RFS_Replication_code_figure_2.do:17
RFS_Replication_code_figure_2.do, line 17 gen l_asset = log(TotalAssets)
)
VariableUsed in models asBuilt by
actual_rate outcome in 22 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
ar_2015 outcome in 3
ar_2015 = mean(ar_2015_x) (egen mean)
RFS_Replication_code_figure_6.do:39
RFS_Replication_code_figure_6.do, line 39 bysort customerid: egen ar_2015 = mean(ar_2015_x)
ar_2015 = mean(ar_2015_x) (egen mean)
RFS_Replication_code_table_6.do:22
RFS_Replication_code_table_6.do, line 22 bysort customerid: egen ar_2015 = mean(ar_2015_x)
dif_ar_1415 outcome in 3
dif_ar_1415 = ar_2015 - ar_2014 (gen)
RFS_Replication_code_figure_6.do:42
RFS_Replication_code_figure_6.do, line 42 gen dif_ar_1415 = ar_2015 - ar_2014
dif_ar_1415 = ar_2015 - ar_2014 (gen)
RFS_Replication_code_table_6.do:29
RFS_Replication_code_table_6.do, line 29 gen dif_ar_1415 = ar_2015 - ar_2014
rating_12mAfter outcome in 3 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
rating_24mAfter outcome in 3 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
rating_36mAfter outcome in 3 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
rating_48mAfter outcome in 3 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
rating_60mAfter outcome in 3 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
theoretical_rate regressor in 25 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Dif regressor in 15 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Rating regressor in 15 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
OROA regressor in 8 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
has_coll_m_any regressor in 8
has_coll_m_any = has_coll_m_any * 100 (replace)
RFS_Replication_code_table_1.do:19
RFS_Replication_code_table_1.do, line 19 replace has_coll_m_any = has_coll_m_any * 100
lDeposits regressor in 8 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
lTotalAssets regressor in 8 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace

6 · Models, by the table or figure they feed — 43 estimations, 40 traced into 6 exhibits

Table 2 · 6 estimations → table_2.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
actual_rate c.theoretical_rate — cluster: customerid
RFS_Replication_code_table_2.do:35
RFS_Replication_code_table_2.do, line 35 quietly reg actual_rate c.theoretical_rate, cluster(customerid)
written at RFS_Replication_code_table_2.do:81
reghdfe
panel fe
actual_rate c.theoretical_rate dateq cluster: customerid
RFS_Replication_code_table_2.do:42
RFS_Replication_code_table_2.do, line 42 quietly reghdfe actual_rate c.theoretical_rate, /// abs(dateq) cluster(customerid)
written at RFS_Replication_code_table_2.do:81
reghdfe
panel fe
actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities dateq cluster: customerid
RFS_Replication_code_table_2.do:50
RFS_Replication_code_table_2.do, line 50 quietly reghdfe actual_rate c.theoretical_rate $cvars, /// abs(dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities, abs(dateq) cluster(customerid)
written at RFS_Replication_code_table_2.do:81
reghdfe
panel fe
actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance dateq cluster: customerid
RFS_Replication_code_table_2.do:58
RFS_Replication_code_table_2.do, line 58 quietly reghdfe actual_rate c.theoretical_rate $cvars $loanChars, /// abs(dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance, abs(dateq) cluster(customerid)
written at RFS_Replication_code_table_2.do:81
reghdfe
panel fe
actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance dateq, Industry cluster: customerid
RFS_Replication_code_table_2.do:66
RFS_Replication_code_table_2.do, line 66 quietly reghdfe actual_rate c.theoretical_rate $cvars $loanChars, /// abs(dateq Industry) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance, abs(dateq Industry) cluster(customerid)
written at RFS_Replication_code_table_2.do:81
reghdfe
panel fe
actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance firmid, dateq cluster: customerid
RFS_Replication_code_table_2.do:74
RFS_Replication_code_table_2.do, line 74 quietly reghdfe actual_rate c.theoretical_rate $loanChars, /// abs(firmid dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance, abs(firmid dateq) cluster(customerid)
written at RFS_Replication_code_table_2.do:81
Table 3 · 6 estimations → table_3.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
actual_rate c.theoretical_rate avgAR_l1 — cluster: customerid
RFS_Replication_code_table_3.do:36
RFS_Replication_code_table_3.do, line 36 quietly reg actual_rate c.theoretical_rate avgAR_l1, /// cluster(customerid)
written at RFS_Replication_code_table_3.do:83
reghdfe
panel fe
actual_rate c.theoretical_rate avgAR_l1 dateq cluster: customerid
RFS_Replication_code_table_3.do:44
RFS_Replication_code_table_3.do, line 44 quietly reghdfe actual_rate c.theoretical_rate avgAR_l1, /// abs(dateq) cluster(customerid)
written at RFS_Replication_code_table_3.do:83
reghdfe
panel fe
actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities avgAR_l1 dateq cluster: customerid
RFS_Replication_code_table_3.do:52
RFS_Replication_code_table_3.do, line 52 quietly reghdfe actual_rate c.theoretical_rate $cvars avgAR_l1, /// abs(dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities avgAR_l1, abs(dateq) cluster(customerid)
written at RFS_Replication_code_table_3.do:83
reghdfe
panel fe
actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance avgAR_l1 dateq cluster: customerid
RFS_Replication_code_table_3.do:60
RFS_Replication_code_table_3.do, line 60 quietly reghdfe actual_rate c.theoretical_rate $cvars $loanChars /// avgAR_l1, abs(dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance avgAR_l1, abs(dateq) cluster(customerid)
written at RFS_Replication_code_table_3.do:83
reghdfe
panel fe
actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance avgAR_l1 dateq, Industry cluster: customerid
RFS_Replication_code_table_3.do:68
RFS_Replication_code_table_3.do, line 68 quietly reghdfe actual_rate c.theoretical_rate $cvars $loanChars /// avgAR_l1, abs(dateq Industry) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate OROA lDeposits lTotalAssets ratio_CurrentLiabilities maturity_range has_coll_m_any lbalance avgAR_l1, abs(dateq Industry) cluster(customerid)
written at RFS_Replication_code_table_3.do:83
reghdfe
panel fe
actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance avgAR_l1 firmid, dateq cluster: customerid
RFS_Replication_code_table_3.do:76
RFS_Replication_code_table_3.do, line 76 quietly reghdfe actual_rate c.theoretical_rate $loanChars avgAR_l1, /// abs(firmid dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance avgAR_l1, abs(firmid dateq) cluster(customerid)
written at RFS_Replication_code_table_3.do:83
Table 4 · 3 estimations → table_4.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
actual_rate c.theoretical_rate i.datem_crisis ib0.datem_crisis#c.theoretical_rate datem cluster: customerid
RFS_Replication_code_table_4.do:33
RFS_Replication_code_table_4.do, line 33 reghdfe actual_rate c.theoretical_rate i.datem_crisis /// ib0.datem_crisis#c.theoretical_rate if inrange(datem,664,671), /// abs(datem) cluster(customerid)
written at RFS_Replication_code_table_4.do:57
reghdfe
panel fe
actual_rate c.theoretical_rate i.datem_crisis ib0.datem_crisis#c.theoretical_rate datem, Industry cluster: customerid
RFS_Replication_code_table_4.do:41
RFS_Replication_code_table_4.do, line 41 reghdfe actual_rate c.theoretical_rate i.datem_crisis /// ib0.datem_crisis#c.theoretical_rate if inrange(datem,664,671), /// abs(datem Industry) cluster(customerid)
written at RFS_Replication_code_table_4.do:57
reghdfe
panel fe
actual_rate c.theoretical_rate i.datem_crisis ib0.datem_crisis#c.theoretical_rate datem, firmid, Industry cluster: customerid
RFS_Replication_code_table_4.do:49
RFS_Replication_code_table_4.do, line 49 reghdfe actual_rate c.theoretical_rate i.datem_crisis /// ib0.datem_crisis#c.theoretical_rate if inrange(datem,664,671), /// abs(datem firmid Industry) cluster(customerid)
written at RFS_Replication_code_table_4.do:57
Table 5 · 4 estimations → table_5.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
actual_rate c.theoretical_rate firmid, dateq cluster: customerid
RFS_Replication_code_table_5.do:33
RFS_Replication_code_table_5.do, line 33 quietly reghdfe actual_rate c.theoretical_rate if be_first < 4.6 , /// abs(firmid dateq) cluster(customerid)
written at RFS_Replication_code_table_5.do:65
reghdfe
panel fe
actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance firmid, dateq cluster: customerid
RFS_Replication_code_table_5.do:41
RFS_Replication_code_table_5.do, line 41 quietly reghdfe actual_rate c.theoretical_rate $loanChars if be_first <4.6, /// abs(firmid dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance if be_first <4.6, abs(firmid dateq) cluster(customerid)
written at RFS_Replication_code_table_5.do:65
reghdfe
panel fe
actual_rate c.theoretical_rate firmid, dateq cluster: customerid
RFS_Replication_code_table_5.do:49
RFS_Replication_code_table_5.do, line 49 quietly reghdfe actual_rate c.theoretical_rate if be_first >4.6 & be_first!=. , /// abs(firmid dateq) cluster(customerid)
written at RFS_Replication_code_table_5.do:65
reghdfe
panel fe
actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance firmid, dateq cluster: customerid
RFS_Replication_code_table_5.do:57
RFS_Replication_code_table_5.do, line 57 quietly reghdfe actual_rate c.theoretical_rate $loanChars if be_first >4.6 & be_first!=., /// abs(firmid dateq) cluster(customerid) as we read it (macros filled in / loop expanded): quietly reghdfe actual_rate c.theoretical_rate maturity_range has_coll_m_any lbalance if be_first >4.6 & be_first!=., abs(firmid dateq) cluster(customerid)
written at RFS_Replication_code_table_5.do:65
Table 6 · 6 estimations → table_6_A.tex, table_6_B.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
dif_ar_1415 dif_thr_15 — robust
RFS_Replication_code_table_6.do:82
RFS_Replication_code_table_6.do, line 82 reg dif_ar_1415 dif_thr_15, robust
written at RFS_Replication_code_table_6.do:95
reg
ols
dif_ar_1415 dif_thr_15 dif_OROA_1415 dif_lDeposits_1415 dif_lTotalAssets_1415 dif_ratio_CurrLiab_1415 — robust
RFS_Replication_code_table_6.do:86
RFS_Replication_code_table_6.do, line 86 reg dif_ar_1415 dif_thr_15 $cvars_dif, robust as we read it (macros filled in / loop expanded): reg dif_ar_1415 dif_thr_15 dif_OROA_1415 dif_lDeposits_1415 dif_lTotalAssets_1415 dif_ratio_CurrLiab_1415, robust
written at RFS_Replication_code_table_6.do:95
reghdfe
panel fe
dif_ar_1415 dif_thr_15 dif_OROA_1415 dif_lDeposits_1415 dif_lTotalAssets_1415 dif_ratio_CurrLiab_1415 Industry robust
RFS_Replication_code_table_6.do:90
RFS_Replication_code_table_6.do, line 90 reghdfe dif_ar_1415 dif_thr_15 $cvars_dif, abs(Industry) vce(robust) as we read it (macros filled in / loop expanded): reghdfe dif_ar_1415 dif_thr_15 dif_OROA_1415 dif_lDeposits_1415 dif_lTotalAssets_1415 dif_ratio_CurrLiab_1415, abs(Industry) vce(robust)
written at RFS_Replication_code_table_6.do:95
reg
ols
ar_2015 thr_2015 ar_2014 — robust
RFS_Replication_code_table_6.do:107
RFS_Replication_code_table_6.do, line 107 reg ar_2015 thr_2015 ar_2014 , robust
written at RFS_Replication_code_table_6.do:119
reg
ols
ar_2015 thr_2015 ar_2014 OROA lDeposits lTotalAssets ratio_CurrLiab — robust
RFS_Replication_code_table_6.do:111
RFS_Replication_code_table_6.do, line 111 reg ar_2015 thr_2015 ar_2014 $cvars, robust as we read it (macros filled in / loop expanded): reg ar_2015 thr_2015 ar_2014 OROA lDeposits lTotalAssets ratio_CurrLiab, robust
written at RFS_Replication_code_table_6.do:119
reghdfe
panel fe
ar_2015 thr_2015 ar_2014 OROA lDeposits lTotalAssets ratio_CurrLiab Industry robust
RFS_Replication_code_table_6.do:115
RFS_Replication_code_table_6.do, line 115 reghdfe ar_2015 thr_2015 ar_2014 $cvars, abs(Industry) vce(robust) as we read it (macros filled in / loop expanded): reghdfe ar_2015 thr_2015 ar_2014 OROA lDeposits lTotalAssets ratio_CurrLiab, abs(Industry) vce(robust)
written at RFS_Replication_code_table_6.do:119
Table 7 · 15 estimations → table_7_A.tex, table_7_B.tex, table_7_C.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
rating_12mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:39
RFS_Replication_code_table_7.do, line 39 reghdfe rating_12mAfter Dif Rating , /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:75
reghdfe
panel fe
rating_24mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:46
RFS_Replication_code_table_7.do, line 46 reghdfe rating_24mAfter Dif Rating , /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:75
reghdfe
panel fe
rating_36mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:53
RFS_Replication_code_table_7.do, line 53 reghdfe rating_36mAfter Dif Rating, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:75
reghdfe
panel fe
rating_48mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:60
RFS_Replication_code_table_7.do, line 60 reghdfe rating_48mAfter Dif Rating , /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:75
reghdfe
panel fe
rating_60mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:67
RFS_Replication_code_table_7.do, line 67 reghdfe rating_60mAfter Dif Rating , /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:75
reghdfe
panel fe
rating_12mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:85
RFS_Replication_code_table_7.do, line 85 reghdfe rating_12mAfter Dif Rating if Dif_first<=0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:121
reghdfe
panel fe
rating_24mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:92
RFS_Replication_code_table_7.do, line 92 reghdfe rating_24mAfter Dif Rating if Dif_first<=0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:121
reghdfe
panel fe
rating_36mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:99
RFS_Replication_code_table_7.do, line 99 reghdfe rating_36mAfter Dif Rating if Dif_first<=0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:121
reghdfe
panel fe
rating_48mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:106
RFS_Replication_code_table_7.do, line 106 reghdfe rating_48mAfter Dif Rating if Dif_first<=0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:121
reghdfe
panel fe
rating_60mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:113
RFS_Replication_code_table_7.do, line 113 reghdfe rating_60mAfter Dif Rating if Dif_first<=0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:121
reghdfe
panel fe
rating_12mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:129
RFS_Replication_code_table_7.do, line 129 reghdfe rating_12mAfter Dif Rating if Dif_first>0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:165
reghdfe
panel fe
rating_24mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:136
RFS_Replication_code_table_7.do, line 136 reghdfe rating_24mAfter Dif Rating if Dif_first>0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:165
reghdfe
panel fe
rating_36mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:143
RFS_Replication_code_table_7.do, line 143 reghdfe rating_36mAfter Dif Rating if Dif_first>0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:165
reghdfe
panel fe
rating_48mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:150
RFS_Replication_code_table_7.do, line 150 reghdfe rating_48mAfter Dif Rating if Dif_first>0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:165
reghdfe
panel fe
rating_60mAfter Dif Rating Industry, dateq cluster: customerid
RFS_Replication_code_table_7.do:157
RFS_Replication_code_table_7.do, line 157 reghdfe rating_60mAfter Dif Rating if Dif_first>0, /// abs(Industry dateq) cluster(customerid)
written at RFS_Replication_code_table_7.do:165
Estimations not traced to a table or figure · 3
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
actual_rate c.theoretical_rate — cluster: customerid
RFS_Replication_code_figure_5.do:26
RFS_Replication_code_figure_5.do, line 26 reg actual_rate c.theoretical_rate if datem==`dt', cluster(customerid)
run 12× in a loop (dt=660; dt=661; dt=662…)
reg
ols
actual_rate c.theoretical_rate — cluster: customerid
RFS_Replication_code_figure_5.do:71
RFS_Replication_code_figure_5.do, line 71 reg actual_rate c.theoretical_rate if datew==`dt', cluster(customerid)
run 20× in a loop (dt=2866; dt=2867; dt=2868…)
reg
ols
actual_rate c.theoretical_rate — cluster: customerid
RFS_Replication_code_figure_5.do:80
RFS_Replication_code_figure_5.do, line 80 reg actual_rate c.theoretical_rate if datew==`dt', cluster(customerid)
run 20× in a loop (dt=2888; dt=2889; dt=2890…)
Tables and figures the code writes: Table 1 table_1_A.tex
RFS_Replication_code_table_1.do:36
RFS_Replication_code_table_1.do, line 36 esttab using "$outputfolder\table_1_A.tex", /* */ cells("count(label(Count)) mean(`n_fmt' label(Mean)) sd(`n_fmt' label(St. Dev)) p5(`n_fmt' label(P5)) p25(`n_fmt' label(P25)) p50(`n_fmt' label(P50)) p75(`n_fmt' label(P75)) p95(`n_fmt' lab …
· Table 1 table_1_B.tex
RFS_Replication_code_table_1.do:59
RFS_Replication_code_table_1.do, line 59 esttab using "$outputfolder\table_1_B.tex", /* */ cells("mean(`n_fmt' label(Mean)) sd(`n_fmt' label(St. Dev)) p5(`n_fmt' label(P5)) p25(`n_fmt' label(P25)) p50(`n_fmt' label(P50)) p75(`n_fmt' label(P75)) p95(`n_fmt' label(P95))") /* */ r …
· Table 2 table_2.tex
RFS_Replication_code_table_2.do:81
RFS_Replication_code_table_2.do, line 81 esttab * using "$outputfolder\table_2.tex", replace /// se star(* 0.1 ** 0.05 *** 0.01) b(3) se(3) r(3) /// nonotes r2 label nomtitles noomitted noconstant /// scalars("hasq Quarter FE" "hasind Industry FE" "hasfirm Firm FE")
· Table 3 table_3.tex
RFS_Replication_code_table_3.do:83
RFS_Replication_code_table_3.do, line 83 esttab * using "$outputfolder\table_3.tex", replace /// se r2 label nomtitles b(3) se(3) r(3) /// star(* 0.1 ** 0.05 *** 0.01) /// noomitted noconstant nonotes substitute(\_ _) /// scalars("hasq Quarter FE" "hasind Industry FE" "hasfirm F …
· Table 4 table_4.tex
RFS_Replication_code_table_4.do:57
RFS_Replication_code_table_4.do, line 57 esttab * using "$outputfolder\table_4.tex", replace b(3) se(3) r(3) /// drop(_cons 0.datem_crisis 1.datem_crisis 0.datem_crisis#c.theoretical_rate) /// se r2 label star(* 0.1 ** 0.05 *** 0.01) nonotes substitute(\_ _) /// scalars("hasdt Mon …
· Table 5 table_5.tex
RFS_Replication_code_table_5.do:65
RFS_Replication_code_table_5.do, line 65 esttab * using "$outputfolder\table_5.tex", replace /// se star(* 0.1 ** 0.05 *** 0.01) b(3) se(3) r(3) /// nonotes r2 label nomtitles noomitted noconstant /// scalars("hasq Quarter FE" "hasfirm Firm FE") /// mgroups("Below-median BE" "A …
· Table 6 table_6_A.tex
RFS_Replication_code_table_6.do:95
RFS_Replication_code_table_6.do, line 95 esttab * using "$outputfolder\table_6_A.tex", replace substitute(\_ _) /// se r2 label star(* 0.1 ** 0.05 *** 0.01) nonotes noomitted /// b(3) se(3) r2(3) /// noconstant scalars("hasind Industry FE") nomtitles /// mgroups("AR\$_{2015}$ - AR …
· Table 6 table_6_B.tex
RFS_Replication_code_table_6.do:119
RFS_Replication_code_table_6.do, line 119 esttab * using "$outputfolder\table_6_B.tex", replace substitute(\_ _) /// se r2 label star(* 0.1 ** 0.05 *** 0.01) nonotes noomitted /// b(3) se(3) r2(3) /// noconstant scalars("hasind Industry FE") nomtitles /// mgroups("Actual Rate\$_{20 …
· Table 7 table_7_A.tex
RFS_Replication_code_table_7.do:75
RFS_Replication_code_table_7.do, line 75 esttab * using "$outputfolder\table_7_A.tex", replace /// noconstant /// se r2 label star(* 0.1 ** 0.05 *** 0.01) b(3) se(3) r(3) nonotes /// mtitles("h=12" "h=24" "h=36" "h=48" "h=60") /// scalars("hasq Quarter FE" "hasind Industry FE" "ha …
· Table 7 table_7_B.tex
RFS_Replication_code_table_7.do:121
RFS_Replication_code_table_7.do, line 121 esttab * using "$outputfolder\table_7_B.tex", replace keep(Dif Rating) /// se r2 label star(* 0.1 ** 0.05 *** 0.01) b(3) se(3) r(3) nonotes /// mtitles("h=12" "h=24" "h=36" "h=48" "h=60") /// scalars("hasq Quarter FE" "hasind Industry FE" " …
· Table 7 table_7_C.tex
RFS_Replication_code_table_7.do:165
RFS_Replication_code_table_7.do, line 165 esttab * using "$outputfolder\table_7_C.tex", replace keep(Dif Rating) /// se r2 label star(* 0.1 ** 0.05 *** 0.01) b(3) se(3) r(3) nonotes /// mtitles("h=12" "h=24" "h=36" "h=48" "h=60") /// scalars("hasq Quarter FE" "hasind Industry FE" " …
· Figure 1 figure_1.pdf
RFS_Replication_code_figure_1.do:38
RFS_Replication_code_figure_1.do, line 38 graph export "$outputfolder/figure_1.pdf", as(pdf) replace
· Figure 1 figure_1.png
RFS_Replication_code_figure_1.do:39
RFS_Replication_code_figure_1.do, line 39 graph export "$outputfolder/figure_1.png", as(png) replace
· Figure 2 figure_2.pdf
RFS_Replication_code_figure_2.do:44
RFS_Replication_code_figure_2.do, line 44 graph export "$outputfolder\figure_2.pdf", /// as(pdf) replace
· Figure 2 figure_2.png
RFS_Replication_code_figure_2.do:46
RFS_Replication_code_figure_2.do, line 46 graph export "$outputfolder\figure_2.png", /// as(png) replace
· Figure 3 figure_3.pdf
RFS_Replication_code_figure_3.do:23
RFS_Replication_code_figure_3.do, line 23 graph export "$outputfolder\figure_3.pdf", /// as(pdf) replace
· Figure 3 figure_3.png
RFS_Replication_code_figure_3.do:25
RFS_Replication_code_figure_3.do, line 25 graph export "$outputfolder\figure_3.png", /// as(png) replace
· Figure 4 figure_4.pdf
RFS_Replication_code_figure_4.do:30
RFS_Replication_code_figure_4.do, line 30 graph export "$outputfolder\figure_4.pdf", as(pdf) replace
· Figure 4 figure_4.png
RFS_Replication_code_figure_4.do:31
RFS_Replication_code_figure_4.do, line 31 graph export "$outputfolder\figure_4.png", as(png) replace
· Figure 5 figure_5_R.pdf
RFS_Replication_code_figure_5.do:54
RFS_Replication_code_figure_5.do, line 54 graph export "$outputfolder\figure_5_R.pdf", /// as(pdf) replace
· Figure 5 figure_5_R.png
RFS_Replication_code_figure_5.do:56
RFS_Replication_code_figure_5.do, line 56 graph export "$outputfolder\figure_5_R.png", /// as(png) replace
· Figure 5 figure_5_L.pdf
RFS_Replication_code_figure_5.do:105
RFS_Replication_code_figure_5.do, line 105 graph export "$outputfolder\figure_5_L.pdf", /// as(pdf) replace
· Figure 5 figure_5_L.png
RFS_Replication_code_figure_5.do:107
RFS_Replication_code_figure_5.do, line 107 graph export "$outputfolder\figure_5_L.png", /// as(png) replace
· Figure 6 figure_6_L.pdf
RFS_Replication_code_figure_6.do:65
RFS_Replication_code_figure_6.do, line 65 graph export "$outputfolder\figure_6_L.pdf", /// as(pdf) replace
· Figure 6 figure_6_L.png
RFS_Replication_code_figure_6.do:67
RFS_Replication_code_figure_6.do, line 67 graph export "$outputfolder\figure_6_L.png", /// as(png) replace
· Figure 6 figure_6_M.pdf
RFS_Replication_code_figure_6.do:85
RFS_Replication_code_figure_6.do, line 85 graph export "$outputfolder\figure_6_M.pdf", /// as(pdf) replace
· Figure 6 figure_6_M.png
RFS_Replication_code_figure_6.do:87
RFS_Replication_code_figure_6.do, line 87 graph export "$outputfolder\figure_6_M.png", /// as(png) replace
· Figure 6 figure_6_H.pdf
RFS_Replication_code_figure_6.do:105
RFS_Replication_code_figure_6.do, line 105 graph export "$outputfolder\figure_6_H.pdf", /// as(pdf) replace
· Figure 6 figure_6_H.png
RFS_Replication_code_figure_6.do:107
RFS_Replication_code_figure_6.do, line 107 graph export "$outputfolder\figure_6_H.png", /// as(png) replace
· Figure 7 figure_7.pdf
RFS_Replication_code_figure_7.do:54
RFS_Replication_code_figure_7.do, line 54 graph export "$outputfolder\figure_7.pdf", as(pdf) replace
· Figure 7 figure_7.png
RFS_Replication_code_figure_7.do:55
RFS_Replication_code_figure_7.do, line 55 graph export "$outputfolder\figure_7.png", as(png) replace

7 · Figures: how each is drawn — 10 figures in the code (command, layers, options, the file it is saved to)

histogram 5 · scatter 2 · line 2 · bar 1
commandlayersvariables optionssaved aswhere
graph bar
bar
bar y wavg_others, Greece_GDPGrowth by DateQ ytitle Percent · legend label(1 Weighted Avg. CIPS) label(2 Greece) region(lcolor(white) fcolor(none)) cols(3) pos(6) Figure 1
figure_1.pdf
RFS_Replication_code_figure_1.do:31
RFS_Replication_code_figure_1.do, line 31 graph bar wavg_others Greece_GDPGrowth if inrange(Date,212,227), /// over(DateQ, label(labsize(*0.75) angle(vertical)) ) /// title("", color(black)) ytitle("Percent") ylabel(,angle(horizontal)) /// graphregion(color(whit …
–36
twoway
histogram
histogram + histogram x l_asset xtitle log(Assets) · bins 25 · legend label(1 Sample) label(2 Amadeus) region(lcolor(white) fcolor(none)) pos(6) rows(1) Figure 2
figure_2.pdf
RFS_Replication_code_figure_2.do:37
RFS_Replication_code_figure_2.do, line 37 twoway hist l_asset if sample==1, bin(25) color(cranberry%50) /// || hist l_asset if sample==0, bin(50) color(edkblue%50) /// graphregion(color(white)) xlabel(#10) /// ylabel(#5, angle(horizontal)) xtitle("lo …
–42
histogram
histogram
histogram x Dif xtitle Markup · xline 0 · bins 40 Figure 3
figure_3.pdf
RFS_Replication_code_figure_3.do:17
RFS_Replication_code_figure_3.do, line 17 hist Dif if inrange(Dif,-15,10), bin(40) frequency color(gray%80) /// graphregion(color(white)) xlabel(#10) /// ylabel(#10, angle(horizontal)) /// xtitle("Markup") xscale(range(-15(5)10)) xlabel(#10) /// xline(0, lpatt …
–21
twoway
scatter
scatter + scatter + line + lfit y actual_rate, diag_line x theoretical_rate, diag_line xtitle Breakeven Rate · ytitle Actual Rate · legend pos(10) ring(0) order(1 2) lab(1 Term Loans) lab(2 Credit Lines) region(lcolor(white) fcolor(none)) Figure 4
figure_4.pdf
RFS_Replication_code_figure_4.do:19
RFS_Replication_code_figure_4.do, line 19 twoway (scatter actual_rate theoretical_rate [aweight=balance] /// if type==1, yscale(range(0 25)) ylabel(0(5)25, angle(horizontal)) /// graphregion(color(white)) color(black) mfcolor(none) jitter(3) ) /// (scatter actu …
–28
twoway
line
connected + rcap y passthrough_m x date_d band passthrough_ub, passthrough_lb yline 0 · ci rcap · legend off Figure 5
figure_5_R.pdf
RFS_Replication_code_figure_5.do:44
RFS_Replication_code_figure_5.do, line 44 twoway (connected passthrough_m date_d if inrange(datem, 660,671), /// color(gray) ylabel(#6) yscale(range(-1(0.25)1.5))) /// (rcap passthrough_ub passthrough_lb date_d if inrange(datem, 660,671), /// graph …
–52
twoway
line
connected + rcap y passthrough_wk x date_d band passthrough_ub, passthrough_lb yline 0 · ci rcap · legend off Figure 5
figure_5_L.pdf
RFS_Replication_code_figure_5.do:95
RFS_Replication_code_figure_5.do, line 95 twoway (connected passthrough_wk date_d if inrange(datew, 2866, 2907), /// color(gray) ylabel(#6) yscale(range(-1(0.25)1.5)) ) /// (rcap passthrough_ub passthrough_lb date_d if inrange(datew, 2866, 2907), /// …
–103
histogram
histogram
histogram x dif_ar_1415 title Low · xtitle Change in actual rate · xline `dif_mean', `lb', `ub' (set at run time) · bins 20 Figure 6
figure_6_L.pdf
RFS_Replication_code_figure_6.do:57
RFS_Replication_code_figure_6.do, line 57 hist dif_ar_1415 if ThR_bin==1, bin(20) frequency color(gray%40) /// graphregion(color(white)) xscale(range(-6(2)8)) xlabel(#10) /// yscale(range(0(2)10)) ylabel(#10, angle(horizontal)) /// xtitle("Change in actual rate" …
–63
histogram
histogram
histogram x dif_ar_1415 title Med · xtitle Change in actual rate · xline `dif_mean', `lb', `ub' (set at run time) · bins 20 Figure 6
figure_6_M.pdf
RFS_Replication_code_figure_6.do:77
RFS_Replication_code_figure_6.do, line 77 hist dif_ar_1415 if ThR_bin==2, bin(20) frequency color(gray%40) /// graphregion(color(white)) xscale(range(-6(2)8)) xlabel(#10) /// yscale(range(0(2)10)) ylabel(#10, angle(horizontal)) /// xtitle("Change in actual rate" …
–83
histogram
histogram
histogram x dif_ar_1415 title High · xtitle Change in actual rate · xline `dif_mean', `lb', `ub' (set at run time) · bins 10 Figure 6
figure_6_H.pdf
RFS_Replication_code_figure_6.do:97
RFS_Replication_code_figure_6.do, line 97 hist dif_ar_1415 if ThR_bin==3, bin(10) frequency color(gray%40) /// graphregion(color(white)) xscale(range(-6(2)8)) xlabel(#10) /// yscale(range(0(2)10)) ylabel(#10, angle(horizontal)) /// xtitle("Change in actual rate" …
–103
twoway
scatter
scatter + scatter + scatter + line y actual_rate_jit, diag_line x theoretical_rate_jit, diag_line xtitle Breakeven Rate · ytitle Actual Rate · legend pos(10) ring(0) order(1 2 3) lab(1 Below BE) lab(2 Interest coverage<1) lab(3 Below prime rate) region(lcolor(white) fcolor(none)) Figure 7
figure_7.pdf
RFS_Replication_code_figure_7.do:41
RFS_Replication_code_figure_7.do, line 41 twoway (scatter actual_rate_jit theoretical_rate_jit /// if below_BE==1, yscale(range(0 25)) ylabel(0(5)25, angle(horizontal)) /// graphregion(color(white)) color(cranberry) mfcolor(none) msymbol(O) ) /// (scatter act …
–51