| fit.ucarima | R Documentation |
Estimates the parameters of a UCARIMA model using maximum likelihood.
## S3 method for class 'ucarima'
fit(mdl, z = NULL, method = "BFGS", show.iter = FALSE, envir = NULL, ...)
mdl |
An object of class |
z |
Optional. A time series object ( |
method |
Character string specifying the optimization method passed to
|
show.iter |
Logical. If |
envir |
Environment where the estimation is evaluated. If |
... |
Additional arguments passed to |
An updated ucarima object with estimated parameters,
log-likelihood, and convergence information.
# Define a local level model with trend and irregular components
trend <- um(i = 1, sig2 = c(s2t = 0.5))
irreg <- um(sig2 = c(s2i = 1))
# Create and estimate the UCARIMA model
uca <- ucarima(ucm = list(trend = trend, irreg = irreg))
uca_fitted <- fit(uca, Nile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.