shannonbioboot | R Documentation |
Boostrap Shannon's and equitability indices and return an object of class boot. Confidence intervals can be computed with boot.ci().
shannonbioboot(data1, B = 1000)
data1 |
a data frame of two columns: column 1, dietary category; column 2, abundance (n, biomass,...) |
B |
number of permutations |
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.
An object of class boot including the bootstrap statistics for H' (t1*) and J' (t2*)
boot
, boot.ci
, shannonbio
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'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.