powered by
gini(y)
gini
Lorenz curve is also plotted as output.
auc
# Distribution dist <- c(1, 4, 7, 15, 10) # Gini coefficient GINI <- gini(y = dist)
Run the code above in your browser using DataLab