| wkfilter.as_ucarima | R Documentation |
wkfilter extracts a signal for a time series described by an ARIMA
model given the ARIMA model for the signal.
## S3 method for class 'as_ucarima'
wkfilter(object, z = NULL, tol = 1e-05, envir = parent.frame(), ...)
wkfilter(object, ...)
## S3 method for class 'um'
wkfilter(
object,
um.uc,
z = NULL,
output = c("series", "filter"),
tol = 1e-05,
envir = parent.frame(),
...
)
object |
an object of class |
z |
an optional |
tol |
numeric tolerance used in polynomial divisions. Default is
|
envir |
environment to get |
... |
additional arguments. |
um.uc |
ARIMA models for the observed time series and the unobserved component (signal). |
output |
character, output of the function: '"series"' (default) returns the filtered time series, or '"filter"' returns the filter coefficients. |
An object of class ts containing the estimated signal.
um1 <- airline(AirPassengers, bc = TRUE)
uca1 <- as.ucarima(um1, i = "(1-B)2")
trend <- wkfilter(um1, uca1$ucm$signal1)
seas <- wkfilter(um1, uca1$ucm$signal2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.