R/rd-signed.r

Defines functions robust.distance.signed

robust.distance.signed <-
function(x,method='mcd')
{
    x.w <- as.matrix(x$weights)
    robcov <- cov.rob(x.w,method=method)
    rob.dist <- mahalanobis(x.w,
			    center=robcov$center,
			    cov=robcov$cov)
    rob.dist
}

Try the DESnowball package in your browser

Any scripts or data that you put into this service are public.

DESnowball documentation built on May 1, 2019, 6:34 p.m.