Hello Everyone,
I have a population-level dataset that breaks down the proportion of income share by various sociodemographic variables (age, gender, and ethnicity) and I would like to calculate the GINI coefficient to compare pre- and post-COVID19 pandemic to check whether the inequity gap has widened.
I know Stata doesn't have its own command to calculate the Gini coefficient and I looked into the various users' commands, but none seem to match my dataset specifications: the command glcurve can plot the Lorenz curves, but does not provide the Gini coefficient, and the command lorenz can only be used with individual-level data, etc...
Any advice on how I could get the Gini coefficient for population-level data?
I'll take any help/suggestions!
Thank you,
Flav
I have a population-level dataset that breaks down the proportion of income share by various sociodemographic variables (age, gender, and ethnicity) and I would like to calculate the GINI coefficient to compare pre- and post-COVID19 pandemic to check whether the inequity gap has widened.
I know Stata doesn't have its own command to calculate the Gini coefficient and I looked into the various users' commands, but none seem to match my dataset specifications: the command glcurve can plot the Lorenz curves, but does not provide the Gini coefficient, and the command lorenz can only be used with individual-level data, etc...
Any advice on how I could get the Gini coefficient for population-level data?
I'll take any help/suggestions!
Thank you,
Flav
Comment