Description Usage Arguments Details Value Examples
Compute the generalized Gini coefficient of the distribution
of y
with weights weights
. The parameter v
is the degree of risk aversion. By default, this parameter equals
2 which corresponds with the original Gini coefficient.
1 |
y |
numerical vector. |
weights |
numerical vector of the same length as |
v |
numerical scalar, degree of inequality aversion. It should be non-negative. |
Observations with zero weights are discarded before the computations begin.
A numeric scalar.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.