Skip to content

hpfilter

1.0.2

The One- And Two-Sided Hodrick-Prescott Filter

1packages depend
5.2Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Alexandru MonahovFirst published 2023-02-243 releasesCRAN page ↗

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.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.9 min · r-release-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 662 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

5.2K
CRAN downloads in the past year
Rank #7,959 · ~14/day · ~437/mo
Daily download trend is not available in this view yet.
29130 days
1.1K90 days
5.2K1 year
Compare downloads with other packages →
Also on135 r2u24 autocran17 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (1)
Matrix
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Datasets

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (1)
no longer listed · 1.0.0 to 1.0.2
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.2Latest
    2023-05-28 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.1
    2023-02-26 · diff ↗
  • 1.0.0
    2023-02-24
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-02-24
Total releases
3 / 3 yrs
License
CC BY-SA 4.0
Minimum R
≥ 3.5.0
Bundled data
1.1 KB / 1 file
Download size
116 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("hpfilter")

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for hpfilter version 1.0.2 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy