Replication data and code for “Territorial solar-inclusion gaps: Registered electricity assistance and distributed photovoltaic deployment in Brazil, 2018–2023”
Description
This dataset provides the aggregate research inputs, Python code, reference results and verification documentation supporting the revised manuscript “Territorial solar-inclusion gaps: Registered electricity assistance and distributed photovoltaic deployment in Brazil, 2018–2023”. The municipality-month panel covers 5,570 Brazilian municipalities from January 2018 to December 2023, comprising 401,040 observations before analytical restrictions. The principal estimation sample contains 387,066 observations across 5,567 municipalities. Variables describe distributed photovoltaic deployment, published Social Electricity Tariff (TSEE) record intensity, electricity tariffs, supply reliability, solar resources and municipal socioeconomic conditions. TSEE intensity counts distinct complete published administrative records per 1,000 inhabitants; it does not identify independently verified unique households. The package includes the current master panel in Parquet and compressed CSV formats, a data dictionary, source inventories, analysis scripts, reference tables, verification reports and English instructions for execution locally or in Google Colab. The computational workflow completed 26 stages and passed 566 numerical comparisons. The standard workflow reconstructs the analytical panel from packaged inputs, estimates the statistical models and reproduces the documented sensitivity analyses and territorial classifications. A separate optional workflow audits the raw TSEE source editions. Individual TSEE records are not redistributed. Some inputs are preserved municipal or system-level aggregates. The package therefore does not reconstruct every historical primary-source collection. Source versions, transformations and verification boundaries are documented within the release. Licensing: The CC BY 4.0 designation applies only to the authors’ original documentation. It does not apply to the databases, source materials or software included in this deposit. The TSEE-derived database and its adapted versions remain licensed under ODbL 1.0. Author-developed code is licensed under the MIT License. Other third-party materials retain their applicable source terms. See LICENSES.md within the replication package for license and attribution notices.
Files
Steps to reproduce
1. Download ERSS_Replication_Package_v2_English.zip, its .sha256 checksum file and REPRODUCE_IN_COLAB.ipynb. 2. Place the ZIP and checksum file together in a folder in your own Google Drive. 3. Open REPRODUCE_IN_COLAB.ipynb in Google Colab, enter the path to your copy of the ZIP and run the cells in order. The notebook checks archive integrity, extracts the package, installs the declared dependencies and executes the reproduction workflow. 4. Inspect the generated execution logs and verification reports. The reference computational run completed 26 stages and passed 566 numerical comparisons. The notebook saves the reproduction evidence to your Drive. 5. For local execution, follow README_REPLICATION.md. Consult docs/MASTER_DATA_GUIDE.md for the master panel, docs/TABLE_FIGURE_MAP.csv for the correspondence with manuscript outputs, and VERIFICATION_SUMMARY.md for verification scope and limitations. The optional raw TSEE source audit is documented separately in the README.