outlier | R Documentation |
Using the mardia test, outliers are detected based on skewness and kurtosis. However, outliers don't detect more than half of the total observation data.(Can be modified with the lim
option.)
outlier(data,
lim = 0,
level = 0.05,
option = "all")
data |
A numeric matrix or data frame. |
lim |
The number of outliers detected can be limited. If 0 is entered, detection is possible up to half of the data. (default = |
level |
The significance level of the skewness and kurtosis statistics of the " |
option |
|
modified.data |
The modified data without outliers. |
modified.mvn |
The modified Mardia test result without outliers. |
outlier.num |
The position of outliers. |
outlier.cnt |
Total number of outliers. |
Jobson, J. D.(1992). Applied Multivariate Data Analysis, Springer-Verlag, New York.
mardiatest
data(wine)
class2.wine <- subset(wine, class == 2)[, -1]
outlier(class2.wine, lim = 0, level = 0.05, option = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.