fit2autocov | R Documentation |
fit2autocov
fits a STS model to a vector of theoretical
autocovariances.
fit2autocov(mdl, ...) ## S3 method for class 'stsm' fit2autocov(mdl, g, method = "BFGS", show.iter = FALSE, ...)
mdl |
an object of class |
... |
other arguments. |
g |
a vector of theoretical autocovariances (gamma[k], k= 0, ..., K). |
method |
optimation method. |
show.iter |
logical. If TRUE, estimates at each iteration are printed. |
An object of class stsm
.
um1 <- um(Nile, i = 1, ma = 1) g <- autocov(um1, lag.max = 1) # Local level model b <- 1 C <- as.matrix(1) stsm1 <- stsm(Nile, b, C, s2v = c(lvl = 0.5), s2u = c(irr = 1), fit = FALSE) stsm2 <- fit2autocov(stsm1, g) stsm2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.