Learn R Programming

sectorgap (version 0.1.0)

hpfilter: HP filter

Description

Applies the Hodrick Prescott Filter.

Usage

hpfilter(x, lambda)

Value

A univariate time series object containing the trend of the original time series.

Arguments

x

A univariate time series object.

lambda

The smoothing parameter.