Description Usage Arguments Value Author(s) Examples
ChaoShared
is a function to provide a shared species estimator in tow communities based on the following two sampling schemes.
In each community, a random sample of individuals is taken and species frequencies or abundances are recored;
Each communtiy is sample several times or the whole area is divided into several quadrats and species presence/absence data for multiple samples/quadrats are recorded.
1 2 | ChaoShared(data, datatype = c("abundance", "incidence"), se = TRUE,
nboot = 200, conf = 0.95)
|
data |
a numerical matrix or a data frame with two columns. Each column represent the species abundances or incidence frequencies of each community.
If |
datatype |
the data type of input data. That is individual-based abundance data ( |
se |
calculate bootstrap standard error and show confidence interval; default is |
nboot |
the number of bootstrap resampling times, default is |
conf |
a confidence coefficient between 0 and 1. |
returns a list of two. First is the basic data informaiton; the other is a table of various estimators, their standard error and 100*conf
% confidence interval.
Anne Chao, K. H. Ma and T. C. Hsieh
1 2 3 4 5 6 7 8 | # load the individual-base (abundance) data
data(SharedSpecDemoAbu)
# Estimation of shared species
ChaoShared(SharedSpecDemoAbu, datatype="abundance", se=TRUE, nboot=200, conf=0.95)
# load the presence/absence sample-base (incidence) data
data(SharedSpecDemoInci)
# Estimation of shared species
ChaoShared(SharedSpecDemoInci, datatype="incidence", se=TRUE, nboot=200, conf=0.95)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.