Learn R Programming

weird (version 1.0.2)

stray_anomalies: Stray anomalies

Description

Test if observations are anomalies according to the stray algorithm.

Usage

stray_anomalies(y, ...)

Value

Numerical vector containing logical values indicating if the observation is identified as an anomaly using the stray algorithm.

Arguments

y

A vector, matrix, or data frame consisting of numerical variables.

...

Other arguments are passed to find_HDoutliers.

Author

Rob J Hyndman

Examples

Run this code
# Univariate data
y <- c(6, rnorm(49))
stray_anomalies(y)
# Bivariate data
y <- cbind(rnorm(50), c(5, rnorm(49)))
stray_anomalies(y)

Run the code above in your browser using DataLab