Usage
PhyloBetaEntropy(NorP, NorPexp = NULL, q = 1, Tree, Normalize = TRUE,
Correction = "Best", CheckArguments = TRUE, Ps = NULL, Ns = NULL,
Pexp = NULL, Nexp = NULL)
bcPhyloBetaEntropy(Ns, Nexp, q = 1, Tree, Normalize = TRUE,
Correction = "Best", CheckArguments = TRUE)
## S3 method for class 'ProbaVector':
PhyloBetaEntropy(NorP, NorPexp = NULL, q = 1, Tree, Normalize = TRUE,
Correction = "Best", CheckArguments = TRUE, Ps = NULL, Ns = NULL,
Pexp = NULL, Nexp = NULL)
## S3 method for class 'AbdVector':
PhyloBetaEntropy(NorP, NorPexp = NULL, q = 1, Tree, Normalize = TRUE,
Correction = "Best", CheckArguments = TRUE, Ps = NULL, Ns = NULL,
Pexp = NULL, Nexp = NULL)
## S3 method for class 'integer':
PhyloBetaEntropy(NorP, NorPexp = NULL, q = 1, Tree, Normalize = TRUE,
Correction = "Best", CheckArguments = TRUE, Ps = NULL, Ns = NULL,
Pexp = NULL, Nexp = NULL)
## S3 method for class 'numeric':
PhyloBetaEntropy(NorP, NorPexp = NULL, q = 1, Tree, Normalize = TRUE,
Correction = "Best", CheckArguments = TRUE, Ps = NULL, Ns = NULL,
Pexp = NULL, Nexp = NULL)
Arguments
Ps
The probability vector of species of the community.
Pexp
The probability vector of species of the metacommunity.
Ns
A numeric vector containing species abundances of the community.
Nexp
A numeric vector containing species abundances of the metacommunity.
NorP
A numeric vector, an integer vector, an abundance vector (AbdVector
) or a probability vector (ProbaVector
). Contains either abundances or probabilities NorPexp
A numeric vector, an integer vector, an abundance vector (AbdVector
) or a probability vector (ProbaVector
). Contains either abundances or probabilities q
A number: the order of entropy. Default is 1.
Tree
An object of class hclust
or phylog
. The tree must be ultrametric. Normalize
If TRUE
(default), the entropy returned by the function is normalized by the height of the tree (it is the weighted average value of the entropy in each slice).
If FALSE
, it is the unnormalized weighted sum of the results.
Correction
A string containing one of the possible corrections: currently, only "ChaoShen"
. "Best"
is the default value, it is equivalent to "ChaoShen"
.
CheckArguments
Logical; if TRUE
, the function arguments are verified. Should be set to FALSE
to save time when the arguments have been checked elsewhere.