outliersMD | R Documentation |
Mahalanobis distance to detect bivariate outliers
outliersMD(x, y, alpha = 0.001)
x |
Numeric vector |
y |
Numeric vector |
alpha |
Critical |
A logical vector (TRUE for an outlier at p < 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), ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.