Replication package 7268 · dataverse · 2024 · open the deposit

How the code gets from data to results

Replication Data for: Cross-Market Effects of Consolidation: Evidence from Banking

Code for: Cross-Market Effects of Consolidation: Evidence from Banking Review of Corporate Finance Studies 2024

4
scripts
6
input files
3
file hand-offs
20
merges
24
sample steps
21
estimations

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

Datasets this package uses (item detector / README): BEA Regional Economic Accounts
Other input files 6 files
  • C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\CAINC1__ALL_AREAS_1969_2021.csv CSV
    Merge_raw_data.do:117
    Merge_raw_data.do, line 117 import delimited "C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\CAINC1__ALL_AREAS_1969_2021.csv", clear numericcols(9(1)61)
  • C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\HPI_AT_BDL_county.xlsx Excel
    Merge_raw_data.do:107
    Merge_raw_data.do, line 107 import excel "C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\HPI_AT_BDL_county.xlsx", sheet("county") cellrange(A7:H97668) firstrow case(lower) clear
  • C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\raw_nic_banks.csv CSV
    Merge_raw_data.do:163
    Merge_raw_data.do, line 163 import delimited "C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\raw_nic_banks.csv", clear
  • C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\raw_nic_bhcs.csv CSV
    Merge_raw_data.do:230
    Merge_raw_data.do, line 230 import delimited "C:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\raw_nic_bhcs.csv", clear
  • raw_call_reports Stata
    Merge_raw_data.do:91
    Merge_raw_data.do, line 91 use raw_call_reports, clear // Raw Call Reports data is publically avaiable
  • raw_sod Stata
    Merge_raw_data.do:16
    Merge_raw_data.do, line 16 use raw_sod, clear // Raw SoD data is publically avaiable

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

4 scripts, in the order the master script runs them; 3 hand-offs through 7 intermediate files.

Merge_raw_data.do → Empirical_analyses.do: nic_banks, nic_bhcsGenerate_variables.do → Empirical_analyses.do: bk_cnty_yr, bk_yrMerge_raw_data.do → Generate_variables.do: bank_controls, call_reports, merged Master.do 1. Master.do Merge_raw_data.do · reads 6 input files 2. Merge_raw_data.do Generate_variables.do 3. Generate_variables.do Empirical_analyses.do · 21 estimations 4. Empirical_analyses.do 21 est.
  1. 1.Master.do master script
  2. 2.Merge_raw_data.do run by Master.do line 20 reads 6 input files · 21 merges ·
    writes bank_controls → read by Generate_variables.do
    writes call_reports → read by Generate_variables.do
    writes merged → read by Generate_variables.do
    writes nic_banks → read by Empirical_analyses.do
    writes nic_bhcs → read by Empirical_analyses.do
  3. 3.Generate_variables.do run by Master.do line 23 2 merges ·
    reads what Merge_raw_data.do wrote
    writes bk_cnty_yr → read by Empirical_analyses.do
    writes bk_yr → read by Empirical_analyses.do
  4. 4.Empirical_analyses.do run by Master.do line 26 1 merge · 21 estimations
    reads what Merge_raw_data.do, Generate_variables.do wrote

3 · Merges — 20 joins, 15 followed by a check of the merge result; 4 appends

