Re: Wealth deciles [message #12006 is a reply to message #11568] |
Sat, 18 March 2017 10:42 |
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
|
|
|