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

Reproducibility package for Yield Gains from Balancing Fertilizer Use: Evidence from Eastern India

2025
Get Reproducibility Package
Reference ID
RR_IND_2025_295
Author(s)
Klaus Deininger, Julian Arteaga
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
May 13, 2025
Last modified
May 13, 2025
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    As with most agricultural inputs, the optimal use of fertilizer leverages the production complementarities between different types of nutrients. Wide variation in the intensity of nutrient application rates suggests there are potentially large productivity gains to be had from rebalancing fertilizer use across nutrient types even under a fixed expenditure budget. Using detailed information on a large sample of rice fields across three states of eastern India, this paper investigates if a more balanced use of fertilizer—measured as the ratio of Potash to Nitrogen applied to a field—can lead to higher yields and revenues. To address the endogeneity of fertilizer application decisions, we exploit the fact that nitrogen-based fertilizers demanded by Indian farmers are mostly produced domestically in a limited number of manufacturing plants, while all potash-based fertilizers must be imported by ship from abroad. Instrumenting for the ratio of K-to-N fertilizer applied on a field with the relative travel distances between farmer’s villages and both the nearest urea production plant and the nearest international port, we estimate the impact of more balanced fertilizer use on yields and revenues. We estimate that, at median levels of fertilizer use, and keeping the level of expenditure in fertilizers constant, rebalancing fertilizer application choices such that the K-to-N ratio of fertilizer is doubled would lead to a 4.8% increase in yield.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/275/download/823/README.pdf
    Reproducibility package for Yield Gains from Balancing Fertilizer Use: Evidence from Eastern India
    Title
    Reproducibility package for Yield Gains from Balancing Fertilizer Use: Evidence from Eastern India
    Date
    2025-04
    Dependencies
    All dependencies for the Stata code are included in the "ado" folder, for the R script in the "renv.lock" file, and for the Python code in the "requirements.txt" file.
    Notes
    Computational reproducibility verified by the Development Impact (DIME) Analytics team, World Bank.
    Software
    Stata
    Name
    Stata
    Version
    18 MP
    R
    Name
    R
    Version
    4.4
    Python
    Name
    Python
    Version
    3.11

    Reproducibility

    Technology environment

    Paper exhibits were reproduced in a computer with the following specifications:
    • OS: Windows 11 Enterprise, version 21H2
    • Processor: Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz, 16 Core(s)
    • Memory available: 15.7 GB
    • Software version: Stata 18, R 4.3, Python 3.11

    Technology requirements

    ~1 hour runtime

    Reproduction instructions

    To successfully reproduce the analysis, please follow these steps:

    1. Download the package and execute the scripts in the order indicated by their numbering and as specified in master dofile.

    2. In the master dofile, run the following:

      • _1_import_surveys.do
      • _2_build_nue_survey_onlyindia_cln.do
        (starting at line 42)
    3. Install the Python environment using the requirements.txt file, and run:

      • _3_import_shrug_village_boundaries.py
      • _4_assign_villagenames_to_plotcoords.py
    4. Run _5_build_nue_survey_onlyindia_villcoords.do
      (starting at line 64 of master dofile).

    5. Open FertBalance_replic.Rproj and run:

      • _6_compute_road_dist_nue_vill.r
    6. Run lines 80–107 of master dofile, which will execute:

      • _7_build_distance_ratio_nue_vill_iv.do
      • _8_build_nue_estsample_allvars.do
      • _9_import_ccs_surveys_tehsils.do
      • _10_build_ccs_tehsil_coords.do
    7. Open FertBalance_replic.Rproj and run:

      • _11_compute_road_dist_ccs_vill.r
    8. Run lines 123–163 of master to execute:

      • _12_build_road_distance_ratio_ccs_vill_iv.do
      • _13_build_ccs_estsample_allvars.do
      • _14_import_ccs_allstates_2006_20_plot_lvl.do
      • _15_build_ccs_allstates_2006_22_plot_hh_lvl.do
      • _16_build_crop_n_rates_touse.do
      • _17_import_national_npk_prod_cons_1950_2022.do
    9. Open FertBalance_replic.Rproj and run:

      • figure_1.R
    10. Run lines 181 to the end of master dofile.


    All outputs will be generated in the out folder.

    Data

    Datasets
    Farmer-level surveys (2017-2019)
    Name
    Farmer-level surveys (2017-2019)
    Note
    Source: Cereal Systems Initiative for South Asia (CSISA) Filenames: NUE_survey_dataset_v2.csv, NUE_survey_dataset.csv, Variable_Details_v2.csv, Variable_Details.csv.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    CC0 1.0
    License URL
    https://creativecommons.org/publicdomain/zero/1.0/
    Data URL
    https://hdl.handle.net/11529/10549105
    Crop Cultivation Surveys (CCS)
    Name
    Crop Cultivation Surveys (CCS)
    Note
    Source: Department of Agriculture in India Filenames: P2006-07.xls, P2007-08.xls, P2008-09.xls, P2009-10.xls, P2010-11.xls, P2011-12.xls, P2012-13.xls, P2013-14.xls, P2014-15.xls, P2015-16.xls, P2016-17.xls, P2017-18.xlsx, P2018-19.xlsx, P2019-20.xlsx, P2020-21.xlsx, P2021-22.xlsx, selected_villages_2011_14.xls, selected_villages_2014_17.xlsx, selected_villages_2017_20.xlsx, selected_villages_2020_23.xlsx Note: The URL mentioned below is only accessible through an Indian VPN connection
    Access policy
    Data is publicly available and included in the reproducibility package.
    Data URL
    https://eands.da.gov.in/Plot-Level-Summary-Data.htm
    Village-level Shapefiles and Administrative Codes
    Name
    Village-level Shapefiles and Administrative Codes
    Note
    Source: Socioeconomic high-resolution Rural-Urban Geographic Platform for India (SHRUG) Filenames: village_modified.cpg, village_modified.dbf, village_modified.prj, village_modified.shx, shrid_loc_names.dta, shrid1_shrid2_key.dta, shrid2_spatial_stats.dta, viirs_2023_7_5_500_ua_shrid2_key.dta.
    Access policy
    Data is publicly available and included in the reproducibility package.
    Location of all major international ports in India
    Name
    Location of all major international ports in India
    Note
    Source: Manual on Port Statistics (2015) Filenames: seaport location MANUAL 2015.pdf, major_port_locations.csv, major_port_locations.xlsx.
    Access policy
    Data is publicly available and included in the reproducibility package.
    Data URL
    https://shipmin.gov.in/sites/default/files/MANUAL%202015.pdf
    Location of all major urea manufacturing plants in India
    Name
    Location of all major urea manufacturing plants in India
    Note
    Source: Ministry of Chemicals and Fertilizers (Lok Sabha) Filenames: fertilizer_manufacturing_plants_location.csv, fertilizer_manufacturing_plants_location.xlsx, fertilizer_manufacturing_plants_location_ureaonly.csv.
    Access policy
    Data is publicly available and included in the reproducibility package.
    Data URL
    https://sansad.in/getFile/loksabhaquestions/annex/179/AU2172.pdf?source=pqals
    Minimum road distance between sample villages
    Name
    Minimum road distance between sample villages
    Note
    Source: Open Source Routing Machine (OSRM) Filenames: major_ports.cpg, major_ports.dbf, major_ports.prj, major_ports.qmd, major_ports.shp, major_ports.shx, route_plant_ccsvill.dbf, route_plant_ccsvill.prj, route_plant_ccsvill.shp, route_plant_ccsvill.shx, route_plant_nuevill.dbf, route_plant_nuevill.prj, route_plant_nuevill.shp, route_plant_nuevill.shx, route_ports_ccsvill.dbf, route_ports_ccsvill.prj, route_ports_ccsvill.shp, route_ports_ccsvill.shx, route_ports_nuevill.dbf, route_ports_nuevill.prj, route_ports_nuevill.shp, route_ports_nuevill.shx, urea_plants.cpg, urea_plants.dbf, urea_plants.prj, urea_plants.qmd, urea_plants.shp, urea_plants.shx, India_Country_Boundary.cpg, India_State_Boundary.dbf, India_Country_Boundary.dbf, India_State_Boundary.prj, India_Country_Boundary.prj, India_State_Boundary.sbn, India_Country_Boundary.sbn, India_State_Boundary.sbx, India_Country_Boundary.sbx, India_State_Boundary.shp, India_Country_Boundary.shp, India_State_Boundary.shp.xml, India_Country_Boundary.shp.xml, India_State_Boundary.shx, India_Country_Boundary.shx, India_State_Boundary.cpg.
    Access policy
    Data is publicly available and included in the reproducibility package.
    Data URL
    https://project-osrm.org/
    Fertilizer Application Rates
    Name
    Fertilizer Application Rates
    Note
    Source: International Crops Research Institute for the Semi-Arid Tropics (ICRISAT) Tata-Cornell Institute (TCI) District-Level Database (DLD) Filenames: crop-production-district_unapportioned.csv, fertilizer-consumption-district_until2016.csv, fertilizer-consumption-national.xlsx, fertilizer-consumption-state.xlsx, land-use-district_unapportioned.csv, land-utilization-national.xlsx.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Creative Commons Attribution 4.0 International license
    Data URL
    http://data.icrisat.org/dld/index.html
    Production and consumption of fertilizers
    Name
    Production and consumption of fertilizers
    Note
    Source: Fertilizer Association of India (FAI) Filenames: con-npk.xlsx prodn-np.xlsx
    Access policy
    Data is publicly available and included in the reproducibility package.
    Data URL
    https://www.faidelhi.org/statistics/statistical-database
    Baseline Survey data from Rejuvenating Watersheds for Agricultural Resilience through Innovative Development (REWARD)
    Name
    Baseline Survey data from Rejuvenating Watersheds for Agricultural Resilience through Innovative Development (REWARD)
    Note
    Source: Rejuvenating Watersheds for Agricultural Resilience through Innovative Development (REWARD) Filenames: reward_estimation_sample_allvars.dta
    Access policy
    Data is publicly available and included in the reproducibility package.
    Data URL
    https://rewardiiswc.in/about_reward.php
    Data statement

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

    Description

    Output
    Yield Gains from Balancing Fertilizer Use: Evidence from Eastern India
    Type
    Working Paper
    Title
    Yield Gains from Balancing Fertilizer Use: Evidence from Eastern India
    Authors
    Julian Arteaga, Klaus Deininger
    Description
    Policy Research Working Paper
    Authors
    Author Affiliation Email
    Klaus Deininger World Bank kdeininger@worldbank.org
    Julian Arteaga World Bank jgarteagav@gmail.com
    Date of production

    2025-04-25

    Scope and coverage

    Geographic locations
    Location Code
    India IND

    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
    Julian Arteaga World Bank jgarteagav@gmail.com
    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-03-18

    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.