hpfilter

The One- And Two-Sided Hodrick-Prescott Filter

CRAN Package

Provides two functions that implement the one-sided and two-sided versions of the Hodrick-Prescott filter. The one-sided version is a Kalman filter-based implementation, whereas the two-sided version uses sparse matrices for improved efficiency. References: Hodrick, R. J., and Prescott, E. C. (1997) doi:10.2307/2953682 McElroy, T. (2008) doi:10.1111/j.1368-423X.2008.00230.x Meyer-Gohde, A. (2010) https://ideas.repec.org/c/dge/qmrbcd/181.html For more references, see the vignette.


Documentation


Team


Insights

Last 30 days

Last 365 days

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports1 package
  • Suggests2 packages