invChat: Number of individuals corresponding to a desired coverage...

Description Usage Arguments Value Examples

Description

If you wanted to resample a vector to a certain expected sample coverage, how many individuals would you have to draw? This is C_hat solved for the number of individuals. This code is a modification of INEXT's internal function invChat.Ind() (Hsieh et al 2016).

Usage

1
invChat(x, C)

Arguments

x

integer vector.

C

numeric. between 0 and 1

Value

a numeric value

Examples

1
2
3
4
5
library(vegan)
data(BCI)

# What sample size corresponds to an expected sample coverage of 55%?
invChat(colSums(BCI), 0.55)

T-Engel/betaC documentation built on May 2, 2021, 3:19 a.m.