The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » problem with calculating the Alkire Foster multidimensional poverty index
problem with calculating the Alkire Foster multidimensional poverty index [message #14596] Sun, 22 April 2018 06:15 Go to next message
amlaksetegn is currently offline  amlaksetegn
Messages: 1
Registered: April 2018
Location: Ethiopia
Member
dear all,
I am working on a research that uses the DHS dataset and the alkire foster multidimensional poverty index. and I went well until the stage
I try to calculate the deprivation matrix and the deprivation count . when I typed in the 'egen ci=rsum(wg0_*)' command it resulted in error 'variable wg0_* not found'...
the problem I faced can be seen on the photos I attached herewith.
where can possibly be my problem? any help is appreciated. am happy to be contacted through amlaksetegn77@gmail.com



AmlaksetegnZenebe
Re: problem with calculating the Alkire Foster multidimensional poverty index [message #14629 is a reply to message #14596] Mon, 23 April 2018 20:45 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3203
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

We can't help you with the calculation of something outside of what we normally include in our reports. However, I think your question is not about this poverty index, as such, but about your Stata code. Specifically, you have a loop to construct some "wg0_*" variables but they do not come up in a "summarize wg0_*" command. Apparently the variables are not actually being constructed, either because your local varlist_pov is empty or because something is happening with quotation marks (`' or ""). I would put something inside the "foreacn..."loop, such as a summarize statement, to see what's happening within the loop. There's always a fair amount of trial and error in writing Stata programs, at least for me. Good luck

Previous Topic: Women's decision making power
Next Topic: Hypertension in Nepal
Goto Forum:
  


Current Time: Wed Dec 4 11:45:24 Coordinated Universal Time 2024