fSimpsonInf {OnomasticDiversity}R Documentation

Calculate the Simpson's diversity index and the inverse

Description

This function obtains the Simpson's diversity index and the inverse introduced by Edward Hugh Simpson. It is a method for quantifying species biodiversity that can be adapted to the context of onomastics.

Usage

fSimpsonInf(x, k, n, location)

Arguments

x

dataframe of the data values for each species.

k

name of a variable which represents absolute frequency for each species.

n

name of a variable which represents total number of individuals.

location

represents the grouping element.

Details

For a community ii, the Simpson (when NiN_i is not finite, data are assumed to come from a sample of size NiN_i) diversity index is defined by DSi=kSinki(nki1)ni(ni1)D^{\prime}_{S_i} = \sum \limits_{k\in S_i} \frac{n_{ki}(n_{ki}-1)}{n_i(n_i-1)}, where nkin_{ki} represents the number of individuals of species kk in a sample (in the total is NkiN_{ki}) and SiS_i represents all species at the community, species richness.

In onomastic context, nkin_{ki} (Nki\approx N_{ki}) denotes the absolute frequency of surname kk in region ii and SiS_i are all surnames in region (\approx community diversity context) ii.

Value

A dataframe containing the following components:

location

represents the grouping element, for example the communities / regions.

simpson

the value of the Simpson's Diversity Index.

Author(s)

Maria Jose Ginzo Villamayor

References

Simpson (1949) Measurement of diversity. Nature, 163.

See Also

fMargalef, fMenhinick, fPielou, fShannon, fSheldon, fSimpson, fGeneralisedMean, fGeometricMean, fHeip.

Examples

data(surnamesgal14)
result = fSimpsonInf (x= surnamesgal14, k="number",
n="population", location  = "muni" )
result

data(namesmengal16)
result = fSimpsonInf (x= namesmengal16, k="number",
n="population", location  = "muni" )
result

data(nameswomengal16)
result = fSimpsonInf (x= nameswomengal16, k="number",
n="population", location  = "muni" )
result

[Package OnomasticDiversity version 0.1 Index]