Description Usage Arguments Value
The function provides information on multivariate outliers, but also produces a dataset with multivariate outliers excluded, which can be saved to a new object, or used to overwrite the data set. This calculates Mahalanobis distance for each observation and calculates multivariate outliers using Chi2 testing.
1 |
data |
data frame |
vars |
vector of subset of data to analyze. Takes either varnames or a numeric vector of column numbers. |
exclude |
vector of subset of data to exclude from analysis. Takes either varnames or a numeric vector of column numbers. |
p |
level at which to test the significance of outliers, by testing the Chi2 parameter of the alpha distribution. |
cases excluded, a dataset of remaining cases, and a graph showing excluded vs. retained cases.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.