Home — PIP introduction — Visualizations examples — Help file
Estimating Global Poverty in Stata
pip Stata command allows Stata users to compute poverty and inequality indicators for more than 160 countries and regions included in the World Bank’s database of household surveys. It has the same functionality as the PIP website. PIP is a computational tool that allows users to estimate poverty rates for regions, sets of countries or individual countries, over time and at any poverty line.
PIP is managed jointly by the Data and Research Groups in the World Bank’s Development Economics Division. It draws heavily upon a strong collaboration with the Poverty and Equity Global Practice, which is responsible for the gathering and harmonization of the underlying survey data.
PIP reports the following measures at the chosen poverty line:
- Headcount ratio
- Poverty Gap
- Squared Poverty Gap
- Watts index
It also reports these inequality measures:
- Gini index
- Mean log deviation
- Decile shares
The underlying welfare aggregate is per capita household income or consumption expressed in 2017 PPP USD. Poverty lines are expressed in daily amounts, while means and medians are monthly.
For more information on the definition of the indicators, click here For more information on the methodology, click here
This note provides more detail on the Stata command and summarizes key features of the PIP methodology
pipr R package click here
ssc install pip
We recommend installing the
github Stata command by E. F. Haghish
net install github, from("https://haghish.github.io/github/") github install worldbank/pip
If you get an error similar to the image below, it might be the case that downloading from Github is not available in your computer due to firewall restrictions. Try disconnecting from the VPN and installing
If none of the options above worked, you could still install pip manually following these steps,
- In the GitHub repository of the
pipStata command, click on the green icon “Clone or Download” at the top.
- Download the package as a zip file.
- Extract the files with extension
.sthlponly, and place them in the directory
pip is not working correctly, try the following steps in order
pipby typing this
github uninstall pip
- Execute the following and see if
pipis still installed somewhere in your computer
If it is installed, delete all the
pipfiles from wherever they are in your computer until the command above returns error. The idea is to leave no trace of
pipin your computer.
pipagain with the following code and check the version number. It should be the same as the most recent release
github install worldbank/pip which pip
Try to run it again and see if
- If it is still failing, please run the code below–making sure your replace the commented line–and send the test.log file to firstname.lastname@example.org
log using "test.log", name(test) text replace // this is in your cd cret list clear all which pip set tracedepth 4 set traceexpand on set traceindent on set tracenumber on set trace on // Insert here the pip directive that is failing set trace off