outliers-data-frame: Define Outliers in a Data Frame

Description Usage Arguments Value Examples

Description

This function is an interface to create a data frame defining the type, observation and weight of outliers. The output is properly designed to be used as input to other functions such as outliers.effects and outliers.regressors.

Usage

1
outliers(type, ind, weight = NULL)

Arguments

type

a character vector. The types of outliers ("IO", "AO", "LS", "TC", "SLS").

ind

a numeric vector. The observations at which each outlier takes effect.

weight

an optional numeric vector. The weights of the outliers. If NULL the weights are set equal to one.

Value

A data frame.

Examples

1
2
outliers(c("AO", "LS"), c(10, 20))
outliers(c("AO", "LS"), c(10, 20), c(2.1, 3.2))

ecjbosu/tsoutliers documentation built on May 15, 2019, 7:53 p.m.