Skip to content

MacroFilters

0.2.1

Robust Trend-Cycle Decomposition for Macroeconomic Time Series

0packages depend
798downloads / year
84.1%test coverage
13/13checks pass

Overview

About
Maintained by Michal KinelFirst published 2026-05-282 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 5.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.47
84.1%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-28
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 390 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
88%
Documented parameters
100%
Return-value docs
80%
References docs
33%

Downloads

798
CRAN downloads in the past year
Rank #12,503 · ~2/day · ~67/mo
Daily download trend is not available in this view yet.
13730 days
79890 days
7981 year
Compare downloads with other packages →
Also on16 r2u

Repository

Repository
11Stars
0Forks
0Open issues
0Open PRs
3Releases
100Commits
1Contributors
100 commits · Last activity 2026-06-11 · 0% stars, 30d

Stars over time

2026-03-03 · 42026-07-07 · 11

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/michal0091/macrofilters on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (2)
renvdata-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

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

  • 0.2.1Latest
    2026-06-12 · current release · diff ↗
  • 0.1.0
    2026-05-28
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-28
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5
Bundled data
11 KB / 3 files
Download size
1.1 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MacroFilters")
Kinel, M. (2026). MacroFilters: Robust Trend-Cycle Decomposition for Macroeconomic Time Series (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.MacroFilters

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 MacroFilters version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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