Reproduction instructions
This replication package is divided into two parts:
Part 1: Creating Analysis-Ready Datasets from Raw Data
The first phase focuses on preparing the raw data for analysis. Due to data sharing restrictions, users are required to manually download certain datasets directly from their sources. Detailed instructions for downloading these datasets, including URLs, necessary access protocols, and the structure of the data folder essential for the package’s operation, are provided in the package’s README file.
The _main. R script is configured to bypass the creation of analysis-ready datasets from raw data. Instead, it jumps straight to loading analysis-ready datasets. However, users have the option to adjust a parameter within _main.R to activate scripts that process the raw data into a format suitable for analysis. This involves:
• Manually downloading raw data from specified sources.
• Running a few scripts that are written in Stata and Python. While _main.R points to these scripts, users must open and execute them manually. This is documented in the README file.
Part 2: Replicating the Analysis Using Analysis-Ready Datasets
Once the raw data has been transformed into analysis-ready datasets, _main.R proceeds with the analysis. With the datasets prepared, the user needs to adjust the paths, and the script runs all necessary analyses, generating the figures and tables in the paper.