shannonbioboot {pgirmess} | R Documentation |
Boostrap Shannon's and equitability indices
Description
Boostrap Shannon's and equitability indices and return an object of class boot. Confidence intervals can be computed with boot.ci().
Usage
shannonbioboot(data1, B = 1000)
Arguments
data1 |
a data frame of two columns: column 1, dietary category; column 2, abundance (n, biomass,...) |
B |
number of permutations |
Details
Boostrap Shannon\'s and equitability indices and return an object of class boot. Confidence intervals can be computed with boot.ci(). Requires the boot library.
Value
An object of class boot including the bootstrap statistics for H' (t1*) and J' (t2*)
See Also
Examples
data(preybiom)
myboot<-shannonbioboot(preybiom[,5:6],B=100)
library(boot)
boot.ci(myboot, index=1,type=c("norm","basic","perc")) # confidence intervals for H'
boot.ci(myboot, index=2,type=c("norm","basic","perc")) # confidence intervals for J'
[Package pgirmess version 2.0.3 Index]