filter_tr: Trigonometric regression Filter

Description Usage Arguments Examples

View source: R/07-filter.R

Description

Maturing lifecycle

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

Usage

1

Arguments

x

[univariate vector]

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

...

Further arguments passed to trfilter.

Examples

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

kvasilopoulos/transx documentation built on Jan. 26, 2021, 6:14 p.m.