use_KNN {stray} | R Documentation |
Find outliers using kNN distance with maximum gap
Description
Find outliers using kNN distance with maximum gap
Usage
use_KNN(data, alpha, k, knnsearchtype, p, tn)
Arguments
data |
A vector, matrix, or data frame consisting of numeric and/or categorical variables. |
alpha |
Threshold for determining the cutoff for outliers. Observations are considered
outliers outliers if they fall in the |
k |
Number of neighbours considered. |
knnsearchtype |
A character vector indicating the search type for k- nearest-neighbors. |
p |
Proportion of possible candidates for outliers. This defines the starting point for the bottom up searching algorithm. |
tn |
Sample size to calculate an emperical threshold. Default is set to 50. |
Value
The indexes of the observations determined to be outliers and the outlying scores.
[Package stray version 0.1.1 Index]