Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: Grouping income variables- RECODE COMMAND


From   "Laurence (DataTreat Gmail)" <[email protected]>
To   <[email protected]>
Subject   RE: st: Grouping income variables- RECODE COMMAND
Date   Fri, 7 Feb 2014 10:18:49 +1030

On Tue, 4 Feb 2014  "Antonio Rodriguez Andres" <[email protected]>
wrote:

>Dear Maarten
>Thank you very much for your feedback. What I did is the following
>http://www3.nd.edu/~rwilliam/stats2/l12.pdf
>>
*Create income midpoints
recode hinctnt (1=900) (2=2700) (3=4800) (4=9000) (5=15000) (6=21000)
(7=27000) (8= 33000) (9=48000) (10=75000) (11=105000) (12= 175200) ,
gen(hincome) replace hincome=. if hinctnt==77 | hinctnt==88 |  hinctnt==99 
gen lhincome=log(hincome)
**dummy indicator for missing income values
gen xhincome=hincome
replace xhincome= 29304.99 if missing(hincome) gen md=0 replace md=1 if
xhincome! =hincome
xtmixed dprt age age2 gender married separated divorced widowed eduyrs
ichldhm md lhincome ihealth iuemp5yr iuemp12m rgdp06[pw=dweight] if md==0 ||
cntry: gender , mle
>>

Following from other comments re problems with mid-points, further, I don't
understand the purpose of taking the logs of the mid-points (log(1)
log(2)....)?
Regards
Laurence Lester
Adelaide, SA


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index