Note – The latest release of FoReco introduces significant changes to its function notation and adds several new features. This major update, FoReco 1.0, is not compatible with previous versions due to the substantial changes made to the package's core structure. The previous version is available on Github (docs).
Due to the significant changes in FoReco 1.0, users are advised to carefully review the updated documentation and examples before using the new version. The latest documentation and release notes are available on danigiro.github.io/FoReco/
-
Updated Function Notation: All functions related to cross-sectional, temporal, and cross-temporal frameworks now use the prefixes cs, te, and ct, respectively. For example, the optimal combination reconciliation functions are now
csrec()
,terec()
, andctrec()
. -
Simplified Function Outputs: Reconciliation functions now return only matrices. Additional information can be accessed using
attr(., "FoReco")
or therecoinfo()
function. -
New Datasets: Two new datasets,
itagdp
(Italian Quarterly National Accounts) andvndata
(Australian Tourism Demand), are included along with their respective aggregation or constraint matrices. -
Classic Approach: The middle-out approach (
csmo()
,temo()
, andctmo()
) has been implemented alongside the classic bottom-up (csbu()
,tebu()
, andctbu()
) and top-down (cstd()
,tetd()
, andcttd()
) methods. -
Level Conditional Coherent Reconciliation: Level conditional coherent reconciliation is now available for all constraints:
cslcc()
(cross-sectional),telcc()
(temporal), andctlcc()
(cross-temporal). -
Immutable reconciliation: The
immutable()
parameter has been added to the reconciliation functions (csrec()
,terec()
, andctrec()
) to prevent the base forecasts from being modified with both the structural (approach='strc'
) and the zero-constrained (approach='proj'
) approach. -
Balanced and unbalanced hierarchy: added
balance_hierarchy()
andunbalance_hierarchy()
for dealing with balanced and unbalanced hierarchies. -
Projection Matrix Functions: Functions
csprojmat()
,teprojmat()
, andctprojmat()
have been added to obtain projection matrices. -
Covariance Matrix Functions: Functions
cscov()
,tecov()
, andctcov()
have been added to obtain covariance matrices. -
Function Renaming: Several functions have been renamed to improve consistency and clarity
Cmatrix()
->df2aggmat()
hts_tools()
->cstools()
thf_tools()
->tetools()
ctf_tools()
->cttools()
agg_ts()
->aggts()
residuals_matrix()
->res2matrix()
boot_cs()
->csboot()
boot_te()
->teboot()
boot_ct()
->ctboot()
htsrec()
->csrec()
thfrec()
->terec()
octrec()
->ctrec()
lccrec()
->cslcc()