localpolynomials | R Documentation |
Apply Local Polynomials Filters
localpolynomials(
x,
horizon = 6,
degree = 3,
kernel = c("Henderson", "Uniform", "Biweight", "Trapezoidal", "Triweight", "Tricube",
"Gaussian", "Triangular", "Parabolic"),
endpoints = c("LC", "QL", "CQ", "CC", "DAF"),
ic = 4.5,
tweight = 0,
passband = pi/12
)
x |
input time-series. |
horizon |
horizon (bandwidth) of the symmetric filter. |
degree |
degree of polynomial. |
kernel |
kernel uses. |
endpoints |
methode for endpoints. |
ic |
ic ratio. |
tweight |
timeliness weight. |
passband |
passband threshold. |
the target signal
Proietti, Tommaso and Alessandra Luati (2008). “Real time estimation in local polynomial regression, with application to trend-cycle analysis”.
lp_filter
x <- retailsa$AllOtherGenMerchandiseStores
trend <- localpolynomials(x, horizon = 6)
plot(x)
lines(trend, col = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.