Apply Local Polynomials Filters
References
Proietti, Tommaso and Alessandra Luati (2008). “Real time estimation in local polynomial regression, with application to trend-cycle analysis”.
Examples
x <- retailsa$AllOtherGenMerchandiseStores
trend <- localpolynomials(x, horizon = 6)
#> Error in .jcall("jdplus/filters/base/r/LocalPolynomialFilters", "[D", "filter", as.numeric(x), as.integer(horizon), as.integer(degree), kernel, endpoints, d, tweight, passband): RcallMethod: cannot determine object class
plot(x)
lines(trend, col = "red")
#> Error: object 'trend' not found