Learn R Programming

OnomasticDiversity (version 0.1)

fIsonymy: Calculate the Isonymy within a region

Description

This function obtains the isonymy within a region \(i\) which has an associated collection \(S_i\) of surnames.

Usage

fIsonymy(x, category)

Value

A dataframe containing the following components:

category

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

x

the value of isonymy.

Arguments

x

a vector of relative frequency squared for each surname.

category

represents the grouping element, for example the regions.

Author

Maria Jose Ginzo Villamayor

Details

Isonymy is defined as \(I_i=\sum\limits_{k\in S_i}p_{ki}^2\) where \(p_{ki}\) denotes the relative frequency of surname \(k\) in region \(i\).

In diversity context, \(p_{ki}\) denotes the relative frequency of species \(k\) in community (\(\approx\) region onomastic context) \(i\) and \(S_i\) are all species in community \(i\).

References

Crow J.F. and Mange A.P., (1965). Measurement of inbreeding from the frequency of marriages between persons of the same surname. Eugenics Quarterly, 12(4), 199--203.

Barrai, I., Scapoli, C., Beretta, M., Nesti, C., Mamolini, E., and Rodriguez--Larralde, A., (1996). Isonymy and the genetic structure of Switzerland. I: The distributions of surnames. Annals of Human Biology, 23, 431--455.

See Also

fIsonymyAll.

Examples

Run this code
data(surnamesgal14)
surnamesgal14$pki2 <- (surnamesgal14$number / surnamesgal14$population)^2
result = fIsonymy(surnamesgal14$pki2, surnamesgal14$namuni)
result

data(namesmengal16)
namesmengal16$pki2 <- (namesmengal16$number / namesmengal16$population)^2
result = fIsonymy(namesmengal16$pki2, namesmengal16$namuni)
result

data(nameswomengal16)
nameswomengal16$pki2 <- (nameswomengal16$number / nameswomengal16$population)^2
result = fIsonymy(nameswomengal16$pki2, nameswomengal16$namuni)
result

Run the code above in your browser using DataLab