estimateD | R Documentation |
estimateD
: computes species diversity (Hill numbers with q = 0, 1 and 2) with a particular user-specified level of sample size or sample coverage.
estimateD( x, q = c(0, 1, 2), datatype = "abundance", base = "size", level = NULL, nboot = 50, conf = 0.95 )
x |
a |
q |
a number or vector specifying the diversity order(s) of Hill numbers. |
datatype |
data type of input data: individual-based abundance data ( |
base |
comparison base: sample-size-based ( |
level |
a sequence specifying the particular sample sizes or sample coverages(between 0 and 1).
If |
nboot |
the number of bootstrap times to obtain confidence interval. If confidence interval is not desired, use 0 to skip this time-consuming step; default is 50. |
conf |
a positive number < 1 specifying the level of confidence interval; default is 0.95. |
a data.frame
of species diversity table including the sample size, sample coverage,
method (rarefaction or extrapolation), and diversity estimates with the user-specified diversity orders (q values) and specified sample size or sample coverage.
data(spider) out1 <- estimateD(spider, q = c(0,1,2), datatype = "abundance", base="size") out1 ## Not run: out2 <- estimateD(spider, q = c(0,1,2), datatype = "abundance", base="coverage") out2 data(ant) out <- estimateD(ant, q = c(0,1,2), datatype = "incidence_freq", base="coverage", level=0.985, conf=0.95) out ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.