Hello to all.
Recently I needed to compute the Gini coefficient in SPSS. When I found,
that there is no possibility to get it via DESCRIPTIVES or FREQ procedure I
tried to write a macro which would compute it for me.
Unfortunately I don't have much experience in macro writing, I don't know
how
I haven't used the Gini coefficient in the last 25 years, so I can't give more
complete advice. However, from your description, you can can get such a sum
without a macro by
RANK VARIABLE= income (d) /rank into r_income.
* to get the rank for each case.
WEIGHT BY r_income.
* to turn on