Home   >   User Resources   >   Online Help   >   apaTemporal.Window.TimeIdx.All
 

 

Function index Version 3.0.0

apaTemporal.Window.TimeIdx.All(Data, nInSample, nOutOfSample, nSteps, nShifts, IsCumulativeInSample, IsCumulativeOutOfSample, WindowIndex, IsInSampleOtherwiseOutOfSample)

Excel=apaTemporal.Window.TimeIdx.All(Data, nInSample, nOutOfSample, nSteps, nShifts, IsCumulativeInSample, IsCumulativeOutOfSample, WindowIndex, IsInSampleOtherwiseOutOfSample)

Result

Returns all time indices (row numbers) of a particular rolling window, either of the in-sample or of the out-of-sample window.

Syntax

Data: rows x cols matrix of data

nInSample: number of obs in the in-sample window

nOutOfSample: number of obs in the out-of-sample window

nSteps: number of steps to move the windows

nShifts: number of +/- shifts of the beginning of the out-of-sample window

IsCumulativeInSample: TRUE to always start the in-sample data set at the first observation, i.e. to accumulate observations

IsCumulativeOutOfSample: TRUE to always start the out-of-sample data set at the first observation

WindowIndex: index of the dataset. Ranges from 1 to the maximum number of datasets possible.

IsInSampleOtherwiseOutOfSample: optional; TRUE to return the in-sample time indices, FALSE to return the out-of-sample time indices; default: TRUE

Algorithm

The windows are defined as in apaTemporal.Window.Data. The time indices of the window with the given WindowIndex are returned.

Remarks

nShifts can be negative.