binstat {divDyn} | R Documentation |
Sampling statistics and diversity indices in every bin
Description
This function will return the basic sampling summaries of a dataset
Usage
binstat(
x,
tax = "genus",
bin = "stg",
coll = NULL,
ref = NULL,
noNAStart = FALSE,
duplicates = NULL,
xexp = NULL,
indices = FALSE
)
Arguments
x |
|
tax |
|
bin |
|
coll |
|
ref |
|
noNAStart |
(logical) Useful when the dataset does not start from bin no. 1, but positive integer bin numbers are provided. Then |
duplicates |
|
xexp |
( |
indices |
( |
Details
Secondary function of the package that calculates a number of sampling related variables and diversity estimators for each bin.
In contrast to the (divDyn
) function, the bins are treated independently in this function.
The function also returns the maximum subsampling quota for OxW subsampling
(subtrialOXW
) with a given xexp
value.
By setting total
to FALSE
(default), the following results are output:
occs
: The number of occurrences in each time bin.
colls
: The number of collections in each time bin.
xQuota
: The maximum quota for OxW subsampling (subtrialOXW
) with the given xexp
value.
The number of occurrences in each collection is tabulated, and is raised to the power of xexp
.
The xQuota
value is the sum of these values across all collections in a time slice.
refs
: The number of references in each time bin.
SIBs
: The number of Sampled-In-Bin taxa in each time bin.
occ1
: The number of taxa in each time bin, that occur in only 1 collection.
ref1
: The number of taxa in each time bin, that occur in only 1 reference.
occ2
: The number of taxa in each time bin, that occur in exactly 2 collections.
ref2
: The number of taxa in each time bin, that occur in exactly 2 references.
u
: Good's u, coverage estimator based on the number of single-collection taxa (occ1).
uPrime
: Good's u, coverage estimator based on the number of single-reference taxa (ref1).
chao1occ
: Chao1 extrapolation estimator, based on the the number of single-collection and two-collection taxa (occ1).
chao1ref
: Chao1 extrapolation estimator, based on the the number of single-reference and two-reference taxa (occ2).
Value
A data.frame with rows corresponding to bin entries.
Examples
data(corals)
# slice-specific sampling
basic <- binstat(corals, tax="genus", bin="stg")
# subsampling diagnostic
subStats <- subsample(corals, method="cr", tax="genus", FUN=binstat,
bin="stg", q=100,noNAStart=FALSE)
# maximum quota with xexp
more <- binstat(corals, tax="genus", bin="stg", coll="collection_no", xexp=1.4)