Usage Arguments Details Value Author(s) See Also
1 |
m |
A data.frame or matrix. Observations in rows. |
scale |
If TRUE, scale variables before getting mahalanobis distances. |
use |
Observations to use in computing covariance matrix. Gets passed to |
center |
Type of univariate center for each variable in |
Get squared Mahalanobis distances for N observations in M dimensions. This is a convenience wrapper
around mahalanobis
, which see. Variables are optionally scaled before
distances are computed. Incomplete observations will return NA.
A list with additional class "mahalDist" containing elements:
D2: A vector of squared Mahalanobis distances for observations (rows) in m
.
Incomplete observations return NA.
vars: A character vector with the column names from m
.
dim: The number of columns of m
.
Dave Braze davebraze@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.