View source: R/outlier_persistence.R
persisting_outliers | R Documentation |
This function computes outlier persistence for a range of significance values, using the algorithm lookout, an outlier detection method that uses leave-one-out kernel density estimates and generalized Pareto distributions to find outliers.
persisting_outliers( X, alpha = seq(0.01, 0.1, by = 0.01), st_qq = 0.9, unitize = TRUE, num_steps = 20 )
X |
The input data in a matrix, data.frame, or tibble format. All columns should be numeric. |
alpha |
Grid of significance levels. |
st_qq |
The starting quantile for death radii sequence. This will be used to compute the starting bandwidth value. |
unitize |
An option to normalize the data. Default is |
num_steps |
The length of the bandwidth sequence. |
A list with the following components:
|
A 3D array of |
|
The set of bandwidth values. |
|
The GPD parameters used. |
|
The bandwidth chosen by the algorithm |
X <- rbind( data.frame(x = rnorm(500), y = rnorm(500)), data.frame(x = rnorm(5, mean = 10, sd = 0.2), y = rnorm(5, mean = 10, sd = 0.2)) ) plot(X, pch = 19) outliers <- persisting_outliers(X, unitize = FALSE) outliers autoplot(outliers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.