fit.stsm {tfarima} | R Documentation |
Estimation of a STS model
Description
fit
fits the stsm to the time series y.
Usage
## S3 method for class 'stsm'
fit(mdl, method = "BFGS", show.iter = FALSE, ...)
Arguments
mdl |
an object of class |
method |
argument of the |
show.iter |
logical value to show or hide the estimates at the different iterations. |
... |
other arguments. |
Value
An object of class "stsm" with the estimated variances.
Examples
# 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)
stsm1 <- fit(stsm1, method = "L-BFGS-B")
[Package tfarima version 0.3.2 Index]