hpfilter
The One- And Two-Sided Hodrick-Prescott Filter
Description
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.
Downloads
389
Last 30 days
9737th
1.1K
Last 90 days
5.4K
Last year
Trend: +11.1% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
CRAN incoming feasibility
Maintainer: ‘Alexandru Monahov <alexandru.monahov@proton.me>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Alexandru",
family = "Monahov",
role = c("aut", "cre"),
email = "alexandru.monahov@proton.me")
as necessary.
CRAN incoming feasibility
Maintainer: ‘Alexandru Monahov <alexandru.monahov@proton.me>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Alexandru",
family = "Monahov",
role = c("aut", "cre"),
email = "alexandru.monahov@proton.me")
as necessary.
Check History
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
CRAN incoming feasibility
Maintainer: ‘Alexandru Monahov <alexandru.monahov@proton.me>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Alexandru",
family = "Monahov",
role = c("aut", "cre"),
email = "alexandru.monahov@proton.me")
as necessary.
CRAN incoming feasibility
Maintainer: ‘Alexandru Monahov <alexandru.monahov@proton.me>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Alexandru",
family = "Monahov",
role = c("aut", "cre"),
email = "alexandru.monahov@proton.me")
as necessary.