Home   >   User Resources   >   Online Help   >   apaTemporal.Aggregation.Matrix.First
 

 

Function index Version 3.0.0

apaTemporal.Aggregation.Matrix.First(nLoFreqPeriods, nHiFreqPeriods, nHiFreqPeriodsPerLoFreqPeriod, StartIndex)

Excel=apaTemporal.Aggregation.Matrix.First(nLoFreqPeriods, nHiFreqPeriods, nHiFreqPeriodsPerLoFreqPeriod, StartIndex)

Result

Generates a temporal aggregation matrix which selects the first high frequency observation of each low frequency period, i.e. “spaces out” observations.

Syntax

nLoFreqPeriods: number of low frequency periods

nHiFreqPeriods: number of high frequency periods

nHiFreqPeriodsPerLoFreqPeriod: number of high frequency periods in one low frequency period, e.g. 3 for monthly data within quarterly periods

StartIndex: optional; index of the starting point on the high frequency scale; default: 1

Algorithm

The matrix is constructed like the additive aggregation matrix (see apaTemporal.Aggregation.Matrix), except that only the first element of each 1 x nHiFreqPeriodsPerLoFreqPeriod block equals one, all other elements zero.

Remarks

StartIndex must not be larger than nHiFreqPeriodsPerLoFreqPeriod.