Replication Data for: Electricity Trade as Insurance Against Hydropower Shocks: Evidence from African Power Pools

Published: 7 October 2026| Version 1 | DOI: 10.17632/vm48svjvph.1
Contributor:

Description

README.txt: Dataset Description Dataset Title: Replication Data for: Electricity Trade as Insurance Against Hydropower Shocks: Evidence from African Power Pools Author: Geoffrey Aori Mabea (RAERESA / COMESA; University of Zambia) Contact: geoffrey.mabea@gmail.com Temporal Coverage: 2005 – 2022 Geographic Coverage: 32 hydro-reliant African nations 1. OVERVIEW OF THE DATASET This repository contains the complete cross-country panel data, data-cleaning logs, and processing scripts required to replicate the empirical accounting-identity regressions, wild cluster bootstraps, and local projections presented in the main manuscript. The data measures how year-on-year domestic hydropower generation shocks are physically absorbed through four key utility margins: cross-border imports, fossil-fuel generation backup, alternative generation sources, and lost end-user consumption. 2. FILE INVENTORY AND STRUCTURE * README.txt: This documentation file. * Mabea2026_AfricaElectricity_RawData.csv: Primary compilation of raw annual physical electricity accounts (in TWh) and carbon intensity indicators (g CO2/kWh) extracted from Our World in Data (Ember/Energy Institute). * Mabea2026_AccountingIdentities_Processed.csv: Finalized estimation dataset containing the first-differenced, normalized operational variables calculated via equation (8) in the manuscript. * Mabea2026_SAPP_Analysis_Code.do: Fully commented master script executing equations (10) through (17). 3. CORE VARIABLE DICTIONARY (TABULAR DATA KEY) All primary operational energy streams are normalized by dividing the raw annual change by the total system generation of the preceding year (G_i,t-1), scaled by 100: - country_iso [String]: ISO 3166-1 Alpha-3 country identification code (e.g., ZMB, ZWE, MOZ). - year [Numeric]: Calendar year of observation (2005–2022). - d_h (Delta h) [Numeric, %]: Normalized annual change in domestic hydropower generation. - d_e (Delta e) [Numeric, %]: Normalized annual change in domestic electricity consumption. - d_ni (Delta ni) [Numeric, %]: Normalized annual change in cross-border net imports. - d_f (Delta f) [Numeric, %]: Normalized annual change in fossil-fuel thermal generation. - d_r (Delta r) [Numeric, %]: Normalized annual change in other alternative generation sources. - sapp_op (I_i) [Binary, 0/1]: Treatment indicator for electrically interconnected SAPP operating members. - sapp_nonop (N_i) [Binary, 0/1]: Placebo indicator for non-operating pool members lacking physical links. - ln_co2_int [Numeric, Log]: Natural log of the domestic electricity generation carbon intensity. 4. METHODOLOGICAL SUMMARY AND SOFTWARE REQUIREMENTS * Data Processing: Missing structural data or carried-forward historical approximations are dropped or trimmed according to the operational thresholds defined in Section 4.2 of the manuscript. * Dependencies: The replication code is built for Stata. Execution of the multi-cluster validation requires the external user-written packages

Files

Steps to reproduce

1. Download repository data/analysis_panel.csv. 2. Install R packages: fixest, fwildclusterboot. 3. Open and run the replication script Mabea2026_Master_Pipeline.R in your R console. 4. The script cleans data, runs regressions (Tables 2-5), and outputs wild bootstrap p-values.

Institutions

Categories

Political Issues of Energy Policy, Energy Demand, Climate Change, Economic Integration

Licence