iqv: Indices of qualitative variation

View source: R/statpsych3.R

iqvR Documentation

Indices of qualitative variation

Description

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

Usage

iqv(f)

Arguments

f

vector of multinomial frequency counts

Value

Returns estimates of the Shannon, Berger, and Simpson indices

Examples

f <- c(10, 46, 15, 3)
iqv(f)

# Should return:
#   Simpson    Berger   Shannon
# 0.7367908 0.5045045       0.7
 


statpsych documentation built on Sept. 11, 2024, 7:42 p.m.