cstools | R Documentation |
Some useful tools for the cross-sectional forecast reconciliation of a linearly constrained (e.g., hierarchical/grouped) multiple time series.
cstools(agg_mat, cons_mat, sparse = TRUE)
agg_mat |
A ( |
cons_mat |
A ( |
sparse |
Option to return sparse matrices (default is |
A list with four elements:
dim |
A vector containing information about the number of series for the complete
system ( |
agg_mat |
The cross-sectional aggregation matrix. |
strc_mat |
The cross-sectional structural matrix. |
cons_mat |
The cross-sectional zero constraints matrix. |
Cross-sectional framework:
csboot()
,
csbu()
,
cscov()
,
cslcc()
,
csmo()
,
csrec()
,
cstd()
Utilities:
FoReco2matrix()
,
aggts()
,
balance_hierarchy()
,
commat()
,
csprojmat()
,
ctprojmat()
,
cttools()
,
df2aggmat()
,
lcmat()
,
recoinfo()
,
res2matrix()
,
shrink_estim()
,
teprojmat()
,
tetools()
,
unbalance_hierarchy()
# Cross-sectional framework
# One level hierarchy A = [1 1]
A <- matrix(1, 1, 2)
obj <- cstools(agg_mat = A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.