Package: MacroFilters 0.2.1

MacroFilters: Robust Trend-Cycle Decomposition for Macroeconomic Time Series
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 algorithm includes an automated two-layer diagnostic stage for unit roots and structural breaks, optimized via corrected AICc for computational efficiency. Methodology detailed in Kinel (2026) <doi:10.2139/ssrn.6371138>.
Authors:
MacroFilters_0.2.1.tar.gz
MacroFilters_0.2.1.zip(r-4.7-any)MacroFilters_0.2.1.zip(r-4.6-any)MacroFilters_0.2.1.zip(r-4.5-any)
MacroFilters_0.2.1.tgz(r-4.6-any)MacroFilters_0.2.1.tgz(r-4.5-any)
MacroFilters_0.2.1.tar.gz(r-4.7-any)MacroFilters_0.2.1.tar.gz(r-4.6-any)
MacroFilters_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
MacroFilters/json (API)
| # Install 'MacroFilters' in R: |
| install.packages('MacroFilters', repos = c('https://michal0091.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/michal0091/macrofilters/issues
Pkgdown/docs site:https://michal0091.github.io
- es_gdp - Spain Real GDP — FRED Vintage
- fr_gdp - France Real GDP — FRED Vintage
- us_gdp_vintage - US Real GDP — FRED Vintage
Last updated from:6bdff4954d. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 170 | ||
| source / vignettes | OK | 244 | ||
| linux-release-x86_64 | OK | 166 | ||
| macos-release-arm64 | OK | 139 | ||
| macos-oldrel-arm64 | OK | 147 | ||
| windows-devel | OK | 125 | ||
| windows-release | OK | 116 | ||
| windows-oldrel | OK | 103 | ||
| wasm-release | OK | 114 |
Exports:autoplotbhp_filterhamilton_filterhp_filtermbh_filter
Dependencies:clicpp11curldata.tablefarverFormulaggplot2gluegtableinumisobandjsonlitelabelinglatticelibcoinlifecycleMatrixmboostmvtnormnnlspartykitquadprogquantmodR6RColorBrewerrlangrpartS7scalesstabssurvivaltseriesTTRvctrsviridisLitewithrxtszoo
Last update: 2026-06-11
Started: 2026-03-17
Last update: 2026-06-11
Started: 2026-02-24
Last update: 2026-06-11
Started: 2026-03-17
Last update: 2026-05-31
Started: 2026-05-31
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Plot a macrofilter decomposition with ggplot2 | autoplot.macrofilter |
| Boosted HP Filter | bhp_filter |
| Spain Real GDP — FRED Vintage | es_gdp |
| France Real GDP — FRED Vintage | fr_gdp |
| Hamilton Filter | hamilton_filter |
| Hodrick-Prescott Filter (Sparse Matrix Implementation) | hp_filter |
| MacroBoost Hybrid (MBH) Filter | mbh_filter |
| US Real GDP — FRED Vintage | us_gdp_vintage |
