View source: R/rarefaction.overlap.R
rarefaction.overlap | R Documentation |
Calculate the percent of overlap between two species estimate distributions where the larger sample size has been rarefied to match the smaller sample size.
rarefaction.overlap(x, y, f0.func, n.rare = NULL, ...)
x, y |
two vectors of species frequencies where the |
f0.func |
function to use to calculate f0. Can be |
n.rare |
sample size to rarefy both populations to. Must be <= the minimum
sample size. If |
... |
other arguments to |
Calculates the expected number of species and the standard
deviation for the smaller sample size of x
and y
using
the frequency distributions of each. The function then fits a gamma
distribution to each of these estimates, and returns the percent of overlap
as the integral of the mininum value of the PDF for the two distributions.
Integration takes place from 0 to the largest quantile representing
0.99999 of either distribution.
a vector with the percent of overlap between the two distributions,
the sample size, and species estimates for the x
and
y
vectors.
Eric Archer eric.archer@noaa.gov
Colwell, R.K., A. Chao, N.J. Gotelli, S.-Y. Lin, C.X. Mao, R.L. Chazdon, and J.T. Longino. 2012. Models and estimators linking individual-based and sample-based rarefaction, extrapolation and comparison of assemblages. Journal of Plant Ecology 5(1):3-21.
discovery.curve
data(osa.old.growth)
data(osa.second.growth)
x <- expand.freqs(osa.old.growth)
y <- expand.freqs(osa.second.growth)
rarefaction.overlap(x, y, Chao1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.