はい、mvBACONはある距離に基づく外れ値の識別用です。デフォルトのものはマハラノビスの距離です。 次のコードでは、mvcACONで異常値を特定する方法について、mtcarsサブデータセットの簡単な例を紹介します。
# Use mtcars (sub)dataset and plot it
data <- mtcars %>% select(mpg, disp)
plot(data, main = "mtcars")
# Add some outliers and plot again
data <- rbind(data,
data.frame(mpg = c(1, 80), disp = c(800, 1000)))
plot(data, main = "mtcars")
# Use mvBacon to calculate the distances and get the ouliers
library(robustX)
distances <- mvBACON(data)
# Plot it again...
plot(data, main = "mtcars")
# ...with highlighting the outliers
points(data[!distances$subset, ], col = "red", pch = 19)
# Some fine tuning, since lot of outliers seem to be still good for regression
distances <- mvBACON(data, alpha = 0.6)
plot(data, main = "mtcars")
points(data[!distances$subset, ], col = "red", pch = 19)