powered by
fit fits the stsm to the time series y.
fit
# S3 method for stsm fit(mdl, method = "BFGS", show.iter = FALSE, ...)
an object of class stsm.
stsm
argument of the optim function.
optim
logical value to show or hide the estimates at the different iterations.
other arguments.
An object of class "stsm" with the estimated variances.
# NOT RUN { # 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") # }
Run the code above in your browser using DataLab