Replication Package for "China Walls" (Journal of Financial Economics)
Description
Replication package for "China Walls" by Tomy Lee, Daniel Nathan, and Chaojun Wang, Journal of Financial Economics. The package contains the MATLAB and Stata programs that produce the computed tables, figures, and numbers in the paper and its Online Appendix, a master script that runs them in order, and a generator of artificial data with the same file layouts as the confidential inputs. Tables B.1-B.2 and Figures 1, 4, and A.1 of the published paper contain no computations and are not generated by programs. README.pdf numbers exhibits as in the review-stage manuscript, where these are Tables 8-9 and Figures 1, 4, and 14, and Figure C.1 is Figure 15. The included pseudo dataset lets every program run from beginning to end. It does not reproduce the paper's estimates. README.pdf gives the run order, the software and hardware used, the run time, the random seed, and a table that maps each exhibit to its program, the line numbers that estimate and write it, and its output file. Licenses. The programs are licensed under the MIT License, and the documentation, pseudo dataset, and artificial-data results under CC BY 4.0. The Newey-West helper routines fastnw.m, Gammat.m, and packr.m are included for convenience and are not covered by either license. See LICENSE.txt. Data availability. The paper uses confidential foreign exchange transaction data from the Bank of Israel, which are not distributed. Replication with these data must be done by an authorized person working within the Bank of Israel's network. Outside researchers can contact the Bank of Israel Research Department (Research@boi.org.il) to discuss access, which is subject to the Bank of Israel's authorization. The exchange rates come from Bloomberg and are not distributed. Replication requires access to Bloomberg under its license terms.
Files
Steps to reproduce
1. Unzip JFE_Replication_v2.zip and read README.pdf. 2. Software: MATLAB R2025a with the Statistics and Machine Learning Toolbox; StataNow 19.5 MP with reghdfe 6.12.3, ftools 2.49.1 and winsor2. 3. Pseudo-data run: open MATLAB in the package folder, set cfg.RunRoot to a folder that does not yet exist and cfg.StataExe to the Stata executable, and run master('run-artificial',cfg). This regenerates the pseudo data (seed 20260930) and runs every program in order. The run took about 5.5 hours on a 24-core machine with 64 GB of RAM. 4. Online Appendix: after the main run, run addpath('online_appendix') and then run_online_appendix(cfg.RunRoot, cfg.StataExe). 5. Confidential-data run (authorized users within the Bank of Israel's network): set cfg.InputRoot to a folder whose Data/ subfolder holds the two Bank of Israel extracts (trades_pre2019.csv, trades_post2019.csv) and the reference files listed in documentation/DATA_SOURCES.csv, set cfg.Encoding to 'ISO-8859-8', and run master('run-boi',cfg). Then run addpath('online_appendix') and run_online_appendix(cfg.RunRoot, cfg.StataExe, cfg.InputRoot, cfg.Encoding). 6. Results are written to outputs/ in the run folder, and the Online Appendix results to outputs_online_appendix/. README.pdf maps each table and figure to its program, the line numbers that estimate and write it, and its output file.
Institutions
- Central European UniversityVienna, Vienna
- Hong Kong Polytechnic UniversityHong Kong
- University of PennsylvaniaPennsylvania, Philadelphia