Description Usage Arguments Details Value Author(s) References Examples
Gini index for each column of a matrix.
1 | gini(x)
|
x |
a non-negative numeric matrix, or an object that can be coerced to such a matrix by |
The Gini coefficient or index is a measure of inequality or diversity.
It is zero if all the values of x
are equal.
It reaches a maximum value of 1/nrow(x)
when all values are zero except for one.
The Gini index is only interpretable for non-negative quantities.
It is not meaningful if x
contains negative values.
Numeric vector of length ncol(x)
.
Gordon Smyth
https://en.wikipedia.org/wiki/Gini_coefficient.
1 2 |
Loading required package: limma
[1] 0.1755556 0.2396226
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.