| GIMCD | R Documentation |
Gaussian imputation uses the classical non-robust mean and covariance estimator and then imputes predictions under the multivariate normal model. Outliers may be created by this procedure. Then a high-breakdown robust estimate of the location and scatter with the Minimum Covariance Determinant algorithm is obtained and finally outliers are determined based on Mahalanobis distances based on the robust location and scatter.
GIMCD(data, alpha = 0.05, seedem = 23456789, seedmcd)
data |
a data frame or matrix with the data. |
alpha |
a threshold value for the cut-off for the outlier Mahalanobis distances. |
seedem |
random number generator seed for EM algorithm |
seedmcd |
random number generator seed for MCD algorithm,
if |
Normal imputation from package norm and MCD from package MASS.
Note that currently MCD does not accept weights.
Result is stored in a global list GIMCD.r:
centerrobust center
scatterrobust covariance
alphaquantile for cut-off value
computation.timeelapsed computation time
outindlogical vector of outlier indicators
distMahalanobis distances
Beat Hulliger
Béguin, C. and Hulliger, B. (2008), The BACON-EEM Algorithm for Multivariate Outlier Detection, in Incomplete Survey Data, Survey Methodology, Vol. 34, No. 1, pp. 91-103.
cov.rob
data(bushfirem)
det.res <- GIMCD(bushfirem, alpha = 0.1)
print(det.res$center)
PlotMD(det.res$dist, ncol(bushfirem))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.