pgirmess (version 1.6.9)

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

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

Value

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

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
# NOT RUN {
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 DataCamp Workspace