Learn R Programming

FoReco (version 0.2.6)

residuals_matrix: 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)

Value

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

Arguments

res

(n N(k^ + m)) matrix or (N(k^ + 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.

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

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

Run the code above in your browser using DataLab