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

st: Calculating Gini


From   Rijo John <[email protected]>
To   Statalist <[email protected]>
Subject   st: Calculating Gini
Date   Thu, 2 Sep 2004 00:45:53 +0530 (IST)

Dear Stata users,

 I was trying to calculate the gini coefficients using the formula

ginidesc income [fw=weight], by(state)

This gives me the desired results. But if I want to estimate it
for one more subgroup within "state", say some thing like

ginidesc income [fw=weight], by(state district)

It gives me the error

invalid syntax
r(198);

Cant I specify more than one subgroup variable in the by statement of this
formula? Or is there any other easy way to compute only the gini
coefficients in STATA with such "by" options. I mean, without decomposing
into "within" and "between" groups, I want to estimate only the gini with
the "by" option. I had seen the command "inequal" but this doesnt have a
"by" option.

 Any help will be highly appreciated.

Thanks,

John.

*
*   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