identifyOutlier | R Documentation |
Identify numeric or factor outliers
numOutlier(
x,
type = "auto",
th.gaussian = 3,
th.hampel = 3,
th.boxplot = 1.5,
na.rm = FALSE
)
factorOutlier(x, threshold = 0.01, use.NA = "ifany")
x |
a vector of numeric |
type |
the type of robust metric for assessing the "average" value |
th.gaussian |
the threshold for defining an outlier when using the mean |
th.hampel |
the threshold for defining an outlier when mad |
th.boxplot |
the threshold for defining the IQR |
na.rm |
should na be removed. |
threshold |
the threshold for defining an outlier regarding the prevalence (categorical variables) |
use.NA |
argument passed to |
idea from http://www.r-bloggers.com/finding-outliers-in-numerical-data/
## Not run:
numOutlier(rnorm(1e3))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.