Hi
I am trying to write a code for calculating the gini coefficients. Here is the code.
ginidesc income, by(regionid)
I am getting error when there are lot of values with income=0. I get an error that
Warning: income has 35 values = 0.Used in calculations
no observations
r(2000);
When i drop the 0 i get a gini coefficient(.73). I used an online calculator and it was giving a different gini(after including 0 values)(.81).
Can someone address this problem so that i can calculate gini with 0's included?
I am trying to write a code for calculating the gini coefficients. Here is the code.
ginidesc income, by(regionid)
I am getting error when there are lot of values with income=0. I get an error that
Warning: income has 35 values = 0.Used in calculations
no observations
r(2000);
When i drop the 0 i get a gini coefficient(.73). I used an online calculator and it was giving a different gini(after including 0 values)(.81).
Can someone address this problem so that i can calculate gini with 0's included?
Comment