Description Usage Arguments Details Value Author(s) References See Also Examples
This function allows calculation of Shannon's diversity index (Shannon 1948).
1 |
obs |
A vector of species numbers. |
base |
The base of the logarithm used to calculate Shannon's index (DEFAULT = e). |
corr |
Correction factor for small sample sizes. |
scrub |
Controls the treatment of species with zero abundance in the input observation. If TRUE the input vector is truncated to omit zero values. |
This function is used within the H.sampler
function.
When corr is FALSE the value of scrub will not influence the value returned by this function. When corr is TRUE and scrub is FALSE observations in the input vector that have value 0 will influence the output value through the correction factor -((nsp-1)/(2*nsamp)), where nsp is the number of species and nsamp is the total number of counts. This function is used within the H.sampler function.
Raj Whitlock and Matthew K. Lau
Shannon C.E. (1948) A mathematical theory of communication. Bell System Technical Journal 27: 379-423 and 623-656.
1 2 |
[1] 3.150612
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.