JoinsHowOn keysCheck that followsWhere
bank_yr_cnty ← sod merge 1:m year keep if _merge==3
Merge_raw_data.do:78
Merge_raw_data.do, line 78 merge 1:m year using sod,keepusing(asset rssdid n_cnty)
hpi_county ← pcpi_county merge 1:1 fips year none
Merge_raw_data.do:138
Merge_raw_data.do, line 138 merge 1:1 fips year using pcpi_county
cnty_controls ← sod merge 1:m fips year none
Merge_raw_data.do:152
Merge_raw_data.do, line 152 merge 1:m fips year using sod,keepusing(dep_bank_cnty rssdid)
raw_nic_banks ← bank_yr merge m:1 rssdid year drop if _merge==2
Merge_raw_data.do:184
Merge_raw_data.do, line 184 merge m:1 rssdid year using bank_yr
raw_nic_banks ← bank_yr merge m:1 rssdid year drop if _merge==2
Merge_raw_data.do:190
Merge_raw_data.do, line 190 merge m:1 rssdid year using bank_yr
raw_nic_banks ← bank_yr_cnty join m:m (left) rssdid year drop _merge
Merge_raw_data.do:196
Merge_raw_data.do, line 196 joinby rssdid year using bank_yr_cnty, unmatched(master)
raw_nic_banks ← bank_yr_cnty join m:m (left) rssdid year drop _merge rssdid
Merge_raw_data.do:201
Merge_raw_data.do, line 201 joinby rssdid year using bank_yr_cnty, unmatched(master)
raw_nic_bhcs ← bank_yr merge m:1 rssdid year none
Merge_raw_data.do:253
Merge_raw_data.do, line 253 merge m:1 rssdid year using bank_yr
(data in memory) ← temp merge m:1 deal_id drop _merge
Merge_raw_data.do:263
Merge_raw_data.do, line 263 merge m:1 deal_id using `temp'
temp ← bank_yr merge m:1 rssdid year none
Merge_raw_data.do:273
Merge_raw_data.do, line 273 merge m:1 rssdid year using bank_yr
(data in memory) ← temp merge m:1 deal_id drop _merge
Merge_raw_data.do:283
Merge_raw_data.do, line 283 merge m:1 deal_id using `temp'
temp ← bank_yr_cnty join m:m (left) rssdid year drop _merge
Merge_raw_data.do:291
Merge_raw_data.do, line 291 joinby rssdid year using bank_yr_cnty, unmatched(master)

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

Filters, by kind
time period ×2
  • keep if month==6
    Merge_raw_data.do:75
    Merge_raw_data.do, line 75 keep if month==6
  • keep if year>=1994 & year<=2022
    Merge_raw_data.do:356
    Merge_raw_data.do, line 356 keep if year>=1994 & year<=2022
value ranges ×2
  • keep if code!=1
    Merge_raw_data.do:175
    Merge_raw_data.do, line 175 keep if code!=1
  • keep if code!=1
    Merge_raw_data.do:244
    Merge_raw_data.do, line 244 keep if code!=1
category values ×3
  • keep if linecode==3
    Merge_raw_data.do:120
    Merge_raw_data.do, line 120 keep if linecode==3
  • keep if inlist(trnsfm_cd,1,50)
    Merge_raw_data.do:174
    Merge_raw_data.do, line 174 keep if inlist(trnsfm_cd,1,50)
  • keep if inlist(trnsfm_cd,1,50)
    Merge_raw_data.do:243
    Merge_raw_data.do, line 243 keep if inlist(trnsfm_cd,1,50)
indicator subsets ×1
  • drop if rssdid==0
    Merge_raw_data.do:62
    Merge_raw_data.do, line 62 drop if rssdid==0
missing values ×5
  • drop if mi(rssdid) | rssdid==0
    Merge_raw_data.do:93
    Merge_raw_data.do, line 93 drop if mi(rssdid) | rssdid==0
  • drop if linecode==.
    Merge_raw_data.do:119
    Merge_raw_data.do, line 119 drop if linecode==.
  • drop if mi(deal_id)
    Merge_raw_data.do:254
    Merge_raw_data.do, line 254 drop if mi(deal_id)
  • drop if mi(deal_id)
    Merge_raw_data.do:274
    Merge_raw_data.do, line 274 drop if mi(deal_id)
  • drop if mi(rssdid)
    Merge_raw_data.do:347
    Merge_raw_data.do, line 347 drop if mi(rssdid)
