Description Usage Arguments Details Value Author(s) See Also Examples
Takes in a distribution and returns gini coefficient
1 | gini(y)
|
y |
an integer or numeric distribution |
To compute the gini coefficient of a distribution, gini
is the right
function. It uses trapezoidal approximation to calculate the area of the curve.
Lorenz curve is also plotted as output.
gini coefficient of the distribution
Akash Jain
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.