fold {nnlasso} | R Documentation |
The function returns a particular fold after k-fold partitioning by kfold function.
fold(data1,k,i)
data1 |
A matrix. |
k |
Number of folds |
i |
The fold to be returned |
This function is internal and used by cross validation routines.
A matrix with desired fold specified.
Baidya Nath Mandal and Jun Ma
data=matrix(rnorm(10*4),10,4)
kfold(data,3)
fold(data,3,2)