Learn R Programming

RSE (version 1.3)

Pred.Fk.Naive: Abundance-based data: unweighted naive estimator

Description

Abundance-based unweighted naive estimator for predicting the number of new rare species

Usage

Pred.Fk.Naive(f, m, k.show = 3)

Arguments

f

A vector of species frequency counts, i.e., the number of singleton species (only one individual observed in the sample), the number of doubleton species (two individuals observed in the sample), and so forth.

m

The number of individuals of an additional sample

k.show

Display the estimating result of the numbers of extremely rare species with abundance <= k.show in the additional sample.

Value

The numbers of new rare species with abundance <= k.show are estimated by the abundance-based unweighted naive estimator and returned.

References

Shen TJ, Chen YH (2018) A Bayesian weighted approach to predicting the number of newly discovered rare species. Conservation Biology, In press.

See Also

Pred.Qk.Naive

Examples

Run this code
# NOT RUN {
## As an example, Herpetological assemblage data are used here.		
data(HerpetologicalData)
## two columns represent two samples of species abundance data
X.merge = HerpetologicalData
## the first column is treated as the original sample
X.col1 = X.merge[,1]
## the second column is treated as the additional sample
X.col2 = X.merge[,2]
Xi = X.col1
## Convert species abundance data to species frequency counts data
f = X.to.f(Xi)
## the number of individuals of the additional sample 
m = sum(X.col2)
Pred.Fk.Naive(f=f, m=m)	
# }

Run the code above in your browser using DataLab