untb (version 1.2-5)

simpson: 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

References

Hubbell

See Also

preston

Examples

Run this code
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)

Run the code above in your browser using DataCamp Workspace