Skip to contents

Smoothing using the Henderson filter

Usage

henderson_robust_smoothing(
  x,
  endpoints = c("Musgrave", "QL", "CQ", "DAF"),
  length = NULL,
  ao = NULL,
  ao_tc = NULL,
  ls = NULL,
  icr = NULL,
  local_icr = FALSE,
  asymmetric_var = FALSE,
  degree = 3,
  ...
)

Arguments

x

input time-series.

endpoints

Method used for the asymmetric filter. By default the Musgrave method is used

length

the length of the

ao

Dates of the Additive Outliers (AO) which effects are associated to the irregular component.

ao_tc

Dates of the Additive Outliers (AO) which effects are associated to the trend-cycle component.

ls

Dates of the Level Shifts (LS) which effects are associated to the trend-cycle component.

icr

I/C ratio used for the asymmetric filter.

local_icr

if TRUE, the I/C ratio is estimated locally (as described in Quartier-la-Tente, A. (2024)) instead of globally.

asymmetric_var

when local_icr = TRUE, if asymmetric_var = TRUE then the variance is estimated for each asymmetric filters instead of using the variance associated to the symmetric estimates.

degree

if local_icr = TRUE, degree of polynomial used to estimate the local bias parameter.

...

other parameters passed to rjd3filters::lp_filter().