ucarima_estimate | R Documentation |
Estimate UCARIMA Model
ucarima_estimate(x, ucm, stdev = TRUE)
x |
Univariate time series |
ucm |
An UCARIMA model returned by |
stdev |
TRUE if standard deviation of the components are computed |
A matrix containing the different components and their standard deviations if stdev is TRUE.
mod1 <- arima_model("trend", delta = c(1, -2, 1))
mod2 <- arima_model("noise", var = 16)
hp <- ucarima_model(components = list(mod1, mod2))
s <- log(aggregate(retail$AutomobileDealers))
all <- ucarima_estimate(s, hp, stdev = TRUE)
plot(s, type = "l")
t <- ts(all[, 1], frequency = frequency(s), start = start(s))
lines(t, col = "blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.