Learn R Programming

pgirmess (version 2.0.2)

shannonbioboot: 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)

Value

An object of class boot including the bootstrap statistics for H' (t1*) and J' (t2*)

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.

See Also

boot, boot.ci, shannonbio

Examples

Run this code
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'

Run the code above in your browser using DataLab