ts_fil_seas_adj: Seasonal Adjustment

View source: R/ts_fil_seas_adj.R

ts_fil_seas_adjR 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(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)

tspredit documentation built on June 22, 2025, 5:07 p.m.