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

st: RE: Calculating Gini


From   "Hulley, Benjamin (NIH/NCI)" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Calculating Gini
Date   Wed, 1 Sep 2004 15:23:27 -0400

John,

Assuming your districts aren't unique by state, this may help you:

. egen subgroup = group(state district), label
. ginidesc income [fw=weight], by(subgroup)

(Credit to Philip Ryan for pointing out egen group() to me)

Ben

*******************
NCI/DCEG/GEB
Room: EPS 7007
Tel: (301) 402-1622
Fax: (301) 402-4489
*
*   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