autocov.stsm | R Documentation |
autocov
computes the autocovariances of an ARMA model.
## 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, ...)
mdl |
an object of class |
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. |
A numeric vector.
The I polynomial is ignored.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.