ts_fil_seas_adj {tspredit} | R Documentation |
Seasonal Adjustment
Description
Removes the seasonal component from the time series without affecting the other components.
Usage
ts_fil_seas_adj(frequency = NULL)
Arguments
frequency |
Frequency of the time series. It is an optional parameter. It can be configured when the frequency of the time series is known. |
Value
a ts_fil_seas_adj
object.
Examples
# time series with noise
library(daltoolbox)
data(sin_data)
sin_data$y[9] <- 2*sin_data$y[9]
# filter
filter <- ts_fil_seas_adj(frequency = 26)
filter <- fit(filter, sin_data$y)
y <- transform(filter, sin_data$y)
# plot
plot_ts_pred(y=sin_data$y, yadj=y)
[Package tspredit version 1.0.777 Index]