R/residualsfun.R
residuals_matrix.Rd
Arrange temporal and cross-temporal residuals in a matrix form
residuals_matrix(res, m)
(\(n \times N(k^\ast + m)\)) matrix or (\(N(k^\ast + m)\)) vector containing the residuals at all the temporal frequencies ordered [lowest_freq' ... highest_freq']'.
Highest available sampling frequency per seasonal cycle (max. order of temporal aggregation, \(m\)), or a subset of \(p\) factors of \(m\).
a (\(N \times n(k^\ast + m)\)) matrix (if the input res is a vector then \(n = 1\))
Other utilities:
Cmatrix()
,
FoReco2ts()
,
agg_ts()
,
arrange_hres()
,
commat()
,
ctf_tools()
,
hts_tools()
,
lcmat()
,
oct_bounds()
,
score_index()
,
shrink_estim()
,
thf_tools()
data(FoReco_data)
mat <- residuals_matrix(FoReco_data$res, m = 12)