Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / RR_UGA_2026_753
central

Reproducibility package for Scanning For Soil Health: Assessing The Accuracy And Scalability Of Innovations For In-Situ Soil Measurement

2026
Get Reproducibility Package
Reference ID
RR_UGA_2026_753
Author(s)
Sydney Gourlay, Karan S. Shakya, Leah E. M. Bevis
Metadata
JSON
Created on
Oct 01, 2026
Last modified
Oct 01, 2026
Page views
15
Downloads
10
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Overview

    Abstract

    Cost-effective and scalable soil testing tools can play an instrumental role in guiding agricultural decisions and policies, particularly in Sub-Saharan Africa, where declining soil fertility poses a serious threat to productivity. Laboratory tests of soil samples, which provide the most accurate measures of soil properties, remain costly and challenging to scale in the context of national surveys or programs. To test and validate alternative approaches to soil measurement, the World Bank launched the Uganda CLASS study. This paper evaluates the accuracy and scalability of three soil testing tools (the AgroCares Scanner, the Palintest kit, and the Sonkir pH meter) as well as two publicly available soil maps (iSDA and SoilGrids), against laboratory-based soil measurements conducted by CIFOR-ICRAF. While differences in soil parameter estimates may be expected to vary across testing methods, understanding the nature and magnitude of the divergence in estimates from those measured using established laboratory approaches is critical for practitioners and analysts seeking to leverage soil analyses to inform policy and program design. We find that the soil tools – except for the Sonkir pH meter, which performs poorly – provide only moderately adequate predictions of soil properties, and that both soil maps fail to capture sample variation. These findings highlight key trade-offs in accuracy, cost, and scalability, and offer practical guidance for scaling soil monitoring strategies in Uganda and similar contexts.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/catalog/664/download/1997/README.pdf
    Reproducibility package for Scanning For Soil Health: Assessing The Accuracy And Scalability Of Innovations For In-Situ Soil Measurement
    File name
    RR_UGA_2026_753
    Zip package
    RR_UGA_2026_753.zip
    Title
    Reproducibility package for Scanning For Soil Health: Assessing The Accuracy And Scalability Of Innovations For In-Situ Soil Measurement
    Date
    2026-09
    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.1
    Stata
    Name
    Stata
    Version
    19.0 MP

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise
    • Processor: INTEL(R) XEON(R) PLATINUM 8562Y+ 2.80 GHz (2 processors)
    • Memory available: 32.0 GB

    Technology requirements

    Run time: ~15 minutes

    Reproduction instructions

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

    1. Run the Package: Open the R project "Replication.Rproj" and restore the environment by running renv::restore(). Run 0_packages.R and then set the working directory on line 6 of 3-analysis.R to your local path and run the script.

    Note: The reproducibility package begins with intermediate data as some of the raw data is restricted. Reviewers virtually verified the construction of this intermediate data from the raw data. Some of the raw data is forthcoming on the World Bank Microdata Library following an embargo period.

    Data

    Datasets
    Uganda Climate, Land Area, and Soil Study (CLASS)
    Name
    Uganda Climate, Land Area, and Soil Study (CLASS)
    Note
    Raw input files (excluding confidential GPS coordinates) are forthcoming in the World Bank Microdata Library following an embargo period. Intermediate datasets (soil-complete_merge.dta, self-ranked.dta) are included in the reproducibility package.
    Access policy
    Data is forthcoming in the World Bank Microdata Library.
    Data URL
    Forthcoming at https://microdata.worldbank.org/
    Citation
    World Bank. 2024. "Uganda Climate, Land Area, and Soil Study (CLASS)" [dataset]. Forthcoming at https://microdata.worldbank.org/.
    SoilGrids 2.0 product
    Name
    SoilGrids 2.0 product
    Note
    Filename: soil-complete_merge.dta. The authors extracted values for relevant variables from the SoilGrids 2.0 product based on the plot-level coordinates captured in the Uganda CLASS study. Given the confidentiality of the GPS coordinates in the Uganda CLASS study, these extracted variables are included in the reproducibility package rather than including the coordinates directly. The extracted variables are included in the soil-complete_merge.dta data file, with the suffix “_soilgrid”. Additional citation: Poggio, L., L.M. de Sousa, N.H. Batjes, G.B.M. Heuvelink, B. Kempen, E. Ribeiro, and D. Rossiter. 2021. “SoilGrids 2.0: producing soil information for the globe with quantified spatial uncertainty.” SOIL 7:217–240.
    Access policy
    Data is publicly available and included in the reproducibility package in a processed form.
    License
    Creative Commons Attribution 4.0 (CC BY 4.0)
    License URL
    https://creativecommons.org/licenses/by/4.0/
    Data URL
    https://soilgrids.org/
    Citation
    ISRIC - World Soil Information. "SoilGrids 2.0 product" [dataset]. https://soilgrids.org/. Accessed March 2025.
    iSDAsoil
    Name
    iSDAsoil
    Note
    Filename: soil-complete_merge.dta. The authors extracted values for relevant variables from the SoilGrids 2.0 product based on the plot-level coordinates captured in the Uganda CLASS study. Given the confidentiality of the GPS coordinates in the Uganda CLASS study, these extracted variables are included in the reproducibility package rather than including the coordinates directly. The extracted variables are included in the soil-complete_merge.dta data file, with the suffix “_isda”.
    Access policy
    Data is publicly available and included in the reproducibility package in a processed form.
    License
    Creative Commons Attribution 4.0 (CC BY 4.0)
    License URL
    https://creativecommons.org/licenses/by/4.0/
    Data URL
    https://www.isda-africa.com/isdasoil/
    Citation
    Innovative Solutions for Decision Agriculture (iSDA). "iSDAsoil" [dataset]. https://www.isda-africa.com/isdasoil/. Accessed May 2025.
    Uganda - Subnational Administrative Boundaries, Admin Level 2 (Districts)
    Name
    Uganda - Subnational Administrative Boundaries, Admin Level 2 (Districts)
    Note
    Filename: uga_admbnda_adm2_ubos_20200824.shp.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Creative Commons Attribution for Intergovernmental Organisations (CC BY-IGO)
    License URL
    https://creativecommons.org/licenses/by/3.0/igo/
    Data URL
    https://data.humdata.org/dataset/cod-ab-uga
    Citation
    Uganda Bureau of Statistics with support from WHO. 2020. "Uganda - Subnational Administrative Boundaries, Admin Level 2 (Districts) " [dataset]. https://data.humdata.org/dataset/cod-ab-uga. Accessed April 2025.
    Lakes and Rivers: Uganda, 2005-2006
    Name
    Lakes and Rivers: Uganda, 2005-2006
    Note
    Filename: Uganda_lakes_rivers2005.shp.
    Access policy
    Data is publicly available and included in the reproducibility package.
    License
    Stanford Digital Repository Access Conditions
    License URL
    https://purl.stanford.edu/fh022bz4757
    Data URL
    https://earthworks.stanford.edu/catalog/stanford-fh022bz4757
    Citation
    Uganda Bureau of Statistics. 2012. "Lakes and Rivers: Uganda, 2005-2006" [dataset]. https://earthworks.stanford.edu/catalog/stanford-fh022bz4757. Accessed April 2025.
    Data statement

    Some data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file. Intermediate data is included in the reproducibility package and can be used to fully reproduce the results in the paper

    Description

    Output
    Scanning For Soil Health: Assessing The Accuracy And Scalability Of Innovations For In-Situ Soil Measurement
    Type
    Working Paper
    Title
    Scanning For Soil Health: Assessing The Accuracy And Scalability Of Innovations For In-Situ Soil Measurement
    Description
    Policy Research Working Paper (PRWP)
    Authors
    Author Affiliation Email
    Sydney Gourlay World Bank sgourlay@worldbank.org
    Karan S. Shakya Kenyon College shakya1@kenyon.edu
    Leah E. M. Bevis The Ohio State University bevis.16@osu.edu
    Date of production

    2026-09-24

    Scope and coverage

    Geographic locations
    Location Code
    Uganda UGA
    Keywords
    Soil Fertility Soil Tests Spectroscopy Soil Maps Uganda

    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
    Sydney Gourlay World Bank sgourlay@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-09-24

    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.