autocov: Theoretical autocovariances of an ARMA model

autocov.stsmR Documentation

Theoretical autocovariances of an ARMA model

Description

autocov computes the autocovariances of an ARMA model.

Usage

## S3 method for class 'stsm'
autocov(mdl, lag.max = NULL, arma = TRUE, varphi = FALSE, tol = 1e-04, ...)

autocov(mdl, ...)

## S3 method for class 'um'
autocov(mdl, lag.max = 10, ...)

Arguments

mdl

an object of class um or stsm.

lag.max

maximum lag for autocovariances.

arma

logical. If TRUE, the autocovariances for the stationary ARMA model of the reduced form are computed. Otherwise, the autocovariances are only computed for the MA part.

varphi

logical. If TRUE, the varphi polynomial of the reduced form is also returned.

tol

tolerance to check if a root is close to one.

...

additional arguments.

Value

A numeric vector.

Note

The I polynomial is ignored.

Examples

# Local level model
stsm1 <- stsm(b = 1, C = 1, S = diag(c(irr = 0.8, lvl = 0.04))
autocov(stsm1)

ar1 <- um(ar = "1-0.8B")
autocov(ar1, lag.max = 13)


gallegoj/tfarima documentation built on March 31, 2024, 10:32 a.m.