cv.separate {VARDetect} | R Documentation |
a function to setup training and testing datasets, select data point in test every nfold time points
cv.separate(period, nfold = 5)
period |
an input dataset with size of n by p |
nfold |
an positive integer, indicates the number of folds in cv |
a list object, includes
training dataset
test dataset