Learn R Programming

pgirmess (version 1.4.0)

piankabioboot: Bootstrap Pianka's index

Description

Bootstrap Pianka's index and return the limits of the empirical confidence interval specified with probs

Usage

piankabioboot(dataframe1, dataframe2, B = 1000, probs = c(0.025, 0.975))

Arguments

dataframe1
a data frame of two columns: column 1 = dietary category, column 2 = biomass
dataframe2
a data frame of two columns: column 1 = dietary category, column 2 = biomass
B
number of permutations
probs
the limits of the confidence interval

Value

  • a vector of the two CI limits

Details

Bootstrap Pianka's index and return the limits of the empirical confidence interval sepcified with probs

See Also

piankabio

Examples

Run this code
data(preybiom)
attach(preybiom)
jackal<-preybiom[site=="Y" & sp=="C",5:6]
genet<-preybiom[site=="Y" & sp=="G",5:6]

piankabioboot(jackal,genet,B=100)

Run the code above in your browser using DataLab