isOutlier | R Documentation |
Tests for multivariate outliers using a robust method (cited above). In summary, a minimum proportion of cases are used to estimate the location and scatter of the multivariate space, then that location and scatter are used to test for [multivariate] outlying values.
isOutlier(dat, dat_proportion = "check", reject_alpha = 0.01)
dat |
data |
dat_proportion |
Proportion of data to retain in estimating the robust multivariate location and scatter. Defaults to testing at various proportions. |
reject_alpha |
P-value threshold for excluding cases (using a chi-square test on Mahalanobis distances; Leys et al, 2018) |
Takes a numeric data frame. Returns a logical vector indicating whether the cases should be excluded.
Is NOT robust to missing data.
cov.rob
for estimating the robust location and scatter.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.