hpfilter: HP filter

View source: R/utils.R

hpfilterR Documentation

HP filter

Description

Applies the Hodrick Prescott Filter.

Usage

hpfilter(x, lambda)

Arguments

x

A univariate time series object.

lambda

The smoothing parameter.

Value

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


sectorgap documentation built on May 29, 2024, 10:56 a.m.