cross-validation index function, separate train and test sets
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 pnfold
: an positive integer, indicates the number of folds in cva list object, includes
Useful links