Learn R Programming

tfarima (version 0.1.1)

ucomp.tfm: Unobserved components

Description

ucomp estimates the unobserved components of a time series (trend, seasonal, cycle, stationary and irregular) from the eventual forecast function.

Usage

# S3 method for tfm
ucomp(mdl, y = NULL, method = c("mixed", "forecast", "backcast"), ...)

ucomp(mdl, ...)

# S3 method for um ucomp(mdl, z = NULL, method = c("mixed", "forecast", "backcast"), ...)

Arguments

mdl

an object of class um or tfm.

y

an object of class ts.

method

forward/backward forecasts or a mixture of the two.

...

additional arguments.

z

an object of class ts.

Value

A matrix with the unobserved components.

Examples

Run this code
# 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