getOutliers: Get the outliers for a given time series

Description Usage Arguments Details Value

View source: R/getOutliers.r

Description

The outliers are computed using different methods based on the outlierType parameter

Usage

1
tsData.out <- getOutliers(tsData)

Arguments

tsData

A time series object.

outlierType

A string that determines the way to compute the outliers. outlierType = c("iqr","stl"). Default is "iqr".

Details

iqr: Find outliers using the interquartile range of the given time series (boxplot method). stl: Use stl weights.

Value

A vector of indices which represents the location of the outliers within the time series


OHDSI/Castor documentation built on March 20, 2021, 6:09 p.m.