Description Usage Arguments Value Examples
Trims, detrends and demeans a vector of numbers.
1 | preprocess(x1 = NULL, idemean = TRUE, idetrend = TRUE, itrim = 1)
|
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. |
The vector of preprocessed data.
1 | preprocess(x1 = rnorm(1000), idemean = TRUE, idetrend = TRUE, itrim = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.