Replication data and code: Tariff thresholds in trade diversion
Description
This deposit contains the data and code needed to reproduce all tables and figures of the paper “Tariff thresholds in trade diversion: Evidence from Chinese electronics exports, 2017 to 2019” by Max Reiland (Mainz University of Applied Sciences). Research question. The 2018 US Section 301 tariffs on Chinese goods were imposed in tranches at two rates, 25 percent and 10 percent. The paper asks how large a tariff has to be before Chinese exporters redirect shipments to third markets. It uses the electronics sector (HS chapter 85) and four destinations that differ in distance to China and in their integration into regional supply chains: Vietnam, South Korea, Mexico and Germany. Data. The estimation panel contains monthly Chinese export values at the six digit product level (HS 2017) for January 2017 to December 2019: 32,902 observations on 258 products, of which 204 were subject to tariffs (120 at 25 percent, 84 at 10 percent) and 54 were not. Trade values come from UN Comtrade. Tariff rates, effective dates and four product characteristics come from the replication files of Zhang (2022) for Jiang, Lu, Song and Zhang (2023), doi:10.17632/nsbjkhrc7t.2, licensed CC BY 4.0. Method. Difference in differences with product by destination and month fixed effects, a product specific post indicator and standard errors clustered at the product by destination level. Coefficients are read as relative changes in exports of tariffed products compared with non tariffed products in the same sector. Main findings. Products facing the 25 percent rate record a relative export increase of about 13 percent, while products facing the 10 percent rate show no measurable effect. Diversion concentrates in Vietnam and Mexico and emerges about seven months after the tariffs take effect. Contents and use. README.md describes all files and variables. Running code/02_estimate_and_figures.py reproduces Tables 1 to 4 and Figures 1 and 2 from the panel in data/ in under a minute. Script 01 rebuilds the panel from the original sources, which are not redistributed here. Python 3.13 and the packages in code/requirements.txt are required.
Files
Institutions
- University of Applied Sciences MainzRheinland-Pfalz, Mainz