apaTemporal.kFold.Data(Data, k, FoldIndex, FoldingType, IsInSampleOtherwiseOutOfSample)
Excel
=apaTemporal.kFold.Data(Data, k, FoldIndex, FoldingType, IsInSampleOtherwiseOutOfSample)Result
Returns a particular data set when k-folding data.
Syntax
Data: rows x cols matrix of data
k: number of folds performed on the data
FoldIndex: index of the folded data. Ranges from 1 to the maximum number of folds possible.
FoldingType: way the data is folded: 1 = standard k-fold, 2 = time series rolling k-fold, 3 = time series cumulative k-fold
IsInSampleOtherwiseOutOfSample: optional; TRUE to return the in-sample data set, FALSE to return the out-of-sample data set; default: TRUE
