Computes a HP filtered output gap.
gapHP(x, lambda = NULL, end = NULL, start = NULL)Object of class gap, which is a list containing the two elements potential and
gap and additionally the original time series.
A time series object containing gdp.
The smoothing parameter for the application of the HP filter. If not supplied,
lambda = 6.25 for yearly data, lambda = 1600 for quarterly data, and lambda = 129600
for monthly data.
(optional) A two element vector containing a year and a period specifying the end point for the filter application.
(optional) A two element vector containing a year and a period specifying the start point for the filter application.