Learn R Programming

spaa (version 0.2.5)

niche.overlap.boot.pair: Boostrap the niche overlap indices

Description

bootstrap the niche overlap indices between a pair of species. This is an internal function used by niche.overlap.boot, use niche.overlap.boot instead.

Usage

niche.overlap.boot.pair(vectorA, vectorB, method = c("levins",
     "schoener", "petraitis", "pianka", "czech", "morisita"),
      times = 1000, quant = c(0.025, 0.975))

Value

This function will return a vector containing:\ "Observed", \ "Boot mean", \ "Boot std", \ "Boot CI1", \ "Boot CI2", \ "times" \

Arguments

vectorA

A numeric vector containing species A's abundance or importance value.

vectorB

A numeric vector containing species B's abundance or importance value.

method

Name of the index to use.

times

Number of bootstraps

quant

Confidence intervals of the bootstrap results.

Author

Jinlong Zhang jinlongzhang01@gmail.com

References

Zhang Jin-tun,(2004 ) Quantitative Ecology, Science Press, Beijing

See Also

niche.overlap.boot

Examples

Run this code

data(datasample)
niche.overlap.boot.pair(datasample[,1], datasample[,2], method = "levins")

Run the code above in your browser using DataLab