Forecast Reconciliation

Classical (bottom-up and top-down), optimal combination and heuristic point (Di Fonzo and Girolimetto, 2023 ) and probabilistic (Girolimetto et al. 2024 ) forecast reconciliation procedures for linearly constrained time series (e.g., hierarchical or grouped time series) in cross-sectional, temporal, or cross-temporal frameworks.


FoReco logo

R-CMD-check CRANstatus develversion License:GPL-3

Forecast Reconciliation is a a post-forecasting process aimed to improve the accuracy and align forecasts for a system of linearly constrained (e.g. hierarchical/grouped) time series. The FoReco package provides a comprehensive set of classical (bottom-up, top-down and middle-out), and modern (optimal and heuristic combination) forecast reconciliation procedures in different frameworks including cross-sectional, temporal, or cross-temporal settings.

The core functions for reconciliation categorized by framework are as follows:

Reconciliation Cross-sectional Temporal Cross-Temporal
Classical reconciliation
Top-down: *td() cstd() tetd() cttd()
Bottom-up: *bu() csbu() tebu() ctbu()
Middle-out: *mo() csmo() temo() ctmo()
Regression‑based reconciliation
Least squares: *rec() csrec() terec() ctrec()
LCC: *lcc() cslcc() telcc() ctlcc()
Probabilistic reconciliation
MVN: *mvn() csmvn() temvn() ctmvn()
Sample-based: *smp() cssmp() tesmp() ctsmp()

Additionally, FoReco provides various functions for different aspects of forecast reconciliation, including aggregating time series, balancing hierarchies, computing projection and covariance matrices, and more.

Installation

You can install the stable version on CRAN

install.packages("FoReco")

You can also install the development version from Github

# install.packages("devtools")
devtools::install_github("danigiro/FoReco")

Getting Started

To get started with using the FoReco package, refer to the documentation for detailed information on how to apply different forecast reconciliation procedures to your data.

Issues and Contributions

If you encounter any bugs or have suggestions for improvements, please feel free to report them on GitHub Issues page. Contributions are also welcome!

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("FoReco")

1.3.1 by Daniele Girolimetto, 3 months ago


https://github.com/danigiro/FoReco, https://danigiro.github.io/FoReco/


Report a bug at https://github.com/danigiro/FoReco/issues


Browse source code at https://github.com/cran/FoReco


Authors: Daniele Girolimetto [aut, cre] (ORCID: , Tommaso Di Fonzo [aut] , Yangzhuoran Fin Yang [ctb] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports methods, osqp, stats, cli, distributional, lifecycle, generics

Depends on Matrix

Suggests testthat


Depended on by FoCo2, FoRecoML.


See at CRAN