Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What kinds of Commands should I use for the exact Gini coefficient? (inequal7, ineqdeco and ainequal)

    Hello, all!

    What kinds of Commands should I use for the exact Gini coefficient? (inequal7, ineqdeco and ainequal)

    What is the difference in Gini coefficient between the ineqdeco and other commands?

    Thank you in advance for your help and advice.
    Attached Files
    Last edited by Changyon Han; 09 Jun 2025, 12:25.

  • #2
    Files Attached

    Click image for larger version

Name:	250609 DATASET.png
Views:	1
Size:	6.2 KB
ID:	1778667

    Click image for larger version

Name:	GINI_by ainequal.png
Views:	1
Size:	9.7 KB
ID:	1778668

    Click image for larger version

Name:	GINI_by ineqdeco.png
Views:	1
Size:	35.6 KB
ID:	1778669

    Click image for larger version

Name:	GINI_by inequal7.png
Views:	1
Size:	52.5 KB
ID:	1778670

    Comment


    • #3
      Be aware that different inequality programs may use different formulae, and only some use the correct approach to dealing with ties in the data. There are different treatments of zero values too. You do not provide sufficient information for us to assess definitively whether these points are the issue here, and I refuse to open your attachments. Please READ THE FORUM FAQ! That tells you how to report Stata commands and output, and to provide sample data using -dataex-.

      I suspect the different treatment of zero values is one of the issues here -- reread your output carefully. (If you rerun the calculation with -ineqdec0-, you may get the same answer as -inequal7- and -ainequal-.)

      As author of -ineqdeco- and -ineqdec0- (both on SSC), I have skin in this game, and will assert that their calculations are correct. Years of user use attest to this. Moreover, the calculations provide answers the same as the most up-to-date program for inequality calculations by the master programmer, Ben Jann, namely -dtstat- (SSC).

      Comment

      Working...
      X