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.csvCSVMerge_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.xlsxExcelMerge_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) clearC:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\raw_nic_banks.csvCSVMerge_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", clearC:\Users\Ding.Du\OneDrive - Office of the Comptroller of the Currency\Documents\DDU\Research\Bank mergers\replication_folder\raw_nic_bhcs.csvCSVMerge_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", clearraw_call_reportsStataMerge_raw_data.do:91
Merge_raw_data.do, line 91 use raw_call_reports, clear // Raw Call Reports data is publically avaiableraw_sodStataMerge_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.
-
1.
Master.domaster script -
2.
Merge_raw_data.dorun by Master.do line 20 reads 6 input files · 21 merges ·writesbank_controls→ read byGenerate_variables.dowritescall_reports→ read byGenerate_variables.dowritesmerged→ read byGenerate_variables.dowritesnic_banks→ read byEmpirical_analyses.dowritesnic_bhcs→ read byEmpirical_analyses.do -
3.
Generate_variables.dorun by Master.do line 23 2 merges ·reads whatMerge_raw_data.dowrotewritesbk_cnty_yr→ read byEmpirical_analyses.dowritesbk_yr→ read byEmpirical_analyses.do -
4.
Empirical_analyses.dorun by Master.do line 26 1 merge · 21 estimationsreads whatMerge_raw_data.do,Generate_variables.dowrote
3 · Merges — 20 joins, 15 followed by a check of the merge result; 4 appends
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
bank_yr_cnty ← sod |
merge 1:m | year |
keep if _merge==3 |
Merge_raw_data.do:78Merge_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:138Merge_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:152Merge_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:184Merge_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:190Merge_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:196Merge_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:201Merge_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:253Merge_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:263Merge_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:273Merge_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:283Merge_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:291Merge_raw_data.do, line 291
joinby rssdid year using bank_yr_cnty, unmatched(master) |
temp ← bank_yr_cnty |
join m:m (left) | rssdid year |
drop _merge rssdid |
Merge_raw_data.do:296Merge_raw_data.do, line 296
joinby rssdid year using bank_yr_cnty, unmatched(master) |
(data in memory) ← temp |
merge m:1 | deal_id |
drop _merge |
Merge_raw_data.do:308Merge_raw_data.do, line 308
merge m:1 deal_id using `temp' |
nic_merged ← sod |
merge 1:m | rssdid year |
drop if _merge==1 |
Merge_raw_data.do:358Merge_raw_data.do, line 358
merge 1:m rssdid year using sod |
nic_merged ← call_reports |
merge m:1 | rssdid year |
drop if _merge==2 |
Merge_raw_data.do:362Merge_raw_data.do, line 362
merge m:1 rssdid year using call_reports |
nic_merged ← bank_controls |
merge m:1 | rssdid year |
drop if _merge==2 |
Merge_raw_data.do:366Merge_raw_data.do, line 366
merge m:1 rssdid year using bank_controls |
nic_merged ← cnty_controls |
merge m:1 | fips year |
drop if _merge==2 |
Merge_raw_data.do:370Merge_raw_data.do, line 370
merge m:1 fips year using cnty_controls |
bk_cnty_yr ← call_reports |
merge 1:1 | rssdid year |
drop _merge |
Generate_variables.do:238Generate_variables.do, line 238
merge 1:1 rssdid year using call_reports,keepusing(eintexp depdom asset) |
bk_cnty_yr ← bank_controls |
merge 1:1 | rssdid year |
none | Generate_variables.do:241Generate_variables.do, line 241
merge 1:1 rssdid year using bank_controls |
4 · The sample — 20 keep/drop steps, 4 variables winsorized or trimmed
Filters, by kind
time period ×2
- keep if
month==6Merge_raw_data.do:75
Merge_raw_data.do, line 75 keep if month==6 - keep if
year>=1994 & year<=2022Merge_raw_data.do:356
Merge_raw_data.do, line 356 keep if year>=1994 & year<=2022
value ranges ×2
- keep if
code!=1Merge_raw_data.do:175
Merge_raw_data.do, line 175 keep if code!=1 - keep if
code!=1Merge_raw_data.do:244
Merge_raw_data.do, line 244 keep if code!=1
category values ×3
- keep if
linecode==3Merge_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==0Merge_raw_data.do:62
Merge_raw_data.do, line 62 drop if rssdid==0
missing values ×5
- drop if
mi(rssdid) | rssdid==0Merge_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==3Merge_raw_data.do:79
Merge_raw_data.do, line 79 keep if _merge==3 - drop if
_merge==2Merge_raw_data.do:185
Merge_raw_data.do, line 185 drop if _merge==2 - drop if
_merge==2Merge_raw_data.do:191
Merge_raw_data.do, line 191 drop if _merge==2 - drop if
_merge==1Merge_raw_data.do:359
Merge_raw_data.do, line 359 drop if _merge==1 - drop if
_merge==2Merge_raw_data.do:363
Merge_raw_data.do, line 363 drop if _merge==2 - drop if
_merge==2Merge_raw_data.do:367
Merge_raw_data.do, line 367 drop if _merge==2 - drop if
_merge==2Merge_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_expGenerate_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→0Empirical_analyses.do:226
Empirical_analyses.do, line 226 replace id_bank = 0 if mi(id_bank) & smpl==1s1→0Generate_variables.do:55
Generate_variables.do, line 55 replace s`i'=0 if mi(s`i')s2→0Generate_variables.do:55
Generate_variables.do, line 55 replace s`i'=0 if mi(s`i')s3→0Generate_variables.do:55
Generate_variables.do, line 55 replace s`i'=0 if mi(s`i')s1→0Generate_variables.do:101
Generate_variables.do, line 101 replace s`i'=0 if mi(s`i')s2→0Generate_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)
| Variable | Used in models as | Built 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:233Generate_variables.do, line 233
egen exposure = min(temp1), by(fips year) exposure = 0 (replace) Generate_variables.do:236Generate_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:154Merge_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:154Merge_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:60Empirical_analyses.do, line 60
g x = . x = s`i'_w`j' (replace) Empirical_analyses.do:68Empirical_analyses.do, line 68
replace x = s`i'_w`j' x = s`i'_w`j'_dep (replace) Empirical_analyses.do:89Empirical_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:285Empirical_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:284Empirical_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:245Generate_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
l.s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:49Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
l.x
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:69Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
l.x
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:91Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
c.l.s1_w1##l.z_`z'
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:113Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
c.l.s1_w1##l.z_`z'
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:130Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
c.l.s1_w1##l.z_`z'
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:148Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
c.l.s1_w1##l.z_`z'
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:164Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
c.l.s1_w1##l.z_`z'
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:181Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:195Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
l.exposure
|
i.rssdid, i.year | cluster: year, rssdid | Empirical_analyses.do:316Empirical_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 |
reghdfepanel fe |
`y' |
l.exposure log_at g_pcpi_bank g_hpi_bank
|
i.rssdid, i.year | cluster: year, rssdid | Empirical_analyses.do:325Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
l.s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: id_bank | Empirical_analyses.do:233Empirical_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 |
reghdfepanel fe |
`y' |
l.s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: id_bank, year | Empirical_analyses.do:235Empirical_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 |
reghdfepanel fe |
`y' |
l.s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: id_bank, year, rssdid | Empirical_analyses.do:237Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
`y'_bank_cnty |
l.s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:246Empirical_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 |
ppmlhdfecount |
`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:254Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
c.l.s1_w1##l.z_`z'
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:274Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`y' |
l.s1_w1
|
i.bank_cnty, i.year, i.rssdid#i.year | cluster: fips, rssdid | Empirical_analyses.do:289Empirical_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 |
reghdfepanel 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:296Empirical_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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
log_bra |
l(1/1).s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:33Empirical_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) |
reghdfepanel fe |
log_bra |
l(1/1).s1_w1
|
i.bank_cnty, i.year, i.fips#i.year | cluster: fips, rssdid | Empirical_analyses.do:211Empirical_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 · Table 3 · Table 4 · Table 5 · Table 6 · Table 7 · Table 8 · Table 9 · Table 10 · Table 11 · Table A1 · Table A2 · Table A3 · Table A4 · Figure 1
table2.doc Empirical_analyses.do:54
Empirical_analyses.do, line 54
outreg2 using table2.doc, append $options addstat(Rescaled beta,`impact')
table3`j'.doc Empirical_analyses.do:75
Empirical_analyses.do, line 75
outreg2 using table3`j'.doc, append $options addstat(Rescaled beta,`impact')
table4`j'.doc Empirical_analyses.do:97
Empirical_analyses.do, line 97
outreg2 using table4`j'.doc, append $options addstat(Rescaled beta,`impact')
table5.doc Empirical_analyses.do:114
Empirical_analyses.do, line 114
outreg2 using table5.doc, append bdec(3) sdec(3) nocons
table6.doc Empirical_analyses.do:131
Empirical_analyses.do, line 131
outreg2 using table6.doc, append bdec(3) sdec(3) nocons
table7.doc Empirical_analyses.do:149
Empirical_analyses.do, line 149
outreg2 using table7.doc, append bdec(3) sdec(3) nocons
table8.doc Empirical_analyses.do:165
Empirical_analyses.do, line 165
outreg2 using table8.doc, append bdec(3) sdec(3) nocons
table9.doc Empirical_analyses.do:182
Empirical_analyses.do, line 182
outreg2 using table9.doc, append bdec(3) sdec(3) nocons
table10.doc Empirical_analyses.do:204
Empirical_analyses.do, line 204
outreg2 using table10.doc, append $options addstat(Rescaled beta1,`impact1',Rescaled beta2,`impact2')
table11.doc Empirical_analyses.do:323
Empirical_analyses.do, line 323
outreg2 using table11.doc, append $options addstat(Rescaled beta,`impact')
tablea1.doc Empirical_analyses.do:234
Empirical_analyses.do, line 234
outreg2 using tablea1.doc, append bdec(3) sdec(3) nocons
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')
tablea3.doc Empirical_analyses.do:275
Empirical_analyses.do, line 275
outreg2 using tablea3.doc, append bdec(3) sdec(3) nocons
tablea4.doc Empirical_analyses.do:294
Empirical_analyses.do, line 294
outreg2 using tablea4.doc, append $options addstat(Rescaled beta,`impact')
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
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
tslineline
|
tsline |
y n_non
|
ytitle Number of Bank Mergers · scheme s2mono |
Figure 1fig1.tif |
Empirical_analyses.do:26Empirical_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") |