stray (version 0.1.0)

find_theshold: Find Outlier Threshold

Description

Find Outlier Threshold

Usage

find_theshold(outlier_score, alpha = 0.05, outtail = c("max", "min"))

Arguments

outlier_score

A vector of outlier scores. Can be a named vector or a vector with no names.

alpha

Threshold for determining the cutoff for outliers. Observations are considered outliers if they fall in the \((1- alpha)\) tail of the distribution of the nearest-neighbor distances between exemplars.

outtail

Direction of the outlier tail.

Value

The indexes (or names, if the input is named vactor) of the observations determined to be outliers.