Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_SSA_2026_693
PRWP

Reproducibility package for Convergence or Reversal? The Evolution of the Gender Gap in Education in Sub-Saharan Africa

2026
Get Reproducibility Package
Reference ID
RR_SSA_2026_693
Author(s)
Hardi Ahmed, Damien de Walque, Carolina Lopez
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Jul 15, 2026
Last modified
Jul 17, 2026
Page views
11
Downloads
3
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    Despite the rapid expansion of education in Sub-Saharan Africa, the evolution of gender gaps between generations remains poorly documented at the regional scale. Using harmonized DHS and MICS data from 35 countries covering approximately 736,000 individuals, complemented by PASEC test scores for 14 francophone countries, this study traces gender differences in educational attainment and learning outcomes by birth cohort. Gender gaps in attainment narrow substantially across cohorts, with the female disadvantage falling from about 13-15 percentage points in primary and secondary attendance and 1.9 years of schooling among those born in the 1970s to near zero and statistically insignificant for those born after 1999. Gender gaps in learning outcomes vary widely across countries, with no uniform direction of disadvantage in either reading or mathematics. Country-level analyses show that females exceed males in secondary attendance and years of education in most countries among those born after 1999, and that gender gaps in learning outcomes are similarly heterogeneous across countries. Convergence in some contexts coincides with stagnation or deterioration in boys' secondary attendance rather than uniform gains for girls. Aggregate trends mask pronounced heterogeneity, with larger gaps persisting among rural, poorer, and Muslim populations.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/609/download/1820/README.pdf
    Reproducibility package for Convergence or Reversal? The Evolution of the Gender Gap in Education in Sub-Saharan Africa
    File name
    RR_SSA_2026_693
    Zip package
    RR_SSA_2026_693.zip
    Title
    Reproducibility package for Convergence or Reversal? The Evolution of the Gender Gap in Education in Sub-Saharan Africa
    Date
    2026-07
    Dependencies
    R dependencies are listed in the file renv.lock. Stata dependencies are listed in the ado folder.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    R
    Name
    R
    Version
    4.5.3
    Stata
    Name
    Stata
    Version
    19.5 MP

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise
    • Processor: Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz, 2900 Mhz, 4 Core(s), 4 Logical Processor(s)
    • Memory available: 16.0 GB

    Technology requirements

    Run time: ~ 55 minutes

    Reproduction instructions

    To reproduce the findings in this paper, a replicator must:

    1. Secure Access to Data: Access the datasets not included in the package. See the Datasets section for more details.
    2. Run the Package:
    • Update the working directory in line 39-40 of the do-file Master.do, and run it.
    • Openthe R project "GenderGapReplication.Rproj", and restore the environment by running renv::restore() and following the prompts.
    • Open Master.R, and runthe code.

    Since not all the data is included, the package includes the results produced by replicators. These files can be used to review the results presented in the paper.

    Data

    Datasets
    Demographic and Health Surveys (DHS)
    Name
    Demographic and Health Surveys (DHS)
    Note
    Data accessed January 2024–February 2026. IR (Individual Recode, women aged 15–49) and MR (Men's Recode) files in Stata .DTA format for 27 countries, preserving the original DHS subfolder structure (e.g., data/datain/DHSMICS/dhs/benin/benin_dhs_2017/BJIR71DT/BJIR71FL.DTA). Countries covered: Angola, Benin, Burkina Faso, Burundi, Cameroon, Côte d'Ivoire, Gabon, Gambia, Ghana, Guinea, Kenya, Lesotho, Liberia, Madagascar, Malawi, Mali, Mauritania, Mozambique, Nigeria, Rwanda, Senegal, Sierra Leone, South Africa, Tanzania, Uganda, Zambia, Zimbabwe. To access, register at https://dhsprogram.com and submit a data use request selecting each country and the most recent available survey round. All the datasets used are listed in data_hash_report.
    Access policy
    Data access requires purchase or human approval and is not included in the reproducibility package.
    License
    DHS Program Terms of Use
    License URL
    https://dhsprogram.com/Data/terms-of-use.cfm
    Data URL
    https://dhsprogram.com
    Citation
    ICF. Various years. "Demographic and Health Surveys" [dataset]. Rockville, Maryland, USA. https://dhsprogram.com. Accessed January 2024–February 2026.
    Multiple Indicator Cluster Surveys (MICS6)
    Name
    Multiple Indicator Cluster Surveys (MICS6)
    Note
    Data accessed June 21, 2026. MICS6 SPSS (.sav) datasets for 8 countries, located under data/datain/DHSMICS/mics/MICS/, one subfolder per country preserving the original UNICEF folder names. Countries covered: Central African Republic, Chad, Comoros, Congo Dem. Rep., Eswatini, Guinea-Bissau, São Tomé and Príncipe, Togo. These countries are used because no later DHS survey is available for them. To access, register at https://mics.unicef.org and download the MICS6 dataset package for each country. Note: MICS data are provided in SPSS format (.sav); run Code/Stata/DataPrep/DHSMICS/mics/SPSSStata.do once to convert them to .dta format before running the main pipeline. All the datasets used are listed in data_hash_report.
    Access policy
    Data is publicly available but does not allow redistribution and is not included in the reproducibility package.
    License
    UNICEF Terms of Use
    License URL
    https://www.unicef.org/legal
    Data URL
    https://mics.unicef.org
    Citation
    UNICEF. Various years. "Multiple Indicator Cluster Surveys (MICS6)" [dataset]. New York, USA. https://mics.unicef.org. Accessed June 2026.
    PASEC Microdata (2014 and 2019)
    Name
    PASEC Microdata (2014 and 2019)
    Note
    Data accessed March 9, 2026. Four files covering two waves and two grade levels: PASEC2014_GRADE2.dta, PASEC2014_GRADE6.dta, PASEC2019_GRADE2.dta, PASEC2019_GRADE6.dta. Located in data/datain/Learning/Pasec/. Countries covered (14 Francophone SSA): Benin, Burkina Faso, Burundi, Cameroon, Congo, Côte d'Ivoire, Gabon, Guinea, Madagascar, Niger, Congo Dem. Rep., Senegal, Chad, Togo. Data are restricted and available on request; contact CONFEMEN directly at https://www.pasec.confemen.org.
    Access policy
    Data access was granted directly to the study authors by the data owners. It was obtained with a custom data license that does not allow for redistribution and it is not included in the reproducibility package.
    License
    Custom License (data sharing agreement with CONFEMEN)
    License URL
    https://www.pasec.confemen.org
    Data URL
    https://www.pasec.confemen.org
    Citation
    CONFEMEN. Various years. "PASEC: Programme d'Analyse des Systèmes Éducatifs de la CONFEMEN" [dataset]. Dakar, Senegal. https://www.pasec.confemen.org. Accessed March 2026.
    Harmonized Learning Outcomes (HLO) Database
    Name
    Harmonized Learning Outcomes (HLO) Database
    Note
    Data accessed March 8, 2026. Used for learning outcome analysis for all non-PASEC countries (27 countries after dropping the 14 PASEC countries). File locations: data/datain/Learning/WB/hlo_database.xlsx (raw database); data/datain/Learning/WB/learning.dta (Stata version used by the pipeline).
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Creative Commons Attribution 4.0 International (CC BY 4.0)
    License URL
    https://datacatalog.worldbank.org/int/public-licenses?fragment=cc
    Data URL
    https://datacatalog.worldbank.org/search/dataset/0038001/Harmonized-Learning-Outcomes--HLO--Database
    Citation
    Angrist, N., Djankov, S., Goldberg, P., and Patrinos, H. 2021. "Harmonized Learning Outcomes (HLO) Database" [dataset]. World Bank. https://datacatalog.worldbank.org. Accessed March 2026.
    Africa Boundaries Shapefile
    Name
    Africa Boundaries Shapefile
    Note
    Data accessed January 28, 2021. Required by all R map scripts. File locations: maps/Africa_Boundaries-shp/Africa_Boundaries.shp and associated .cpg, .dbf, .prj, .shx files.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Public
    License URL
    https://hub.arcgis.com/datasets/geoduck::africa-boundaries/about
    Data URL
    https://hub.arcgis.com/datasets/geoduck::africa-boundaries/about
    Citation
    Esri. 2021. "Africa Boundaries" [dataset]. ArcGIS Hub. https://hub.arcgis.com/datasets/geoduck::africa-boundaries/about. Accessed January 2021.
    World Development Indicators
    Name
    World Development Indicators
    Note
    Data accessed January–February 2026. Two sets of indicators used: (1) Population, total (SP.POP.TOTL), accessed February 8, 2026. File locations: data/datain/Other/population.dta; data/datain/Other/Country_ID.xlsx; data/datain/Learning/WB/75ef169b-ed2e-4a3d-96fa-85d60cd6e9b5_Data.csv; data/datain/Learning/WB/75ef169b-ed2e-4a3d-96fa-85d60cd6e9b5_Series - Metadata.csv. (2) Education duration indicators (SE.PRM.DURS, SE.SEC.DURS, SE.SEC.DURS.LO), accessed January 27, 2026, used to define primary and secondary cycle lengths by country in MICS. File location: data/datain/DHSMICS/mics/WBEDUC/WBEDUCDATA.dta.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Creative Commons Attribution 4.0 International (CC BY 4.0)
    License URL
    https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets
    Data URL
    https://databank.worldbank.org/source/world-development-indicators
    Citation
    World Bank. 2026. "World Development Indicators" [dataset]. https://databank.worldbank.org/source/world-development-indicators. Accessed January–February 2026
    Data statement

    Some data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file. (Limited-access/Restricted Data)

    Description

    Output
    Convergence or Reversal? The Evolution of the Gender Gap in Education in Sub-Saharan Africa
    Type
    Working Paper
    Title
    Convergence or Reversal? The Evolution of the Gender Gap in Education in Sub-Saharan Africa
    Description
    Policy Research Working Papers (PRWP)
    Authors
    Author Affiliation Email
    Hardi Ahmed World Bank hahmed13@worldbank.org
    Damien de Walque World Bank ddewalque@worldbank.org
    Carolina Lopez World Bank carolina_lopez@worldbank.org
    Date of production

    2026-07-15

    Scope and coverage

    Geographic locations
    Location Code
    Sub-Saharan Africa SSA
    Keywords
    Gender Gaps Education Cohort Analysis Sub-Saharan Africa
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    I21 Analysis of Education I2 Journal of Economic Literature (JEL)
    J16 Economics of Gender • Non-labor Discrimination J1 Journal of Economic Literature (JEL)
    O1 Economic Development O Journal of Economic Literature (JEL)

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    MIT License https://opensource.org/license/mit
    World Bank IGO Rider https://github.com/worldbank/metadata-editor/blob/main/WB-IGO-RIDER.md

    Contacts

    Contacts
    Name Affiliation Email
    Hardi Ahmed World Bank hahmed13@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DECDI World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2026-07-15

    Document version

    1

    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.