residuals_matrix {FoReco}R Documentation

Arrange temporal and cross-temporal residuals in a matrix form

Description

Arrange temporal and cross-temporal residuals in a matrix form

Usage

residuals_matrix(res, m)

Arguments

res

(\(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']'.

m

Highest available sampling frequency per seasonal cycle (max. order of temporal aggregation, \(m\)), or a subset of \(p\) factors of \(m\).

Value

a (\(N \times n(k^\ast + m)\)) matrix (if the input res is a vector then \(n = 1\))

See Also

Other utilities: Cmatrix(), FoReco2ts(), agg_ts(), arrange_hres(), commat(), ctf_tools(), hts_tools(), lcmat(), oct_bounds(), score_index(), shrink_estim(), thf_tools()

Examples

data(FoReco_data)
mat <- residuals_matrix(FoReco_data$res, m = 12)


[Package FoReco version 0.2.6 Index]