remove_outliers {BGVAR}R Documentation

Outlier smoothing

Description

A function that smoothes outliers.

Usage

remove_outliers(x, na.rm = TRUE, ...)

Arguments

x

A vector that contains outliers.

na.rm

whether NA's should be ignored (na.rm=TRUE).

...

provide further arguments if necessary.

Details

Outliers are defined as 1.5 times the interquartile range.

Value

Author(s)

Florian Huber

Examples

X<-rnorm(100)
X[c(1,5,10)]<-X[c(1,5,10)]*100
x.r<-remove_outliers(X)

[Package BGVAR version 1.1.3 Index]