compareMahal: Compares Mahalanobis distances from two approaches
Description
Mahalanobis distances are calculated for each zero pattern.
Two approaches are used. The first one estimates Mahalanobis distance for observations belonging to one each zero pattern each.
The second method uses a more sophisticated approach described below.
Usage
compareMahal(x, imp = "KNNa")
"plot"(x, y, ...)
Arguments
x
data frame or matrix
imp
imputation method
y
unused second argument for the plot method
...
additional arguments for plotting passed through
Value
df
a data.frame containing the Mahalanobis distances from the estimation in subgroups, the Mahalanobis distances from the imputation and covariance approach, an indicator specifiying outliers and an indicator specifying the zero pattern