spencer: Spencer filter

Description Usage Arguments Details Value

View source: R/spencer.R

Description

Filter a series using a 15-term two-sided Spencer filter.

Usage

1
spencer(x, lambda = NULL)

Arguments

x

A time series (seasonally adjusted).

lambda

Box-Cox transformation parameter. If lambda = "auto", then a transformation is automatically selected using [BoxCox.lambda()].

Details

This filter is used in the Bry-Boschan algorithm.

Value

A time series after apllying the two-sided Spencer filter.


pgg1309/bcycle documentation built on Feb. 22, 2020, 12:23 a.m.