Provides high-performance tools for macroeconomic trend extraction and filtering, specifically designed to solve the end-point problem in real-time. Implements the MacroBoost Hybrid (MBH) filter using penalized P-splines and gradient boosting. Unlike the standard Hodrick-Prescott filter, 'MacroFilters' utilizes component-wise L2-boosting with robust loss functions (Huber) to handle extreme transient shocks (e.g., COVID-19) without inducing spurious trend shifts. The boosted HP variant offers stopping rules based on BIC or an augmented Dickey-Fuller test, and all filters provide block-bootstrap uncertainty bands. Methodology detailed in Kinel (2026) <doi:10.2139/ssrn.6371138>.
| Version: | 0.2.2 |
| Depends: | R (≥ 3.5) |
| Imports: | data.table (≥ 1.12.0), ggplot2 (≥ 3.4.0), Matrix (≥ 1.3-0), mboost, tseries |
| Suggests: | knitr, mFilter, rmarkdown, scales, testthat (≥ 3.0.0), xts, zoo |
| Published: | 2026-11-24 |
| DOI: | 10.32614/CRAN.package.MacroFilters |
| Author: | Michal Kinel |
| Maintainer: | Michal Kinel <michal.kinel at gmail.com> |
| BugReports: | https://github.com/michal0091/MacroFilters/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/michal0091/MacroFilters, https://michal0091.github.io/MacroFilters/ |
| NeedsCompilation: | no |
| Language: | en-US |
| Citation: | MacroFilters citation info |
| Materials: | README, NEWS |
| CRAN checks: | MacroFilters results |
| Package source: | MacroFilters_0.2.2.tar.gz |
| Windows binaries: | r-devel: MacroFilters_0.2.2.zip, r-release: MacroFilters_0.2.2.zip, r-oldrel: MacroFilters_0.2.1.zip |
| macOS binaries: | r-release (arm64): MacroFilters_0.2.2.tgz, r-oldrel (arm64): MacroFilters_0.2.2.tgz, r-release (x86_64): MacroFilters_0.2.2.tgz, r-oldrel (x86_64): MacroFilters_0.2.2.tgz |
| Old sources: | MacroFilters archive |
Please use the canonical form https://CRAN.R-project.org/package=MacroFilters to link to this page.