iNEXTbeta3D {iNEXT.beta3D} | R Documentation |
iNterpolation and EXTrapolation with beta diversity for TD, PD and FD
Description
iNEXTbeta3D
computes standardized 3D estimates with a common sample size
(for alpha and gamma diversity) or sample coverage (for alpha, beta, gamma diversity as well as
dissimilarity indices) for default sizes or coverage values. This function also computes standardized 3D estimates
with a particular vector of user-specified sample sizes or coverage values. See Chao et al. (2023) for the theory.
Usage
iNEXTbeta3D(
data,
diversity = "TD",
q = c(0, 1, 2),
datatype = "abundance",
base = "coverage",
level = NULL,
nboot = 10,
conf = 0.95,
PDtree = NULL,
PDreftime = NULL,
PDtype = "meanPD",
FDdistM = NULL,
FDtype = "AUC",
FDtau = NULL,
FDcut_number = 30
)
Arguments
data |
(a) For |
diversity |
selection of diversity type: |
q |
a numerical vector specifying the diversity orders. Default is |
datatype |
data type of input data: individual-based abundance data ( |
base |
standardization base: coverage-based rarefaction and extrapolation for gamma, alpha, beta diversity, and four classes of dissimilarity indices ( |
level |
a numerical vector specifying the particular values of sample coverage (between 0 and 1 when
|
nboot |
a positive integer specifying the number of bootstrap replications when assessing sampling uncertainty and constructing confidence intervals. Bootstrap replications are generally time consuming. Set |
conf |
a positive number < 1 specifying the level of confidence interval. Default is 0.95. |
PDtree |
(required argument for |
PDreftime |
(argument only for |
PDtype |
(argument only for |
FDdistM |
(required argument for |
FDtype |
(argument only for |
FDtau |
(argument only for |
FDcut_number |
(argument only for |
Value
For base = "coverage"
, return a list of seven data frames with three diversity (gamma, alpha, and beta
diversity) and four dissimilarity measures. For base = "size"
, return a list of two matrices with two diversity
(gamma and alpha diversity).
For base = "coverage"
, the output in each data frame includes:
Dataset |
the name of dataset. |
Order.q |
the diversity order of q. |
SC |
the target standardized coverage value. |
Size/mT |
the corresponding sample size. |
Alpha/Beta/Gamma/Dissimilarity |
the estimated diversity/dissimilarity estimate. |
Method |
Rarefaction, Observed, or Extrapolation, depending on whether the target coverage is less than, equal to, or greater than the coverage of the reference sample. |
s.e. |
standard error of standardized estimate. |
LCL , UCL |
the bootstrap lower and upper confidence limits for the diversity/dissimilarity with a default significance level of 0.95. |
Diversity |
|
Reftime |
the reference time for PD. |
Tau |
the threshold of functional distinctiveness between any two species for FD (under |
Similar output is obtained for base = "size"
.
References
Chao, A., Thorn, S., Chiu, C.-H., Moyes, F., Hu, K.-H., Chazdon, R. L., Wu, J., Magnago, L. F. S., Dornelas, M., Zeleny, D., Colwell, R. K., and Magurran, A. E. (2023). Rarefaction and extrapolation with beta diversity under a framework of Hill numbers: the iNEXT.beta3D standardization. Ecological Monographs e1588.
Examples
## (R/E Analysis) Taxonomic diversity for abundance data
# Coverage-based standardized TD estimates and related statistics
data(Brazil_rainforests)
output_TDc_abun = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'TD',
datatype = 'abundance', base = "coverage", nboot = 10)
output_TDc_abun
# Coverage-based standardized TD estimates and related statistics by
# user-specified coverage values
data(Brazil_rainforests)
output_TDc_abun_byuser = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'TD',
datatype = 'abundance', base = "coverage", nboot = 10,
level = c(0.85, 0.9))
output_TDc_abun_byuser
# Size-based standardized TD estimates and related statistics
data(Brazil_rainforests)
output_TDs_abun = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'TD',
datatype = 'abundance', base = "size", nboot = 10)
output_TDs_abun
# Size-based standardized TD estimates and related statistics by user-specified sample sizes
data(Brazil_rainforests)
output_TDs_abun_byuser = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'TD',
datatype = 'abundance', base = "size", nboot = 10,
level = c(300, 500))
output_TDs_abun_byuser
## (R/E Analysis) Taxonomic diversity for incidence data
# Coverage-based standardized TD estimates and related statistics
data(Second_growth_forests)
output_TDc_inci = iNEXTbeta3D(data = Second_growth_forests, diversity = 'TD',
datatype = 'incidence_raw', base = "coverage", nboot = 10)
output_TDc_inci
# Coverage-based standardized TD estimates and related statistics by
# user-specified coverage values
data(Second_growth_forests)
output_TDc_inci_byuser = iNEXTbeta3D(data = Second_growth_forests, diversity = 'TD',
datatype = 'incidence_raw', base = "coverage",
nboot = 10, level = c(0.9, 0.95))
output_TDc_inci_byuser
# Size-based standardized TD estimates and related statistics
data(Second_growth_forests)
output_TDs_inci = iNEXTbeta3D(data = Second_growth_forests, diversity = 'TD',
datatype = 'incidence_raw', base = "size", nboot = 10)
output_TDs_inci
# Size-based standardized TD estimates and related statistics by user-specified sample sizes
data(Second_growth_forests)
output_TDs_inci_byuser = iNEXTbeta3D(data = Second_growth_forests, diversity = 'TD',
datatype = 'incidence_raw', base = "size",
nboot = 10, level = c(100, 200))
output_TDs_inci_byuser
## (R/E Analysis) Phylogenetic diversity for abundance data
# Coverage-based standardized PD estimates and related statistics
data(Brazil_rainforests)
data(Brazil_tree)
output_PDc_abun = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'PD',
datatype = 'abundance', base = "coverage", nboot = 10,
PDtree = Brazil_tree, PDreftime = NULL, PDtype = 'meanPD')
output_PDc_abun
# Size-based standardized PD estimates and related statistics
data(Brazil_rainforests)
data(Brazil_tree)
output_PDs_abun = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'PD',
datatype = 'abundance', base = "size", nboot = 10,
PDtree = Brazil_tree, PDreftime = NULL, PDtype = 'meanPD')
output_PDs_abun
## (R/E Analysis) Functional diversity for abundance data when all thresholds from 0 to 1
## are considered
# Coverage-based standardized FD estimates and related statistics
data(Brazil_rainforests)
data(Brazil_distM)
output_FDc_abun = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'FD',
datatype = 'abundance', base = "coverage", nboot = 10,
FDdistM = Brazil_distM, FDtype = 'AUC', FDcut_number = 30)
output_FDc_abun
# Size-based standardized FD estimates and related statistics
data(Brazil_rainforests)
data(Brazil_distM)
output_FDs_abun = iNEXTbeta3D(data = Brazil_rainforests, diversity = 'FD',
datatype = 'abundance', base = "size", nboot = 10,
FDdistM = Brazil_distM, FDtype = 'AUC', FDcut_number = 30)
output_FDs_abun