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

Reproducibility package for Climate Shocks and Their Effects on Food Security, Prices, and Agricultural Wages in Afghanistan

2025
Get Reproducibility Package
Reference ID
RR_AFG_2024_241
Author(s)
Tosin Gbadegesin, Bo Pieter Johannes Andrée
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Jan 24, 2025
Last modified
Feb 18, 2025
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    This study examines the effects of climate and weather shocks on Afghanistan's agricultural economy, with an emphasis on food security, prices, and wages. By utilizing a dynamical model and a unique data set that includes monthly global and local food prices, agricultural wages, unofficial exchange rates, and local climate data, the research provides econometric estimates of the impacts of droughts and floods. The findings reveal that both flooding and drought significantly increase food insecurity, directly and indirectly. Directly, these climatic shocks are linked to heightened risks of food insecurity in the following months, even when controlling for price and wage fluctuations. Indirectly, droughts and floods drive up food prices and depress agricultural wages, further exacerbating food insecurity. The study suggests that enhancing climate resilience in the agriculture sector could mitigate these risks, stabilize local food prices and wages, and strengthen food security and the broader agricultural economy. The results also show that price data effectively capture food security shocks from various non-economic sources, and can serve as a versatile monitoring tool in situations where detailed data on food security are unavailable.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/232/download/674/README.pdf
    Reproducibility package (data and code) for Climate Shocks and Their Effects on Food Security, Prices, and Agricultural Wages in Afghanistan
    Title
    Reproducibility package (data and code) for Climate Shocks and Their Effects on Food Security, Prices, and Agricultural Wages in Afghanistan
    Date
    2025-01
    Dependencies
    All dependencies are included in the folder "ado" for the Stata code and "afgenv" for the Python code.
    Notes
    Computational reproducibility verified by Development Impact (DIME) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Python
    Name
    Python
    Version
    3.11
    Stata MP
    Name
    Stata MP
    Version
    18

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 10 Enterprise, version 22H2
    • Processor: Intel(R) Xeon(R) Gold 6132 CPU @ 2.60GHz 2.60 GHz (2 processors)
    • Memory available: 128 GB
    • Software version: Python 3.11, Stata 18

    Technology requirements

    Runtime: 4 hours

    Reproduction instructions

    To successfully reproduce the analysis, follow these steps:

    1. The package uses only one file, 'AFG Data.xlsx,' which the authors have manually compiled from various data sources into a workbook with multiple sheets.
    2. Open the "AFG Analysis Study.ipynb" notebook and execute all code cells up to line 200 where AFG Stata Analysis Final.xlsx is being generated.
    3. Next, run the entire code in "AFG Paper Study.do" file in Stata which generated AFG Stata Analysis Result-09-27.csv file.
    4. Return to the "AFG Analysis Study.ipynb" notebook and execute the code from line 206 till the end.

    Data

    Datasets
    Rainfall data
    Name
    Rainfall data
    Note
    Source: Humanitarian Data Exchange Located at: AFG Data.xlsx, sheet: rainfall
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://data.humdata.org/dataset/afg-rainfall-subnational
    Normalized Difference Vegetation Index (NDVI) data
    Name
    Normalized Difference Vegetation Index (NDVI) data
    Note
    Source: Humanitarian Data Exchange Located at: AFG Data.xlsx, sheet: ndvi
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://data.humdata.org/dataset/afg-ndvi-subnational
    Subnational Administrative Boundaries data
    Name
    Subnational Administrative Boundaries data
    Note
    Source: Humanitarian Data Exchange Located at: AFG Data.xlsx, sheet: ADM2
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://data.humdata.org/dataset/cod-ab-afg.
    Exchange Rate data
    Name
    Exchange Rate data
    Note
    Source: World Bank Microdata Library Located at: Located at: AFG Data.xlsx, sheet: exchangeR
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://microdatalib.worldbank.org/index.php/catalog/14848
    Agricultural Wage data
    Name
    Agricultural Wage data
    Note
    Source: World Bank Microdata Library Located at: Located at: AFG Data.xlsx, sheet: exchangeR
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://microdata.worldbank.org/index.php/catalog/4484
    Global Food Price data
    Name
    Global Food Price data
    Note
    Source: World Bank Commodities Price Data Located at: Located at: AFG Data.xlsx, sheet: GFoodP
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://www.worldbank.org/en/research/commodity-markets.
    Domestic Food Price data
    Name
    Domestic Food Price data
    Note
    Source: World Bank Microdata Library Located at: Located at: AFG Data.xlsx, sheet: FoodP
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://microdatalib.worldbank.org/index.php/catalog/12415
    Fuel Price Data
    Name
    Fuel Price Data
    Note
    Source: World Bank Microdata Library Located at: Located at: AFG Data.xlsx, sheet: FuelP
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://microdatalib.worldbank.org/index.php/catalog/14847
    Food Insecurity data
    Name
    Food Insecurity data
    Note
    Source: Famine Early Warning Systems Network (FEWS NET) Located at: AFG Data.xlsx, sheet: fews
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://datacatalog.worldbank.org/int/search/dataset/0064614/harmonized-sub-national-food-security-data.
    Population, Area, Terrain Ruggedness, Cropland, and Pastureland data
    Name
    Population, Area, Terrain Ruggedness, Cropland, and Pastureland data
    Note
    Source: World Bank Microdata Library Located at: Located at: AFG Data.xlsx, sheet: foodcrises
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://microdata.worldbank.org/index.php/catalog/3811
    Integrated Food Security Phase Classification (IPC)
    Name
    Integrated Food Security Phase Classification (IPC)
    Note
    Source: Famine Early Warning Systems Network (FEWS NET) Located at: AFG Data.xlsx, sheet: fews
    Access policy
    Publicly available and included in the reproducibility package.
    Data URL
    https://datacatalog.worldbank.org/int/search/dataset/0064614/harmonized-sub-national-food-security-data.
    Data statement

    All data sources are publicly available and included in the reproducibility package.

    Description

    Output
    Climate Shocks and Their Effects on Food Security, Prices, and Agricultural Wages in Afghanistan
    Type
    Working paper
    Title
    Climate Shocks and Their Effects on Food Security, Prices, and Agricultural Wages in Afghanistan
    Description
    Policy Research Working Paper (PRWP) WPS10999
    URL
    http://documents.worldbank.org/curated/en/099903212122414533/IDU18ea67e261706514cf21842c1d1f2cfc6bedd
    DOI
    https://doi.org/10.1596/1813-9450-10999
    Authors
    Author Affiliation Email
    Tosin Gbadegesin World Bank tgbadegesin@worldbank.org
    Bo Pieter Johannes Andrée World Bank bandree@worldbank.org
    Date of production

    2025-01

    Scope and coverage

    Geographic locations
    Location Code
    Afghanistan AFG
    Keywords
    Food Security Crisis Climate Shocks Agriculture Food Prices
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    C01 Econometrics C0 Journal of Economic Literature
    C14 Semiparametric and Nonparametric Methods: General C1 Journal of Economic Literature
    C25 Discrete Regression and Qualitative Choice Models • Discrete Regressors • Proportions • Probabilities C2 Journal of Economic Literature
    C53 Forecasting and Prediction Methods • Simulation Methods C5 Journal of Economic Literature
    O10 General 01 Journal of Economic Literature

    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
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Tosin Kolajo Gbadegesin World Bank tgbadegesin@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

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

    2025-01-23

    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.