cv.separate: cross-validation index function, separate train and test sets

View source: R/Functions_LpS.R

cv.separateR Documentation

cross-validation index function, separate train and test sets

Description

a function to setup training and testing datasets, select data point in test every nfold time points

Usage

cv.separate(period, nfold = 5)

Arguments

period

an input dataset with size of n by p

nfold

an positive integer, indicates the number of folds in cv

Value

a list object, includes

train

training dataset

test

test dataset


VARDetect documentation built on May 10, 2022, 9:07 a.m.