powered by
Mahalanobis distance to detect bivariate outliers
outliersMD(x, y, alpha = 0.001)
A logical vector (TRUE for an outlier at p < alpha)
p < alpha
Numeric vector
Critical alpha value to detect an outlier (defaults to 0.001)
alpha
# Use outliersMD() to detect outliers in an anthropometric data from # a SMART survey from the Democratic Republic of Congo (sp.ex01) svy <- sp.ex01 svy[outliersMD(svy$height,svy$weight), ]
Run the code above in your browser using DataLab