Zeta.order.mc {zetadiv} | R Documentation |
Zeta diversity for a specific number of assemblages or sites using Monte Carlo sampling
Description
Computes zeta diversity, the number of species shared by multiple assemblages, for a specific order (number of assemblages or sites).
Usage
Zeta.order.mc(
data.spec,
xy = NULL,
order = 1,
sam = 1000,
sd.correct = TRUE,
sd.correct.adapt = FALSE,
rescale = FALSE,
normalize = FALSE,
NON = FALSE,
FPO = NULL,
DIR = FALSE,
empty.row = "empty",
silent = TRUE
)
Arguments
data.spec |
Site-by-species presence-absence data frame, with sites as rows and species as columns. |
xy |
Site coordinates. This is only used if |
order |
Specific number of assemblages or sites at which zeta diversity is computed. |
sam |
Number of samples for which the zeta diversity is computed. |
sd.correct |
Boolean value (TRUE or FALSE) indicating if the standard deviation must be computed with an unbiased estimator (using the number of site combinations - 1 as the denominator) or not (using the number of site combinations as the denominator). |
sd.correct.adapt |
Boolean value (TRUE or FALSE) indicating if the standard deviation must be computed with an unbiased estimator (using the number of site combinations - 1 as the denominator) if |
rescale |
Boolean value (TRUE or FALSE) indicating if the zeta values should be divided by |
normalize |
Indicates if the zeta values for each sample should be divided by the total number of species for this specific sample ( |
NON |
Boolean value (TRUE or FALSE) indicating if the number of species in common should only be counted for the nearest neighbours. |
FPO |
A vector with the coordinates of the fixed point origin from which the zeta diversity will be computed (overrides NON). In that case, |
DIR |
Boolean value (TRUE or FALSE) indicating if zeta diversity must be computed using a directed nearest neighbour scheme in the direction away from the FPO, starting from any site. |
empty.row |
Determines how to handle empty rows, i.e. sites with no species. Such sites can cause underestimations of zeta diversity, and computation errors for the normalized version of zeta due to divisions by 0. Options are " |
silent |
Boolean value (TRUE or FALSE) indicating if messages must be printed. |
Details
If the number of combinations of sites is lower than the value of the parameter sam
, all the combinations are used and an exact solution is computed. In that case, using the number of site combinations as the denominator may be appropriate to compute the standard deviation, if all sites were sampled and the zeta values. This can be adjusted with parameters sd.correct
and sd.correct.adapt
.
Zeta.order.mc
is faster than Zeta.order.ex
to compute the exact value of zeta diversity when the number of species is higher than C^N_{i}
, where N is the total number of sites and i is the order of zeta.
Zeta.order.mc
enables accomodating richness heterogeneity by setting normalize = "Jaccard"
, normalize = "Sorensen"
or normalize = "Simpson"
. This cannot be performed by
Zeta.order.ex
.
Value
Zeta.order.mc
returns a list containing the following components:
zeta.order |
The number of assemblages or sites for which the zeta diversity was computed. |
combinations |
The number of possible combinations of sites for the chosen order. |
zeta.val |
The zeta diversity values. |
zeta.val.sd |
The standard deviation of zeta diversity. |
References
Hui C. & McGeoch M.A. (2014). Zeta diversity as a concept and metric that unifies incidence-based biodiversity patterns. The American Naturalist, 184, 684-694.
See Also
Examples
utils::data(bird.spec.coarse)
xy.bird <- bird.spec.coarse[,1:2]
data.spec.bird <- bird.spec.coarse[,3:193]
zeta.bird <- Zeta.order.mc(data.spec.bird, order = 3, sam=100)
zeta.bird
##########
utils::data(Marion.species)
xy.marion <- Marion.species[,1:2]
data.spec.marion <- Marion.species[,3:33]
zeta.marion <- Zeta.order.mc(data.spec.marion, xy.marion, order = 3, sam = 100,
NON = TRUE)
zeta.marion