filter_tr {transx}R Documentation

Trigonometric regression Filter

Description

Maturing lifecycle

This function computes the cyclical component of the trigonometric regression filter.

Usage

filter_tr(x, ...)

Arguments

x

⁠[univariate vector]⁠

Univariate vector, numeric or ts object with only one dimension.

...

Further arguments passed to trfilter.

Examples


unemp <- ggplot2::economics$unemploy
unemp_cycle <- filter_tr(unemp, pl=8, pu=40)
plotx(cbind(unemp, unemp_cycle))


[Package transx version 0.0.1 Index]