The function cvobs
gives the index of observations in each test set. This function is not intended to be used directly.
cvobs(n,ntest,ntrain,Kfold,type=
c("random", "timeseries", "consecutive", "interleaved"), npermut, seed)
Returns a list with in each component the index of observations to be used as a test set.
The total number of observations.
The number of observations in test set.
The number of observations in training set.
Either the number of folds or a boolean or NULL
.
A character string in
random
,timeseries
,consecutive
, interleaved
and give the type of segments.
The number of random draw (with replacement), used for
type="random"
.
Controls the seed of random generator
(via set.seed
).
Pierre-Andre Cornillon, Nicolas Hengartner and Eric Matzner-Lober.
Cornillon, P.-A.; Hengartner, N.; Jegou, N. and Matzner-Lober, E. (2012) Iterative bias reduction: a comparative study. Statistics and Computing, 23, 777-791.
Cornillon, P.-A.; Hengartner, N. and Matzner-Lober, E. (2013) Recursive bias estimation for multivariate regression smoothers Recursive bias estimation for multivariate regression smoothers. ESAIM: Probability and Statistics, 18, 483-502.
Cornillon, P.-A.; Hengartner, N. and Matzner-Lober, E. (2017) Iterative Bias Reduction Multivariate Smoothing in R: The ibr Package. Journal of Statistical Software, 77, 1--26.
ibr