bs_dec: Bootstrap estimates of the decomposed Shannon's diversity...

View source: R/bs_dec.R

bs_decR Documentation

Bootstrap estimates of the decomposed Shannon's diversity index

Description

Computes bootstrap confidence intervals of the Shannon's diversity index

Usage

bs_dec(x, groups, 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.

groups

Vector of dimension S of factors indicating the groups of each species.

B

Number of bootstrap samples. The default is 1000.

cl

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

Value

  • ci_bt: Confidence interval for "between groups".

  • ci_wt: Confidence interval for "within groups".

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

Examples

data(Qesem_s)
bs_dec(Qesem_s$HU, Qesem_s$Group)


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