drops after a merge (_merge) ×7
  • keep if _merge==3
    Merge_raw_data.do:79
    Merge_raw_data.do, line 79 keep if _merge==3
  • drop if _merge==2
    Merge_raw_data.do:185
    Merge_raw_data.do, line 185 drop if _merge==2
  • drop if _merge==2
    Merge_raw_data.do:191
    Merge_raw_data.do, line 191 drop if _merge==2
  • drop if _merge==1
    Merge_raw_data.do:359
    Merge_raw_data.do, line 359 drop if _merge==1
  • drop if _merge==2
    Merge_raw_data.do:363
    Merge_raw_data.do, line 363 drop if _merge==2
  • drop if _merge==2
    Merge_raw_data.do:367
    Merge_raw_data.do, line 367 drop if _merge==2
  • drop if _merge==2
    Merge_raw_data.do:371
    Merge_raw_data.do, line 371 drop if _merge==2
Outliers
winsorize at 1/99 · 4 variables
tier1_rwa roe dep_bank_cnty int_exp
Generate_variables.do:189
Generate_variables.do, line 189 winsor2 tier1_rwa - roe dep_bank_cnty, cut(1 99) replace
Generate_variables.do:247
Generate_variables.do, line 247 winsor2 int_exp,cut(1 99) replace
Missing values
set to zero ×17
  • id_bank → 0
    Empirical_analyses.do:226
    Empirical_analyses.do, line 226 replace id_bank = 0 if mi(id_bank) & smpl==1
  • s1 → 0
    Generate_variables.do:55
    Generate_variables.do, line 55 replace s`i'=0 if mi(s`i')
  • s2 → 0
    Generate_variables.do:55
    Generate_variables.do, line 55 replace s`i'=0 if mi(s`i')
  • s3 → 0
    Generate_variables.do:55
    Generate_variables.do, line 55 replace s`i'=0 if mi(s`i')
  • s1 → 0
    Generate_variables.do:101
    Generate_variables.do, line 101 replace s`i'=0 if mi(s`i')
  • s2 → 0
    Generate_variables.do:101
    Generate_variables.do, line 101 replace s`i'=0 if mi(s`i')
common sample across variables (listwise) ×1
  • Empirical_analyses.do:212
    Empirical_analyses.do, line 212 g smpl = e(sample)
dropped ×1
  • Merge_raw_data.do:119
    Merge_raw_data.do, line 119 drop if linecode==.

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

Standard measures computed here: Log Total Assets (log_at
Generate_variables.do:245
Generate_variables.do, line 245 g log_at = log(asset)
)
VariableUsed in models asBuilt by
log_bra outcome in 2 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
s1_w1 regressor in 14 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
exposure regressor in 2
exposure = min(temp1) (egen min)
Generate_variables.do:233
Generate_variables.do, line 233 egen exposure = min(temp1), by(fips year)
exposure = 0 (replace)
Generate_variables.do:236
Generate_variables.do, line 236 replace exposure=0 if mi(exposure)
g_hpi_bank regressor in 2
g_hpi_bank = (mean) g_hpi_cnty (collapse)
Merge_raw_data.do:154
Merge_raw_data.do, line 154 collapse (mean) g_hpi_bank=g_hpi_cnty g_pcpi_bank=g_pcpi_cnty [aweight=dep_bank_cnty],by(rssdid year)
g_pcpi_bank regressor in 2
g_pcpi_bank = (mean) g_pcpi_cnty (collapse)
Merge_raw_data.do:154
Merge_raw_data.do, line 154 collapse (mean) g_hpi_bank=g_hpi_cnty g_pcpi_bank=g_pcpi_cnty [aweight=dep_bank_cnty],by(rssdid year)
x regressor in 2
x = . (gen)
Empirical_analyses.do:60
Empirical_analyses.do, line 60 g x = .
x = s`i'_w`j' (replace)
Empirical_analyses.do:68
Empirical_analyses.do, line 68 replace x = s`i'_w`j'
x = s`i'_w`j'_dep (replace)
Empirical_analyses.do:89
Empirical_analyses.do, line 89 replace x = s`i'_w`j'_dep
g_hpi_cnty regressor in 1
g_hpi_cnty = g_hpi_cnty/100 (replace)
Empirical_analyses.do:285
Empirical_analyses.do, line 285 replace g_hpi_cnty = g_hpi_cnty/100
g_pcpi_cnty regressor in 1
g_pcpi_cnty = g_pcpi_cnty/100 (replace)
Empirical_analyses.do:284
Empirical_analyses.do, line 284 replace g_pcpi_cnty = g_pcpi_cnty/100
log_at regressor in 1
log_at = log(asset) (gen)
Generate_variables.do:245
Generate_variables.do, line 245 g log_at = log(asset)

