neverhpfilter: An Alternative to the Hodrick-Prescott Filter

In the working paper titled "Why You Should Never Use the Hodrick-Prescott Filter", James D. Hamilton proposes a new alternative to economic time series filtering. The neverhpfilter package provides functions and data for reproducing his work. Hamilton (2017) <doi:10.3386/w23429>.

Version: 0.5-0
Depends: R (≥ 3.5.0), xts (≥ 0.11-0), zoo (≥ 1.8-0)
Suggests: simplermarkdown, tinytest
Published: 2025-08-21
Author: Justin M. Shea [aut, cre]
Maintainer: Justin M. Shea <jshea01 at uic.edu>
BugReports: https://github.com/JustinMShea/neverhpfilter/issues
License: GPL-3
URL: https://justinmshea.github.io/neverhpfilter/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: neverhpfilter results

Documentation:

Reference manual: neverhpfilter.html , neverhpfilter.pdf
Vignettes: Getting started (source, R code)
Reproducing Hamilton (source, R code)

Downloads:

Package source: neverhpfilter_0.5-0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): neverhpfilter_0.5-0.tgz
Old sources: neverhpfilter archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=neverhpfilter to link to this page.