Learn R Programming

itsmr (version 1.10)

aacvf: Autocovariance of ARMA model

Description

Autocovariance of ARMA model

Usage

aacvf(a, h)

Value

Returns a vector of length h+1 to accomodate lag 0 at index 1.

Arguments

a

ARMA model

h

Maximum lag

Details

The ARMA model is a list with the following components.

phiVector of AR coefficients (index number equals coefficient subscript)
thetaVector of MA coefficients (index number equals coefficient subscript)
sigma2White noise variance

See Also

arma

Examples

Run this code
a = arma(Sunspots,2,0)
aacvf(a,40)

Run the code above in your browser using DataLab