whitening | R Documentation |
Eliminates the autocorrelation of a variable using an AR model.
whitening(y, kmax = NULL)
y |
A numeric vector. Variable to be whiten. |
kmax |
Maximum lag to be used for the long-run estimation of the variance. If not specified uses [12*(t/100)^(1/4)]. |
Selects the model using the Bayes Information Criterium.
e
: Whiten variable.
rho
: Vector of autoregressive parameters.
lag
: number of lags used.
whitening(rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.