04-18-2016 09:32 AM
I need help with programming the Atkinson Coefficient for in-eqaulity.
I couldn't find anything helpful in the internet, i have data which contains id number and income of each people.
I want the program to calculate the Atkinson coefficient, does somebody has a code of this?
Thank you for helping,
04-18-2016 11:00 AM
If you have IML you do nto need to use my macro
/* generate vector (of incomes) */
x <- c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261);
/* compute Gini coefficient */
/* compute Atkinson coefficient with parameter=0.5 */
ineq(x, parameter=0.5, type="Atkinson")
In response to another post the Whittaker W/M functions are also in R packages
04-18-2016 11:27 AM
Atkinson's inequality measure can be calculated using the formula, say
(yi/ybar)^.5 Atkinson, e=0.5
(yi)^(1/n) Atkinson, e=1
(yi/ybar)^(-1) Atkinson, e=2
where yi is the income of the each people,
ybar is the mean value of the income of all.
n is the number of people.
e is the weighting parameter.
04-19-2016 02:29 AM
04-19-2016 03:24 AM