bs: Bootstrap estimates of the diversity indices

View source: R/bs.R

bsR Documentation

Bootstrap estimates of the diversity indices

Description

Computes bootstrap standard error and confidence interval of the diversity indices

Usage

bs(x, ind = "shannon", B = 1000, cl = 0.95)

Arguments

x

Vector of dimension S (number of species) with the number of individuals observed in each species. NA values are allowed.

ind

Index to be computed. The default value is "shannon". Other possible values are: "simpson_E", "simpson_D", "menhinick", "margalef", "evenness", "equitability" and "dominance".

B

Number of bootstrap samples. The default is 1000.

cl

Confidence level. A value between 0 and 1. The default is 0.95.

Value

  • s: Boostrap standard error.

  • ci: Confidence interval.

References

Arnaud Barat, Andreu Sansó, Maite Arilla-Osuna, Ruth Blasco, Iñaki Pérez-Fernández, Gabriel Cifuentes-Alcobenda, Rubén Llorente, Daniel Vivar-Ríos, Ella Assaf, Ran Barkai, Avi Gopher, & Jordi Rosell-Ardèvol (2026) <doi:10.1007/s10816-026-09802-3>.

See Also

shannon, dec_shannon, dominance, equitability, evenness, margalef, menhinick, simpson_D, simpson_E

Examples

data(Qesem_s)
bs(Qesem_s$HU)


diversityArch documentation built on June 13, 2026, 5:07 p.m.