View source: R/Functions_LpS.R
cv.separate | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.