Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

TacvfMA

Theoretical Autocovariances for Moving Average Process


Description

The theoretical autocovariance function of a MA(q) with unit variance is computed.

Usage

TacvfMA(theta, lag.max = 20)

Arguments

theta

q parameters in MA(q)

lag.max

number of lags required.

Details

The first q+1 values are determined using a matrix multiplication - avoiding a loop. The remaining values set to zero.

Value

Vector of length q+1 containing the autocovariances at lags 0,1,...,lag.max

Note

See Details in TacvfAR for why we prefer to use this algorithm instead of ARMAacf

Author(s)

A.I.McLeod and Y. Zhang

References

McLeod, A.I. and Zhang, Y. (2006), Partial autocorrelation parameterization for subset autoregression. Journal of Time Series Analysis, 27, 599-612.

See Also

Examples

TacvfMA(c(1.8,-0.9), 10)

FitAR

Subset AR Model Fitting

v1.94
GPL (>= 2)
Authors
A.I. McLeod, Ying Zhang and Changjiang Xu
Initial release
2013-03-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.