Home   >   User Resources   >   Online Help   >   apaTemporal.Window.Data
 

 

Function index Version 3.0.0

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

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

Result

Returns a particular data set when rolling windows through data.

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 data set, FALSE to return the out-of-sample data set; default: TRUE

Remarks

nShifts can be negative.

WindowIndex = 0 returns the last window.

nOutOfSample = 0 results in in-sample window data only, ignoring the out-of-sample window.