pgirmess (version 2.0.3)

difshannonbio: Empirical confidence interval of the bootstrap of the difference between two Shannon indices

Description

Computes the empirical confidence interval of the bootstrap of the difference between two Shannon indices

Usage

difshannonbio(dat1, dat2, R = 1000, probs = c(0.025, 0.975))

Value

A list with the confidence interval of H' and J'

Arguments

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

Details

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.

See Also

shannonbio

Examples

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

Run the code above in your browser using DataLab