gapHP {RGAP}R Documentation

HP-filter output gap

Description

Computes a HP filtered output gap.

Usage

gapHP(x, lambda = NULL, end = NULL, start = NULL)

Arguments

x

A time series object containing gdp.

lambda

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.

end

(optional) A two element vector containing a year and a period specifying the end point for the filter application.

start

(optional) A two element vector containing a year and a period specifying the start point for the filter application.

Value

Object of class gap, which is a list containing the two elements potential and gap and additionally the original time series.


[Package RGAP version 0.1.1 Index]