simpson {untb} | R Documentation |
Simpson's diversity index
simpson(x)
x |
Ecosystem vector; is coerced to class count |
Returns the Simpson index D: the probability that two randomly sampled individuals belonging to different species
The code for setting the names is a dog's breakfast
Robin K. S. Hankin
Hubbell
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)