gini | R Documentation |
Compute the normalized Gini heterogeneity index for a given discrete probability distribution.
gini(prob)
prob |
Vector of probability distribution or relative frequencies |
laakso
prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24)
gini(prob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.