Computes the squared Mahalanobis distance of all rows in x
.
Arguments
- x
A CompositionMatrix object.
- center
A
numeric
vector giving the mean vector of the distribution. If missing, will be estimated fromx
.- cov
A
numeric
matrix giving the covariance of the distribution. If missing, will be estimated fromx
.- robust
A
logical
scalar: should robust location and scatter estimation be used (seerobustbase::covMcd()
)?- ...
Extra parameters to be passed to
robustbase::covMcd()
. Only used ifrobust
isTRUE
.
Value
A numeric
vector.
See also
Other statistics:
aggregate()
,
covariance
,
dist()
,
mean()
,
variation()