simpson {untb}R Documentation

Simpson's diversity index

Description

Simpson's diversity index

Usage

simpson(x)

Arguments

x Ecosystem vector; is coerced to class count

Details

Returns the Simpson index D: the probability that two randomly sampled individuals belonging to different species

Note

The code for setting the names is a dog's breakfast

Author(s)

Robin K. S. Hankin

References

Hubbell

See Also

preston

Examples

data(butterflies)

D <- simpson(butterflies)
theta <- optimal.prob(butterflies)*2*no.of.ind(butterflies)

#compare theta with D/(1-D) (should be equal):

theta
D/(1-D)

[Package untb version 1.2-14 Index]