Replication package for "The mining channel of climate-induced international migration in Latin America: instrumental-variable evidence and a comparison with agriculture"
Description
Replication package for Troncoso and Fernandez (2026), "The mining channel of climate-induced international migration in Latin America: instrumental-variable evidence and a comparison with agriculture", Mineral Economics (https://doi.org/10.1007/s13563-026-00713-z). It contains the compiled country-period panels for Latin American and Caribbean countries (compiled panel: 1960–2017, seven periods; baseline sectoral regressions with controls: 1970–2017); the Stata 18 programs that produce the estimates, the tables and Figure 3; the archived estimation outputs, logs and bootstrap distributions; the R scripts and frozen sources of a country-specific mineral price index; and Python scripts for panel reconstruction, Figures 1, 2 and A.1, and numerical checks. All variables come from publicly available secondary sources (World Bank, FAOSTAT, CRU TS 4, GADM, WorldPop, UN DESA, the Center for Systemic Peace, and the multidimensional poverty index supplementary workbook of Santos and Villatoro 2018). Replication starts from the distributed annual national series and constructed exposures; it does not reconstruct all gridded climate or bilateral migration inputs. File integrity can be verified with SHA-256 lists. README.md (English) describes the structure, software requirements and execution order; internal technical notes are in Spanish. Online Resource 1 accompanies the article and is not part of this dataset.
Files
Steps to reproduce
1. Download the three files together and extract Troncoso_Fernandez_2026_MinEcon_replication.zip into the same folder, so that Replication/ is next to README.md. After extraction, verify integrity before running any Stata program. From the folder containing the three downloaded files, run (Bash): sha256sum -c DEPOSIT_SHA256SUMS.txt cd Replication/ sha256sum -c _background/SHA256SUMS.txt 2. Make a separate working copy of Replication/ before running Stata, because the programs replace logs and outputs. In Stata 18, set the working directory to that copy’s Replication/3_results/ and run these commands in order (Stata): do replication/_submission.do do replication/_bloqueB.do do replication/_cierre_G4G5.do do replication/_cierre_auditoria_v2.do do replication/anexoB_CA3b_autocontenido.do For Table A.11, change the Stata working directory to the copy’s Replication/2_dataset/ and run (Stata): do _B1_mecanismo_anual.do The regenerated file is 2_dataset/output_B1/tableA11_stata.csv; compare it with the archived 3_results/output_results/tableA11_stata.csv. Inspect the Stata logs for omitted routines or captured failures. Bootstrap routines may require substantial computation. 3. For Python checks, return to Replication/ in the preserved original distribution. Run (Bash): python -m pip install -r 2_dataset/requirements.txt python _background/RUN_REPRODUCTION.py --out "../replication_checks_base" --reference-only The output folder must be new or empty and located outside Replication/. These checks compare results with the frozen table references and recombine archived bootstrap draws. See README.md for software dependencies, execution checks, panel reconstruction with --full, publication-figure export, and the documented precision limitation of the optional --figures mode. Use a separate output folder for each additional run. 4. Optional: to rebuild the country-specific mineral price index separately, change to Replication/1_index/ in the working copy and run (Bash): INDEX_REFRESH_SOURCES=0 bash run_1_index.sh This uses the bundled frozen source vintage. See 1_index/README_1_index.md and its manifests for R dependencies and output checks. This reconstruction route is separate from Python’s --full option.
Institutions
- Universidad de AntofagastaAntofagasta, Antofagasta
- Adolfo Ibáñez UniversitySantiago Metropolitan, Santiago