stray_scores {weird} | R Documentation |
Compute stray scores indicating how anomalous each observation is.
stray_scores(y, ...)
y |
A vector, matrix, or data frame consisting of numerical variables. |
... |
Other arguments are passed to |
Numerical vector containing stray scores.
Rob J Hyndman
# Univariate data
y <- c(6, rnorm(49))
scores <- stray_scores(y)
threshold <- stray::find_threshold(scores, alpha = 0.01, outtail = "max", p = 0.5, tn = 50)
which(scores > threshold)