Published October 14, 2026 | Version v1

Replication data and code for "Bank Branch Exit and Firm Entry: Evidence from Counties in China"

Authors/Creators

  • 1. School of Intelligent Logistics, Guangdong Mechanical & Electrical Polytechnic

Description

This repository contains the replication data and code for the paper "Bank Branch Exit and Firm Entry: Evidence from Counties in China".

The study uses a balanced panel of 1,782 Chinese counties over 2014-2021 (14,256 county-year observations) to estimate the effect of net bank branch exit on county-level firm entry, and how this effect varies with local digital financial inclusion. Branch data are drawn from the financial license records of the National Financial Regulatory Administration and matched to counties by address code; exits and openings at the same address within the same calendar year are offset, so only net exits are counted. Firm entry is measured as newly registered firms per 10,000 residents, and digital finance by the county-level Digital Financial Inclusion Index of the Institute of Digital Finance, Peking University. Identification combines a staggered difference-in-differences design with a shift-share instrument based on banks' branch contraction outside the focal province.

Contents:
- data.xlsx - the analysis data, in six sheets. codebook lists every variable with its definition, unit, source and the step of the analysis it is used in. county_year_panel is the main balanced county-year panel (1,782 counties over 2014-2021, 14,256 observations). county_year_unbalanced holds the counties dropped from the balanced panel, which together with the main panel give the unbalanced panel of 14,546 county-years. bank_county_base holds bank by county branch counts in the 2014 baseline, bank_province_year holds bank by province by year branch counts from 2013 onwards, both used to construct the shift-share instrument, and bank_info holds bank type and a merger-driven indicator.
- analysis_all_english.R - a single R script reproducing all estimates in the main text and the appendix, including the two-way fixed effects, Callaway-Sant'Anna, OLS and shift-share IV specifications, the event study, heterogeneity, robustness, mechanism and inference results.

Place both files in the same folder and run the script; it writes output/All_Tables.xlsx with seven sheets corresponding to Table 1 and Appendix Tables A1, A2, A3, A5 and A6. Runtime is about 5-10 minutes. Required R packages are data.table, fixest, did, readxl and writexl; they are installed automatically if missing, so an internet connection is needed on first run. R 3.6.0 or later is required, because the random number generator used by sample() changed in that version and the placebo and bootstrap results depend on it.

County, province, city and bank identifiers have been recoded; the original administrative codes and bank names are not released, so these data cannot be merged with external sources by identifier. Variables derived from third-party sources are provided only in the aggregated form used in the analysis. Data files are released under CC BY 4.0 and the code under the MIT License. Please cite both the paper and this deposit.

Files

Files (3.9 MB)

Name Size
md5:8c0bff7f2bf4b3228de03bd16e10a6dc
70.3 kB Download
md5:dd5b6df6a12524bb6975180d1aab9278
3.8 MB Download

Additional details

Dates

Collected
2014-01-01/2021-12-31
Period covered by the county-year panel