fst_filter | R Documentation |
Estimation of a filter using the Fidelity-Smoothness-Timeliness criteria
fst_filter(
lags = 6,
leads = 0,
pdegree = 2,
smoothness.weight = 1,
smoothness.degree = 3,
timeliness.weight = 0,
timeliness.passband = pi/6,
timeliness.antiphase = TRUE
)
lags |
Lags of the filter (should be positive). |
leads |
Leads of the filter (should be positive or 0). |
pdegree |
Local polynomials preservation: max degree. |
smoothness.weight |
Weight for the smoothness criterion (in |
smoothness.degree |
Degree of the smoothness criterion (3 for Henderson). |
timeliness.weight |
Weight for the Timeliness criterion (in |
timeliness.passband |
Passband for the timeliness criterion (in radians). The phase effect is computed in |
timeliness.antiphase |
boolean indicating if the timeliness should be computed analytically ( |
An object of class "fst_filter"
, which is a list of 5 elements:
"internal"
Java object used for internal functions
"filters.coef"
The coefficients of the selected filter
"filters.gain"
The gain function between 0 and pi (601 observations)
"filters.phase"
The phase function between 0 and pi (601 observations)
"criteria"
The value of the tree criteria
Grun-Rehomme, Michel, Fabien Guggemos, and Dominique Ladiray (2018). “Asymmetric Moving Averages Minimizing Phase Shift”. In: Handbook on Seasonal Adjustment.
filter <- fst_filter(lags = 6, leads = 0)
filter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.