Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: retaining results from -ineqdeco-


From   Radu Ban <[email protected]>
To   [email protected]
Subject   Re: st: retaining results from -ineqdeco-
Date   Sat, 10 Jan 2004 11:03:15 -0800 (PST)

Dear Stephen,

Thanks so much for your advice. I have already fiddled
a bit with your ado-file, to add the within and
between GE measures (I found out myself that Gini
cannot be decomposed) to the saved results and now it
works like a charm. I'm using the following code.

egen villagenr = group(village);

gen village_gini = .
gen village_GE_0 = .
gen village_GE_w0 = .
gen village_GE_b0 = .

forvalues i = 1/527 {;
qui ineqdeco_mod hh_income if villagenr == `i',
by(caste);
replace village_gini = $S_gini if villagenr == `i';
replace village_GE_0 = $S_i0 if villagenr == `i';
replace village_GE_w0 = $S_GE_w0 if villagenr == `i';
replace village_GE_b0 = $S_GE_b0 if villagenr == `i';
}

where ineqdeco_mod is the modified version of ineqdeco
to also save the within and between GE in S_GE_w0/1/2
and S_GE_b0/1/2, respectively.

Thanks again for your reply.

-Radu

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index