iqv | R Documentation |
Computes the Shannon, Berger, and Simpson indices of qualitative variation.
iqv(f)
f |
vector of multinomial frequency counts |
Returns estimates of the Shannon, Berger, and Simpson indices
f <- c(10, 46, 15, 3)
iqv(f)
# Should return:
# Simpson Berger Shannon
# 0.7367908 0.5045045 0.7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.