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

Reproducibility package for Developing A Measure Of Women’s Agency In Tunisia: Machine Learning And Generative Artificial Intelligence Approaches

2026
Get Reproducibility Package
Reference ID
RR_TUN_2026_705
DOI
https://doi.org/10.60572/y2ra-e708
Author(s)
Caroline Krafft, Leila Baghdadi, Roberta Gatti, Asif M. Islam, Maia Sieverding
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Aug 27, 2026
Last modified
Aug 27, 2026
Page views
6
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Citation
  • Overview

    Abstract

    Women’s agency – i.e. women’s ability to define and act upon their goals – is often the target of policies and programs, both as a means of reducing other gender inequities and as an end in and of itself. Measuring agency is complex and variation in how the concept is operationalized contributes to difficulty in synthesizing evidence on the topic. At the same time, standard measures that are used in large-scale survey programs are often treated as universal and compared across widely differing settings. This paper investigates the extent to which a single scale for women’s agency can be used across contexts. This study replicates, and builds upon, a recent study by Jayachandran et al. (2023) in India in which the authors used qualitative data and machine learning (ML) techniques to develop a five-question measure of women’s agency. This paper applies a variety of ML and, in a new contribution, generative artificial intelligence (GenAI) techniques to qualitative in-depth interviews and quantitative surveys from the same sample of women in Tunisia to identify what questions best measure overall agency. The main finding is that context matters. Overlap between the questions that performed well in India and in Tunisia is minimal. Thebest agency questions selected by ML from one context (e.g., a rural area) do not perform well in other contexts (e.g., an urban area). Researchers may need to generate and use context-specific agency measures to accurately measure agency. Although ML approaches perform well against a benchmark qualitative agency score, GenAI ones do not. Current, readily available GenAI tools do not appear to have the capabilities needed to make this exercise more effective or less time-consuming.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/639/download/1920/README.pdf
    Reproducibility package for Developing A Measure Of Women’s Agency In Tunisia: Machine Learning And Generative Artificial Intelligence Approaches
    File name
    RR_TUN_2026_705
    Zip package
    RR_TUN_2026_705.zip
    Title
    Reproducibility package for Developing A Measure Of Women’s Agency In Tunisia: Machine Learning And Generative Artificial Intelligence Approaches
    Date
    2026-08
    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.2
    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 5218 CPU @ 2.30GHz (2.30 GHz) (2 processors)
    • Memory available: 16 GB

    Technology requirements

    Run time ~ 39 hours

    Reproduction instructions

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

    1. Open the main do file TN WAM Root v12 REP update the directories on line 24, install the required packages and run the script through line 103
    2. Open the R script TN WAM Random Forest v13 CK, update the directory on line 15, install the required packages and run the script
    3. Return to Stata do file TN WAM Root v12 REP and run lines 112 up to the end.

    Data

    Datasets
    Tunisia Multiple Indicator Cluster Survey (MICS) 2023
    Name
    Tunisia Multiple Indicator Cluster Survey (MICS) 2023
    Note
    Data accessed December 19, 2024. The 2023 Tunisia MICS household roster data used for validation. Data is publicly available to registered users from the MICS UNICEF portal. Download the files and copy hl.sav (the household data) into the designated folder. File location: data/original data/hl.sav.
    Access policy
    Data is publicly available but does not allow redistribution and is not included in the reproducibility package.
    License
    Custom Licence
    Data URL
    https://mics.unicef.org/surveys
    Citation
    Institut National Statistique (INS) and UNICEF. 2023. "Tunisia Multiple Indicator Cluster Survey 2023" [dataset]. Tunis: Institut National Statistique (INS) and UNICEF. https://mics.unicef.org/surveys. Accessed December 2024.
    Women's Agency in Tunisia - Quantitative Survey and Manually Coded Qualitative Scores
    Name
    Women's Agency in Tunisia - Quantitative Survey and Manually Coded Qualitative Scores
    Note
    The main, anonymized data file serving as the starting point for the public replication. Contains quantitative survey data and manually coded qualitative scores. Additional data files are created through the do-files during replication (e.g., TN WAM PUBLIC analysis.dta, which is the main dataset used for analyses). File location: data/analysis data/TN WAM PUBLIC matched.dta.
    Access policy
    Data is forthcoming in the World Bank Microdata Library
    License
    Custom license
    Citation
    Krafft, C., Baghdadi, L., Gatti, R., Islam, A.M., Sieverding, M. Forthcoming. "Developing a Measure of Women's Agency in Tunisia: Machine Learning and Generative Artificial Intelligence Approaches" [dataset]. World Bank Policy Research Working Paper. Forthcoming to the World Bank Microdata Library.
    AI Scores - Claude Haiku 4.5 Generated Scores (April 17, 2026)
    Name
    AI Scores - Claude Haiku 4.5 Generated Scores (April 17, 2026)
    Note
    Generated using Claude Haiku 4.5 on April 17, 2026, using an institutional license through the web interface. File location: data/original data/LowAI_Claude_allscores_17Apr26.xlsx.
    Access policy
    Data is included in the package
    License
    Custom License
    Citation
    Authors' compilation. 2026. "AI Scores - Claude Haiku 4.5 Generated Scores" [dataset]. Generated on April 17, 2026.
    AI Domains - Claude Haiku 4.5 Generated Domain Scores (April 20, 2026)
    Name
    AI Domains - Claude Haiku 4.5 Generated Domain Scores (April 20, 2026)
    Note
    Generated using Claude Haiku 4.5 on April 20, 2026, using an institutional license through the web interface. File location: data/original data/Low-mid AI_Claude_all scores_20Apr26.xlsx.
    Access policy
    Data is included in the package
    License
    Custom License
    Citation
    Authors' compilation. 2026. "AI Domains - Claude Haiku 4.5 Generated Domain Scores" [dataset]. Generated on April 20, 2026
    Tunisia WAM Survey Variable Text
    Name
    Tunisia WAM Survey Variable Text
    Note
    Contains text for the questions asked in the Women's Agency in Tunisia survey. Author-compiled auxiliary file included in the replication package. File location: data/original data/TN WAM variable text.xlsx.
    Access policy
    Data is included in the package
    License
    Custom License
    Citation
    Authors' compilation. 2026. "Tunisia WAM Survey Variable Text" [dataset]. Text for questions asked in the Women's Agency in Tunisia survey.
    AI Text-Only Questions Dataset
    Name
    AI Text-Only Questions Dataset
    Note
    Contains questions created by two AI methods using text generation. The AI qualitative questions portion was generated using NotebookLM (Google Gemini 3) via a web interface with an institutional license on March 10, 2026. The AI generated questions portion was produced using Google Gemini 3 via a web interface on March 10, 2026. File location: data/original data/AI text only.xlsx.
    Access policy
    Data is included in the package
    License
    Custom License
    Citation
    Authors' compilation. 2026. "AI Text-Only Questions Dataset" [dataset]. Generated using NotebookLM (Google Gemini 3) and Google Gemini 3 via web interface with institutional license, Generated on March 10, 2026.
    Jayachandran et al. (2023) - Using machine learning and qualitative interviews to design a five-question survey module for women’s agency
    Name
    Jayachandran et al. (2023) - Using machine learning and qualitative interviews to design a five-question survey module for women’s agency
    Note
    Data accessed from the paper available at https://doi.org/10.1016/j.worlddev.2022.106076. Contains variables selected by the Jayachandran et al. (2023) paper "Using machine learning and qualitative interviews to design a five-question survey module for women’s agency", used in the Women's Agency in Tunisia study. File location: data/original data/JBC.dta.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Open Access
    License URL
    https://www.sciencedirect.com/journal/information-and-organization/publish/open-access-options
    Data URL
    https://doi.org/10.1016/j.worlddev.2022.106076
    Citation
    Jayachandran, S., Biradavolu, M., and Cooper, J. 2023. "Using Machine Learning and Qualitative Interviews to Design a Five-Question Women's Agency Index" [dataset]. World Development. https://doi.org/10.1016/j.worlddev.2022.106076.
    Data statement

    Some data is not yet publicly available but is expected to be made available through the World Bank Microdata Library in the future

    Description

    Output
    Developing A Measure Of Women’s Agency In Tunisia: Machine Learning And Generative Artificial Intelligence Approaches
    Type
    Working Paper
    Title
    Developing A Measure Of Women’s Agency In Tunisia: Machine Learning And Generative Artificial Intelligence Approaches
    Description
    Policy Research Working Papers (PRWP)
    Authors
    Author Affiliation Email
    Caroline Krafft Humphrey School of Public Affairs, University of Minnesota kraff004@umn.edu
    Leila Baghdadi World Bank lbaghdadi@worldbank.org
    Roberta Gatti World Bank rgatti@worldbank.org
    Asif M. Islam World Bank aislam@worldbank.org
    Maia Sieverding World Bank msieverding@worldbank.org
    Date of production

    2026-08-21

    Scope and coverage

    Geographic locations
    Location Code
    Tunisia TUN
    Keywords
    Gender Agency Empowerment Qualitative Methods Machine Learning Artificial Intelligence
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    J16 Economics of Gender • Non-labor Discrimination J1 Journal of Economic Literature (JEL)
    C81 Methodology for Collecting, Estimating, and Organizing Microeconomic Data • Data Access C8 Journal of Economic Literature (JEL)
    C83 Survey Methods • Sampling Methods C8 Journal of Economic Literature (JEL)
    C52 Model Evaluation, Validation, and Selection C5 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
    Caroline Krafft Humphrey School of Public Affairs, University of Minnesota kraff004@umn.edu
    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-08-21

    Document version

    1

    Citation

    Citation
    loading, please wait...
    Citation format
    Export citation: RIS | BibTeX | Plain text
    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.