Replication code for "Sideways, not Home: Reshoring versus Reallocation in Multinational Groups after Global Shocks"
Abstract
This record contains the R code for the Master’s thesis “Sideways, not Home: Reshoring versus Reallocation in Multinational Groups after Global Shocks” (Pascal Suter, University of Zurich, 2026). The thesis examines whether multinational groups brought employment home after the COVID-19 pandemic, the Russia-Ukraine war and the US CHIPS and Science Act. It uses Orbis data on 8,824 multinational groups with at least 1,000 employees and their 559,386 controlled subsidiaries for the years 2016 to 2025. Contents. The code consists of seven Quarto documents, which are run in numerical order, four helper scripts and one reference file: 1_import_parents.qmd: import of the Orbis parent export and the ownership links; restriction to controlled subsidiaries (at least 50%, directly or in total) 2_import_subsidiaries.qmd: import and cleaning of the subsidiary export 3_merge_variables.qmd: construction of the group panel, the constant-composition geographic measures (home share, employment-weighted distance, home-region share, US share, friend-shoring index), the reshoring indicator, the reconfiguration typology and the shock exposures 4_analysis.qmd: descriptive analysis and difference-in-differences estimation with continuous pre-shock exposure 5_robustness.qmd: robustness checks, sensitivity analysis (HonestDiD), placebo tests and permutation inference 6_figures.qmd, 7_tables.qmd: figures and tables of the thesis helpers.R, analysis_helpers.R, figure_helpers.R, reshoring.R: helper functions country_centroids.csv: capital-city coordinates of all countries in the data, compiled by the author from LatLong.net and checked against the capital coordinates of the CEPII GeoDist database (Mayer & Zignago, 2011); used to compute great-circle distances Data. The Orbis data are licensed by Bureau van Dijk (Moody’s) and may not be redistributed. The raw exports and all data sets derived from them are therefore not included. Researchers with access to Orbis can rebuild the exports with the search settings described in Section 5.1 and Appendix B of the thesis. To run the code, create a subfolder Data in the project folder and place the following files in it: the Orbis exports Parents.csv and Subsidiaries.csv, the included country_centroids.csv and the UNGA ideal-point estimates of Bailey, Strezhnev and Voeten (2017), version June 2024 (IdealpointestimatesAll_Jun2024.csv, Harvard Dataverse, https://doi.org/10.7910/DVN/LEJUQZ). Tables and figures are written to the subfolders Tables and Figures. Software. R 4.5 with Quarto. Main packages: tidyverse, fixest, HonestDiD, countrycode, geosphere, modelsummary, flextable and officer.