fit.stsm | R Documentation |
fit
is used to estimate a stsm model.
## S3 method for class 'stsm'
fit(mdl, updmdl, par, fixed = NULL, show.iter = FALSE, tol = 1e-04, ...)
mdl |
an object of class |
par |
argument passed to the |
fixed |
vector of logical values indicating which parameters are fixed (TRUE) or estimated (FALSE). |
show.iter |
logical value to show or hide the estimates at the different iterations. |
tol |
tolerance to check if a root is close to one. |
... |
other arguments. |
updmod |
function to update the parameters of the model. |
An object of class "stsm" with estimated parameters.
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.