| ucarima | R Documentation |
ucarima creates an S3 object that combines two or more ARIMA models
(objects of class um).
ucarima(
z = NULL,
bc = FALSE,
ucm = NULL,
ar = NULL,
xreg = NULL,
fit = TRUE,
envir = parent.frame(),
...
)
z |
an object of class |
bc |
logical. If TRUE logs are taken. |
ucm |
a list of |
ar |
list of stationary AR lag polynomials ( |
xreg |
matrix of explanatory variables. |
fit |
logical. If TRUE, model is fitted. |
envir |
environment. |
... |
additional arguments. |
An object of class ucarima.
Harvey, A.C. (1989) Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press, Cambridge.
trend <- um(i = "(1 - B)", sig2 = c(s2t = 1))
seas <- um(i = "(1+B)", sig2 = c(s2s = 0.05))
irreg <- um(sig2 = c(s2i = 0.75))
uca1 <- ucarima(ucm = list(trend = trend, seas = seas, irreg = irreg))
uca1
# Trigonometric seasonality
uca2 <- ucarima(AirPassengers, bc = TRUE)
uca2
# Dummy seasonality
uca3 <- ucarima(AirPassengers, bc = TRUE, ucm = "ht")
uca3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.