whitening: Whitening

View source: R/micss.R

whiteningR Documentation

Whitening

Description

Eliminates the autocorrelation of a variable using an AR model.

Usage

whitening(y, kmax = NULL)

Arguments

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)].

Details

Selects the model using the Bayes Information Criterium.

Value

  • e: Whiten variable.

  • rho: Vector of autoregressive parameters.

  • lag: number of lags used.

Examples

whitening(rnorm(100))

micss documentation built on Sept. 11, 2024, 6:46 p.m.

Related to whitening in micss...