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/