preprocess: Preprocessing Data to Be Tested with Statiotest.

Description Usage Arguments Value Examples

Description

Trims, detrends and demeans a vector of numbers.

Usage

1
preprocess(x1 = NULL, idemean = TRUE, idetrend = TRUE, itrim = 1)

Arguments

x1

A vector of numbers.

idemean

A boolean, True is Default which means the sample mean substracted from data.

idetrend

A boolean, Default = True, which means that a detrending is done using the pracma package and OLS, which might or might not impact the data depending on presence of trend.

itrim

A number that gives the percentage trimming in each tail.

Value

The vector of preprocessed data.

Examples

1
preprocess(x1 = rnorm(1000), idemean = TRUE, idetrend = TRUE, itrim = 0)

D-Roberts/statiotest documentation built on May 6, 2019, 12:55 p.m.