This repository provides the code and data for the paper "Assessing the Impacts of Sufficient and Reliable Electricity in Low-Resource Healthcare Facilities".
This repository contains replication code for the analysis of sufficient and reliable electricity at healthcare facilities in the Democratic Republic of Congo. Due to data-sharing agreements, several raw datasets used in the analysis are restricted and are not included in this repository. All data processing and analysis steps are fully documented and reproducible for users with appropriate data access.
The repository is organized into three main directories: code/, data/, and output/.
The code/ directory contains all scripts required to clean data, construct analytical variables, and reproduce tables and figures. The scripts should be run in numerical order. 01_surveycleaning.do cleans the restricted facility survey data and constructs facility-level electricity access, reliability, and installation timing variables. 02_sniscleaning_surveymerge reads in raw SNIS (DHIS2) health facility data, cleans and aggregates outcomes, and merges these data with the cleaned survey data to produce the main analytical dataset. 03_spatialvars_processing processes publicly available spatial covariates (wealth, population density, distance to infrastructure) and outputs facility- or health-zone–level spatial measures. 04_analysis contains all statistical analysis code, including TMLE, OLS, IPW, and fixed-effects models, as well as all figures and tables reported in the paper.
The data/ directory is structured to mirror the inputs expected by the code. The data/survey/ folder should contain the raw restricted facility survey files used to measure electricity access, reliability, and infrastructure characteristics. The data/snis/ folder should contain the raw restricted SNIS (DHIS2) Excel files used to construct health outcomes and service delivery measures; these files are cleaned directly from raw format using the provided code. The data/sensor/ folder should contain restricted high-frequency power quality and reliability sensor data used in the within-facility and TWFE analyses. …