Generates a temporal aggregation matrix
[C]=aggreg1(N,s,opt)
* N = number of low frequency data
* s = frequency conversion
* opt = type of temporal aggregation:
- opt = -1 ---> sum (flow)
- opt = 0 ---> average (index)
- opt = k ---> k-th element (k>=1 and k<=s)
* C = (N x sN) temporal aggregation matrix
x=grand(44,1,'nor',0,1) X=aggreg1(x,4,0) // Aggregates the series x from quarterly to annual (conversion from frequency 4 to 1) by taking the mean of the quarterly data. | ![]() | ![]() |