Stata Makes a Difference at the World Bank: Automated Poverty Analysis
Date
August 5, 2024
Company
StataCorp
The World Bank, a global leader in poverty reduction and sustainable development, sought a way to enhance the consistency and efficiency of its poverty analyses. By leveraging Stata’s advanced capabilities, the Bank developed tools like the Poverty Analysis Toolkit and ADePT, streamlining data processing and empowering researchers worldwide. These innovations have reduced analysis time, improved accuracy, and supported the World Bank’s mission to create impactful policy solutions.
The Organization
The World Bank, established in 1944, is an international institution dedicated to reducing poverty and fostering sustainable development. With 189 member countries, it provides financial support, technical expertise, and policy guidance to developing nations. Over the past 70 years, the World Bank has been at the forefront of addressing global economic challenges, offering innovative solutions to help over 100 countries achieve their development goals. Its commitment to using data-driven approaches to combat poverty has solidified its reputation as the world’s largest development institution.
Why the World Bank Chose Stata
The World Bank selected Stata for its robust statistical capabilities, flexibility, and programmability. Stata’s ability to handle complex analyses, coupled with its reproducibility features, made it an ideal choice. The Bank leveraged Stata’s ado-language, Mata, and plugin capabilities to build tools tailored to its needs. These features allowed the Bank to standardize workflows and enhance collaboration across its global network of researchers.
“The Toolkit greatly simplified the study of poverty at the World Bank by making available a standard set of Stata commands that researchers could use without having to reinvent the wheel.”
How the World Bank Utilizes Stata
Poverty Analysis Toolkit
To rectify and streamline the process of producing Poverty Assessments, Michael Lokshin, a lead economist in the Development Research Group at the World Bank, and his team, including Sergiy Radyakin and Zurab Sajaia, wrote a set of ado-files to implement various poverty measurement and analysis algorithms. These ado-files eventually became known as the Poverty Analysis Toolkit, which was widely used throughout the World Bank. The popular user-written command xml_tab, available from the Statistical Software Components (SSC) archive, also grew out of this work; xml_tab allows users to save Stata results in a format that is easily incorporated into Microsoft Excel spreadsheets.
The Poverty Analysis Toolkit includes several programs for dynamic policy analysis, including commands for plotting growth incidence curves; for plotting poverty incidence, deficit, and severity curves; and for analyzing the changes in poverty over time that are due to sectoral and population changes, and growth and redistribution.
The Toolkit greatly simplified the study of poverty at the World Bank by making available a standard set of Stata commands that researchers could use without having to reinvent the wheel. However, having a collection of programs instead of a single interface raised the learning curve for new researchers and limited researchers’ ability to produce standard output that could easily be included in reports.

ADePT
To make the Poverty Analysis Toolkit appeal to a wider audience, Lokshin and his team decided to combine the separate routines and to provide a single easy-to-use graphical interface. The Toolkit was renamed ADePT (which stands for Automated DEC Poverty Tables) and was quickly adopted by researchers around the world. In contrast to the Toolkit, the ADePT software, available at www.worldbank.org/adept/, is no longer a set of isolated components, but rather an integrated platform. Having an integrated platform allows the components to work together and simplifies the development of additional modules.
ADePT was developed using a combination of Stata’s ado-language, Mata, and dialog programming language, including over 150,000 lines of code. Certain routines were also developed in C++ and assembly language for maximum performance and used Stata’s plug-in facilities. One example of such a routine is the usespss command, which is available from the SSC archive; this command allows Stata users to read datasets in SPSS format.
Different modules within ADePT perform an array of statistical analyses, from simple cross-tabulations to estimation of simultaneous equations via maximum likelihood. Routines 2 allow one to estimate standard errors for many poverty and inequality measures. ADePT even makes running complex simulations easy.
To use early versions of ADePT, a researcher had to have Stata installed on his or her computer. This requirement posed an impediment to the widespread adoption of ADePT among users who did not already have Stata, especially in low-income and developing countries, where poverty research is most critical.
Numerics by Stata
In 2009, StataCorp announced Numerics by Stata, an embedded version of Stata that allows software developers to create applications in the language of their choice and to call on Numerics by Stata to perform the same types of computations and analyses that Stata users have come to depend on. Organizations use Numerics by Stata to create in-house applications with user interfaces that match their needs while still garnering all the analytic power of Stata. Those applications do not require that end-users have Stata installed on their machines.
In late 2009, the World Bank harnessed the power of Numerics by Stata and modified ADePT to work with it. As a result, researchers across the globe who did not own Stata and therefore could not use earlier versions of ADePT became able to download the new version from the Bank’s web site and begin using it immediately.
Stata’s Automation features allowed developers to create the user interface in C# using standard Windows components while continuing to perform statistical analyses using Stata’s programming language. This separation of the front end from the back end also allowed developers to create localized versions of ADePT. In addition to the English version, Bahasa Indonesian and Russian language versions are also available; work is underway to produce Spanish, Bulgarian, Romanian, Georgian, Portuguese, and other versions, as well. Having versions of ADePT in local languages makes adopting ADePT easier for researchers.

Localization is not limited to changing the language used in the interface. For example, in November 2009, the Indonesia Poverty Team collaborated with ADePT developers to customize the software so that analyses could be conducted at the kabupaten (district) level. That customization allowed researchers to answer policy questions specific to Indonesia using nationally representative household survey data.
Lokshin estimates that more than 1,500 registered users of ADePT currently exist. As the number of users continues to grow, more testing and refinement of the software occurs. For example, when difficult cases and exceptions are encountered by users, the ADePT team is able to modify the code to be more robust in response to those situations. The development team also uses an automated testing procedure to ensure that results from newer versions of the program agree with those from earlier versions.
ADePT reduces the time needed for data analysis, giving users more time to focus on results. Users can also simulate results to explore the possible outcomes from various policy alternatives such as cash transfers or subsidies. Most importantly, ADePT is easy to use and, with appropriate data preparation, improves accuracy and consistency.
“Stata’s Automation features allowed developers to create the user interface in C# using standard Windows components while continuing to perform statistical analyses using Stata’s programming language.”
The Impact
Stata’s tools transformed how the World Bank conducted poverty analyses. By standardizing workflows, the Bank reduced analysis time and improved accuracy and reproducibility. ADePT’s intuitive interface made advanced analyses more accessible, even for non-technical users. With over 1,500 registered users worldwide, the World Bank has accelerated its ability to generate actionable insights, refine policies, and support global efforts to reduce poverty.