powered by
ucomp estimates the unobserved components of a time series (trend, seasonal, cycle, stationary and irregular) from the eventual forecast function.
ucomp
# S3 method for tfm ucomp( mdl, y = NULL, method = c("mixed", "forecast", "backcast"), envir = NULL, ... )ucomp(mdl, ...)# S3 method for um ucomp( mdl, z = NULL, method = c("mixed", "forecast", "backcast"), envir = NULL, ... )
ucomp(mdl, ...)
# S3 method for um ucomp( mdl, z = NULL, method = c("mixed", "forecast", "backcast"), envir = NULL, ... )
an object of class um or tfm.
um
tfm
an object of class ts.
ts
forward/backward forecasts or a mixture of the two.
environment in which the function arguments are evaluated. If NULL the calling environment of this function will be used.
additional arguments.
A matrix with the unobserved components.
# NOT RUN { Z <- AirPassengers um1 <- um(Z, i = list(1, c(1, 12)), ma = list(1, c(1, 12)), bc = TRUE) uc <- ucomp(um1) # }
Run the code above in your browser using DataLab