k_may {MLpreemption} | R Documentation |
Calculates the estimator of May for the geometric series.
k_may(xs, exclude = TRUE)
xs |
A vector of ordered counts |
exclude |
Automatically exclude zeros (if |
Solves May equation by using uniroot
.
a real value
counts should be ordered from large to small.
Jan Graffelman (jan.graffelman@upc.edu)
May, R. 1975. Patterns of species abundance and diversity. In Cody, M. and Diamond, M., editors, Ecology and Evolution of Communities, pages 81–120. Harvard Univ. Press.
data("Ganeshaiah")
x <- Ganeshaiah[,2]
k_may(x)