Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

do_clean

Cleaning outliers


Description

Cleaning of the most remarkable outliers. This improves the performance of the archetypoid algorithm since it is not affected by spurious points.

Usage

do_clean(data, num_pts, range = 1.5, out_perc = 80)

Arguments

data

Data frame with (temporal) points in the rows and observations in the columns.

num_pts

Number of temporal points.

range

Same parameter as in function boxplot. A value of 1.5 is enough to detect amplitude and shift outliers, while a value of 3 is needed to detect isolated outliers.

out_perc

Minimum number of temporal points (in percentage) to consider the observation as an outlier. Needed when range=1.5.

Value

Numeric vector with the outliers.

Author(s)

Irene Epifanio

See Also

Examples

data(mtcars)
data <- mtcars
num_pts <- ncol(data)
do_clean(t(data), num_pts, 1.5, 80)

adamethods

Archetypoid Algorithms and Anomaly Detection

v1.2.1
GPL (>= 2)
Authors
Guillermo Vinue, Irene Epifanio
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.