apaTemporal.Aggregation(Yhifreq, nHiFreqPeriodsPerLoFreqPeriod, StartIndex)
Excel
=apaTemporal.Aggregation(Yhifreq, nHiFreqPeriodsPerLoFreqPeriod, StartIndex)Result
Aggregates high frequency data into low frequency data by summing the high frequency observations of each low frequency period (additive aggregation).
Syntax
Yhifreq: r x 1 vector of high frequency data
nHiFreqPeriodsPerLoFreqPeriod: number of high frequency periods in one low frequency period, e.g. 3 to aggregate monthly into quarterly data
StartIndex: optional; index of the starting point on the high frequency scale; default: 1
Algorithm
The result is calculated as C * Yhifreq, where C is the additive temporal aggregation matrix (see apaTemporal.Aggregation.Matrix).
Remarks
StartIndex must not be larger than nHiFreqPeriodsPerLoFreqPeriod.
