The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Wealth Index » Wealth deciles
Re: Wealth deciles [message #12006 is a reply to message #11568] Sat, 18 March 2017 10:42 Go to previous message
Mercysh is currently offline  Mercysh
Messages: 35
Registered: April 2014
Member
Thank you for the response.

One more, please help me construct separate wealth variables for urban and rural areas to include in a regression model.
I have two wealth variables using the following code but do not work in a model:

gen weight=hv005*hv012
drop if weight==0

xtile wealth_rur=hv271 [fweight=weight] if hv025==2, nq(5)
xtile wealth_urb=hv271 [fweight=weight] if hv025==1, nq(5)

When I add the folowing code, I get one variable which seem to works for older surveys which did not account for urban-rural differences and to be unnecessary for those which already consider different assets for rural and urban areas:

gen wealth_quintile = wealth_rur
replace wealth_quintile = wealth_urb


Mercy

[Updated on: Sat, 18 March 2017 10:42]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: merging wealth index file for Turkey DHS 1993
Next Topic: Calculate wealth index for Bangladesh DHS 1999-00
Goto Forum:
  


Current Time: Sun Dec 22 22:24:59 Coordinated Universal Time 2024