Description Usage Arguments Details Value Examples
Perform Tukey's test for mild and extreme outliers.
1 2 3 4 5 6 7 | outlier_tukey(
x,
mask = !is.na(x),
threshold = c(1.5, 3),
return.score = FALSE,
...
)
|
x |
A vector of data. |
mask |
A logical vector that defines which values in |
threshold |
A length-two vector identifying thresholds for "mild" and "extreme" outliers. |
return.score |
if |
... |
Arguments passed on to |
the values of threshold
identify the multiplier of the
interquartile range used to identify mild and extreme outliers.
typical values are 1.5 for "mild" outliers and 3.0 for "extreme"
outliers.
A vector the same length as x
containing numeric
scores or ordered factors.
1 2 3 4 5 6 7 8 9 | x = seq(0, 34, by = 0.25)*pi
noise = rnorm(length(x), mean = 1, sd = 3)
y = sin(x) + noise
mask = noise < 1
outlier_tukey(y)
outlier_tukey(y, mask)
outlier_tukey(y, mask, threshold = c(2, 5))
outlier_tukey(y, return.score = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.