Computes the Shannon, Berger, and Simpson indices of qualitative variation.

iqv(f)

Arguments

f

vector of multinomial frequency counts

Value

Returns estimates of the Shannon, Berger, and Simpson qualitative indices

Examples

f <- c(10, 46, 15, 3)
iqv(f)
#>        Simpson    Berger   Shannon
#> [1,] 0.7367908 0.5045045 0.7353931

# Should return:
#        Simpson    Berger   Shannon
# [1,] 0.7367908 0.5045045       0.7