wkfilter | R Documentation |
wkfilter
extracts a signal for a time series.
wkfilter(um.z, ...)
## S3 method for class 'um'
wkfilter(um.z, um.uc, z = NULL, envir = parent.frame(), ...)
um.z |
an object of class |
... |
additional arguments. |
z |
optional, time series. |
envir |
environment. |
um.z , um.uc |
ARIMA models for the observed time series and the unobserved component. |
An object of class wkfilter
.
um1 <- um(AirPassengers, bc = T, i = list(1, c(1,12)), ma = list(1, c(1,12)))
msx1 <- msx(um1, i = "(1-B)2")
trend <- wkfilter(um1, msx1$signal1)
seas <- wkfilter(um1, msx1$signal2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.