Decile Share using Wealth Index Factor by Urban and Rural (Stata) [message #2523] |
Mon, 07 July 2014 07:47 |
smileyc
Messages: 14 Registered: June 2014
|
Member |
|
|
Hi,
I just want to seek your advice whether is it advisable to generate decile shares by urban-rural using the wealth index factor. I have read some concerns of using the wealth index (which is based on household assets that urban households commonly have)
I'm trying to use the xtile decile, please see below my syntax: (also whether my syntax below is correct, appreciate your advice)
g residence=1 if hv025==1
replace residence=0 if hv025==2
label define residence 1 "Urban" 0 "Rural"
label values residence residence
xtile decile_urban = hv271 if residence==1 [weight=weight], nq(10)
xtile decile_rural = hv271 if residence==0 [weight=weight], nq(10)
Thank you.
|
|
|