View source: R/ts_fil_seas_adj.R
ts_fil_seas_adj | R Documentation |
Removes the seasonal component from the time series without affecting the other components.
ts_fil_seas_adj(frequency = NULL)
frequency |
Frequency of the time series. It is an optional parameter. It can be configured when the frequency of the time series is known. |
a ts_fil_seas_adj
object.
# time series with noise
library(daltoolbox)
data(tsd)
tsd$y[9] <- 2*tsd$y[9]
# filter
filter <- ts_fil_seas_adj(frequency = 26)
filter <- fit(filter, tsd$y)
y <- transform(filter, tsd$y)
# plot
plot_ts_pred(y=tsd$y, yadj=y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.