6 · Models, by the table or figure they feed — 21 estimations, 19 traced into 14 exhibits

Table 2 · 1 estimation → table2.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' l.s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:49
Empirical_analyses.do, line 49 reghdfe `y' l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' l.s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:54
Table 3 · 1 estimation → table3`j'.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' l.x i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:69
Empirical_analyses.do, line 69 reghdfe `y' l.x if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:75
Table 4 · 1 estimation → table4`j'.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' l.x i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:91
Empirical_analyses.do, line 91 reghdfe `y' l.x if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:97
Table 5 · 1 estimation → table5.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.s1_w1##l.z_`z' i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:113
Empirical_analyses.do, line 113 reghdfe `y' c.l.`x'##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.s1_w1##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 4× in a loop (y=log_bra; z=fixed_at; y=log_bra; z=labor_salary; y=log_dep; z=fixed_at…)
written at Empirical_analyses.do:114
Table 6 · 1 estimation → table6.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.s1_w1##l.z_`z' i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:130
Empirical_analyses.do, line 130 reghdfe `y' c.l.`x'##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.s1_w1##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 4× in a loop (y=log_bra; z=roe; y=log_bra; z=nim_per; y=log_dep; z=roe…)
written at Empirical_analyses.do:131
Table 7 · 1 estimation → table7.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.s1_w1##l.z_`z' i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:148
Empirical_analyses.do, line 148 reghdfe `y' c.l.`x'##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.s1_w1##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 4× in a loop (y=log_bra; z=loans; y=log_bra; z=n_cnty; y=log_dep; z=loans…)
written at Empirical_analyses.do:149
Table 8 · 1 estimation → table8.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.s1_w1##l.z_`z' i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:164
Empirical_analyses.do, line 164 reghdfe `y' c.l.`x'##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.s1_w1##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 4× in a loop (y=log_bra; z=hhi_bra; y=log_bra; z=hhi_dep; y=log_dep; z=hhi_bra…)
written at Empirical_analyses.do:165
Table 9 · 1 estimation → table9.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.s1_w1##l.z_`z' i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:181
Empirical_analyses.do, line 181 reghdfe `y' c.l.`x'##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.s1_w1##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 4× in a loop (y=log_bra; z=s_bra_bank_cnty; y=log_bra; z=s_dep_bank_cnty; y=log_dep; z=s_bra_bank_cnty…)
written at Empirical_analyses.do:182
Table 10 · 1 estimation → table10.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.d`i'_w1 c.l.d`i' + 1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:195
Empirical_analyses.do, line 195 reghdfe `y' c.l.d`i'_w1 c.l.d`j'_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.d`i'_w1 c.l.d`i' + 1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
written at Empirical_analyses.do:204
Table 11 · 2 estimations → table11.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' l.exposure i.rssdid, i.year cluster: year, rssdid
Empirical_analyses.do:316
Empirical_analyses.do, line 316 reghdfe `y' l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.rssdid i.year) vce(cluster year rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' l.exposure if tin(1995,2022) & mi(ma_bank1) , ab(i.rssdid i.year) vce(cluster year rssdid)
run 1× in a loop (y=int_exp)
written at Empirical_analyses.do:323
reghdfe
panel fe
`y' l.exposure log_at g_pcpi_bank g_hpi_bank i.rssdid, i.year cluster: year, rssdid
Empirical_analyses.do:325
Empirical_analyses.do, line 325 reghdfe `y' l.`x' log_at g_pcpi_bank g_hpi_bank if tin(1995,2022) & mi(ma_bank1) , ab(i.rssdid i.year) vce(cluster year rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' l.exposure log_at g_pcpi_bank g_hpi_bank if tin(1995,2022) & mi(ma_bank1) , ab(i.rssdid i.year) vce(cluster year rssdid)
run 1× in a loop (y=int_exp)
written at Empirical_analyses.do:328
Table A1 · 3 estimations → tablea1.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' l.s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: id_bank
Empirical_analyses.do:233
Empirical_analyses.do, line 233 reghdfe `y' l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster id_bank) as we read it (macros filled in / loop expanded): reghdfe `y' l.s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster id_bank)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:234
reghdfe
panel fe
`y' l.s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: id_bank, year
Empirical_analyses.do:235
Empirical_analyses.do, line 235 reghdfe `y' l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster id_bank year) as we read it (macros filled in / loop expanded): reghdfe `y' l.s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster id_bank year)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:236
reghdfe
panel fe
`y' l.s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: id_bank, year, rssdid
Empirical_analyses.do:237
Empirical_analyses.do, line 237 reghdfe `y' l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster id_bank year rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' l.s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster id_bank year rssdid)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:238
Table A2 · 2 estimations → tablea2.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
ppmlhdfe
count
`y'_bank_cnty l.s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:246
Empirical_analyses.do, line 246 ppmlhdfe `y'_bank_cnty l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): ppmlhdfe `y'_bank_cnty l.s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 2× in a loop (y=bra; y=dep)
written at Empirical_analyses.do:252
ppmlhdfe
count
`y'_bank_cnty l.s1_w1 l.g_pcpi_bank l.g_hpi_bank i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:254
Empirical_analyses.do, line 254 ppmlhdfe `y'_bank_cnty l.`x' l.g_pcpi_bank l.g_hpi_bank if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): ppmlhdfe `y'_bank_cnty l.s1_w1 l.g_pcpi_bank l.g_hpi_bank if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 2× in a loop (y=bra; y=dep)
written at Empirical_analyses.do:260
Table A3 · 1 estimation → tablea3.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' c.l.s1_w1##l.z_`z' i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:274
Empirical_analyses.do, line 274 reghdfe `y' c.l.`x'##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' c.l.s1_w1##l.z_`z' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
run 4× in a loop (y=log_bra; z=tier1_at; y=log_bra; z=tier1_rwa; y=log_dep; z=tier1_at…)
written at Empirical_analyses.do:275
Table A4 · 2 estimations → tablea4.doc
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
`y' l.s1_w1 i.bank_cnty, i.year, i.rssdid#i.year cluster: fips, rssdid
Empirical_analyses.do:289
Empirical_analyses.do, line 289 reghdfe `y' l.`x' if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.rssdid#i.year ) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' l.s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.rssdid#i.year ) vce(cluster fips rssdid)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:294
reghdfe
panel fe
`y' l.s1_w1 l.g_pcpi_cnty l.g_hpi_cnty i.bank_cnty, i.year, i.rssdid#i.year cluster: fips, rssdid
Empirical_analyses.do:296
Empirical_analyses.do, line 296 reghdfe `y' l.`x' l.g_pcpi_cnty l.g_hpi_cnty if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.rssdid#i.year ) vce(cluster fips rssdid) as we read it (macros filled in / loop expanded): reghdfe `y' l.s1_w1 l.g_pcpi_cnty l.g_hpi_cnty if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.rssdid#i.year ) vce(cluster fips rssdid)
run 2× in a loop (y=log_bra; y=log_dep)
written at Empirical_analyses.do:301
Estimations not traced to a table or figure · 2
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
log_bra l(1/1).s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:33
Empirical_analyses.do, line 33 reghdfe log_bra l(1/1).s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
reghdfe
panel fe
log_bra l(1/1).s1_w1 i.bank_cnty, i.year, i.fips#i.year cluster: fips, rssdid
Empirical_analyses.do:211
Empirical_analyses.do, line 211 reghdfe log_bra l(1/1).s1_w1 if tin(1995,2022) & mi(ma_bank1) , ab(i.bank_cnty i.year i.fips#i.year) vce(cluster fips rssdid)
Tables and figures the code writes: Table 2 table2.doc
Empirical_analyses.do:54
Empirical_analyses.do, line 54 outreg2 using table2.doc, append $options addstat(Rescaled beta,`impact')
· Table 3 table3`j'.doc
Empirical_analyses.do:75
Empirical_analyses.do, line 75 outreg2 using table3`j'.doc, append $options addstat(Rescaled beta,`impact')
· Table 4 table4`j'.doc
Empirical_analyses.do:97
Empirical_analyses.do, line 97 outreg2 using table4`j'.doc, append $options addstat(Rescaled beta,`impact')
· Table 5 table5.doc
Empirical_analyses.do:114
Empirical_analyses.do, line 114 outreg2 using table5.doc, append bdec(3) sdec(3) nocons
· Table 6 table6.doc
Empirical_analyses.do:131
Empirical_analyses.do, line 131 outreg2 using table6.doc, append bdec(3) sdec(3) nocons
· Table 7 table7.doc
Empirical_analyses.do:149
Empirical_analyses.do, line 149 outreg2 using table7.doc, append bdec(3) sdec(3) nocons
· Table 8 table8.doc
Empirical_analyses.do:165
Empirical_analyses.do, line 165 outreg2 using table8.doc, append bdec(3) sdec(3) nocons
· Table 9 table9.doc
Empirical_analyses.do:182
Empirical_analyses.do, line 182 outreg2 using table9.doc, append bdec(3) sdec(3) nocons
· Table 10 table10.doc
Empirical_analyses.do:204
Empirical_analyses.do, line 204 outreg2 using table10.doc, append $options addstat(Rescaled beta1,`impact1',Rescaled beta2,`impact2')
· Table 11 table11.doc
Empirical_analyses.do:323
Empirical_analyses.do, line 323 outreg2 using table11.doc, append $options addstat(Rescaled beta,`impact')
· Table A1 tablea1.doc
Empirical_analyses.do:234
Empirical_analyses.do, line 234 outreg2 using tablea1.doc, append bdec(3) sdec(3) nocons
· Table A2 tablea2.doc
Empirical_analyses.do:252
Empirical_analyses.do, line 252 outreg2 using tablea2.doc, append $options addstat(Pseudo R-squared, `r2',Rescaled beta,`impact')
· Table A3 tablea3.doc
Empirical_analyses.do:275
Empirical_analyses.do, line 275 outreg2 using tablea3.doc, append bdec(3) sdec(3) nocons
· Table A4 tablea4.doc
Empirical_analyses.do:294
Empirical_analyses.do, line 294 outreg2 using tablea4.doc, append $options addstat(Rescaled beta,`impact')
· Figure 1 fig1.tif
Empirical_analyses.do:27
Empirical_analyses.do, line 27 graph export fig1.tif, replace

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

line 1
commandlayersvariables optionssaved aswhere
tsline
line
tsline y n_non ytitle Number of Bank Mergers · scheme s2mono Figure 1
fig1.tif
Empirical_analyses.do:26
Empirical_analyses.do, line 26 tsline n_non if `smpl', lwidth(medthick) graphregion(color(white)) title("",size(medium)) scheme(s2mono) ylabel(0(200)1200,angle(horizontal)) xtitle("") ytitle("Number of Bank Mergers")