difshannonbio | R Documentation |
Computes the empirical confidence interval of the bootstrap of the difference between two Shannon indices
difshannonbio(dat1, dat2, R = 1000, probs = c(0.025, 0.975))
dat1 |
a data.frame of two columns; column = category, column 2 = biomass |
dat2 |
a data.frame of two columns; column = category, column 2 = biomass |
R |
number of permutations |
probs |
the limits of the confidence interval |
Designated to compare the difference between two Shannon's indices computed from two data frames. In each data frame, the first column is the category of prey item, and the second column the estimated biomass.
A list with the confidence interval of H' and J'
shannonbio
data(preybiom)
attach(preybiom)
jackal<-preybiom[site=="Y" & sp=="C",5:6]
genet<-preybiom[site=="Y" & sp=="G",5:6]
difshannonbio(jackal,genet,R=150)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.