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>.

Package details

AuthorMichal Kinel [aut, cre] (ORCID: <https://orcid.org/0009-0007-3295-7199>)
MaintainerMichal Kinel <michal.kinel@gmail.com>
LicenseMIT + file LICENSE
Version0.2.1
URL https://github.com/michal0091/MacroFilters https://michal0091.github.io/MacroFilters/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("MacroFilters")

Try the MacroFilters package in your browser

Any scripts or data that you put into this service are public.

MacroFilters documentation built on June 12, 2026, 1:06 a.m.