Analyses reproduced
The master program reproduces:
- Dataset and panel-structure validation
- ECOWAS cluster assignments
- Unordered country-dyad identifiers
- Period classifications
- Average external-hub exposure
- Descriptive statistics
- Full-sample cluster-pair results
- Period-specific results for:
- 1990–1999
- 2000–2009
- 2010–2019
- 2020–2023
- The manuscript’s 2,000-replication observation-level bootstrap
- A supplementary dyad-cluster bootstrap
- Year-fixed-effects diagnostic regression
- HC1 robust standard errors
- Coefficient confidence intervals and model-fit statistics
- Layer-correlation matrix
- Annual integration-depth trajectories
- ECOWAS-wide layer trajectories
- Centrality summaries
- Automated numerical and structural tests
Main code files
run_all.py, master replication program
src/analysis.py, complete reusable analytical functions
run_all.sh, one-command execution script
tests/test_replication.py, automated verification tests
requirements.txt, required Python packages
README.md, complete execution and result-mapping instructions
SHA256SUMS.txt, integrity checksums
Generated outputs
The package already contains the reproduced outputs:
complete_replication_results.xlsx
- Cluster-result tables
- Bootstrap estimates and confidence intervals
- Period-specific results
- Diagnostic regression results
- Full regression summary
- Descriptive statistics
- Layer correlations
- Centrality summaries
- Three publication-quality figures
- Machine-readable run manifest
Execution
After extracting the ZIP, run:
cd JEI_ECOWAS_Complete_Replication_Codes
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
./run_all.sh
Alternatively:
python run_all.py
--input input/jei_Abtrage_Data.xlsx
--output output
--seed 1293
--bootstrap-reps 2000
The replication was executed successfully against the supplied data. All four automated tests passed, including exact checks for the 3,570-observation balanced panel, 105 dyads, principal cluster means, reported coefficients, and diagnostic regression R2=0.750126R^2=0.750126. The ZIP archive also passed integrity testing.