The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Wealth Index » Gini - Income Inequality
Re: Gini - Income Inequality [message #2910 is a reply to message #2908] Tue, 09 September 2014 10:29 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
You can use the drop command in the 5th line. So, if you wanted to produce an estimate just for urban areas, drop those areas that are not urban with
drop hv025!=1
If you wanted just the second governorate, for example, use
drop hv024!=2

I could probably make the code work to produce the Gini coefficient by background variables, but it would take rewriting the code in a different way - not using summarize and not using the locals - but it seems easy enough just to add in the drop to select the cases you want.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Construction
Next Topic: Error detected (Zimbabwe 2010-11)
Goto Forum:
  


Current Time: Sat Dec 21 11:51:13 Coordinated Universal Time 2024