Global Value Chains and Inflation Dynamics

Published: 14 April 2026| Version 1 | DOI: 10.17632/j2wrnp7hm8.1
Contributors:
Vu Chau, Marina Conesa Martinez, Taehoon Kim, John Spray

Description

Accompanying data and code for Chau, Conesa Martinez, Kim, and Spray (2026): "Global Value Chains and Inflation Dynamics".

Files

Steps to reproduce

# Global Value Chains and Inflation Dynamics Replication code for the paper "Global Value Chains and Inflation Dynamics" by Vu Chau, Marina Conesa Martinez, Taehoon Kim, and John Spray. ## Repository layout - `src/`: analysis scripts - `scripts/`: stable entry points for each pipeline stage - `lib/`: shared helper functions - `data/`: raw input data - `data_cleaned/`: intermediate datasets generated by the pipeline - `outputs/`: generated figures and tables ## Recommended workflow 1. Create and activate a virtual environment. 2. Install the dependencies in `requirements.txt`. 3. Place the required raw data files in `data/`. 4. Set the output vintage in `config.py` if needed. 5. Run the required scripts from `scripts/` in order, or run the full pipeline with `python scripts/run_pipeline.py`. ## Pipeline order 1. `python scripts/01_clean_oxford_cgrt.py` 2. `python scripts/02_clean_io_tables.py` 3. `python scripts/03_construct_bartik_instruments.py` 4. `python scripts/04_plot_shocks.py` 5. `python scripts/05_summary_statistics_tables.py` 6. `python scripts/06a_panel_preparation.py` 7. `python scripts/06b_prepare_data.py` 8. `python scripts/07a_regression_tables.py` 9. `python scripts/07b_irfs.py` 10. `python scripts/07c_contribution_graph.py` 11. `python scripts/07d_role_of_network.py` 12. `python scripts/07e_asia_charts.py` 13. `python scripts/08_decompose_shocks.py` 14. `python scripts/09_plot_trade_costs_by_route.py` 15. `python scripts/10_plot_lockdown_exposure.py` You can also run the full pipeline with: ```bash python scripts/run_pipeline.py ``` ## Required raw inputs The active pipeline expects raw files in `data/`. The core set used by the current code includes: - `oxford_cgrt.csv` - `weo_info.dta` - `weo.dta` - `oecd_input_output_table_2018.csv` - `onet_industry_lockdown.csv` - `monetary_indicators.dta` - `commodity_prices.dta` - `trade_costs.dta` - `industry_code_map.csv` - `ifs.dta` - `covid19.dta` - `wiod_nace_naics.dta` - `ppi_haver_data.xlsx` - `ppi_haver_mapping.xlsx` - `oecd_stan.xlsx` ## Outputs - The output vintage is controlled in `config.py` via `OUTPUT_VINTAGE`. - The current configuration writes tables to `outputs/tables/Final Submission/`. - The current configuration writes figures to `outputs/figures/Final Submission/`.

Categories

Economics

Licence