Gd: Genetic Evenness Index

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/Gd.R

Description

This function allows calculation of a measure of compositional evenness, e.g. for a community of species or a population of genotypes (genetic individuals). Specifically, the index of evenness gives a measure of the probability that when two individuals are drawn randomly from the community (population) these individuals are of differing type (species or genotype; Nei 1987).

Usage

1
Gd(obs,scrub=FALSE)

Arguments

obs

A vector of species numbers.

scrub

Controls the treatment of species with zero abundance in the input observation. If TRUE the input vector is truncated to omit zero values.

Details

Used within the H.sampler function.

Value

Returns the compositional evenness calculated from the sample.

Author(s)

Raj Whitlock

References

Nei M. 1987. Molecular Evolutionary Genetics. Columbia University Press, New York, p. 180.

See Also

H.sampler, Hs

Examples

1
2
x=rpois(25,10)
Gd(x)

Example output

[1] 0.9977153

DiversitySampler documentation built on May 30, 2017, 4:20 a.m.