
Last chance! 50% off unlimited learning
Sale ends in
generate.split
generates niter
random splittings into learning and test
data sets for use in Monte-Carlo cross-validation (MCCV).
generate.split(niter,n,ntest)
niter
x ntest
matrix giving the indices of the observations included in the
test sets. The i-th row gives the indices of the ntest
observations included in the test
set for the i-th MCCV iteration.
generate.cv
,wilcox.split
,wilcox.selection.split
# load WilcoxCV library
library(WilcoxCV)
# Generate 50 splits with ratio 2:1 for a data set including 90 observations
my.split<-generate.split(niter=50,n=90,ntest=30)
Run the code above in your browser using DataLab