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,
|
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]