make_Z {ldsr} | R Documentation |
Make cross-validation folds.
Description
Make a list of cross-validation folds. Each element of the list is a vector of the cross-validation points for one cross-validation run.
Usage
make_Z(obs, nRuns = 30, frac = 0.1, contiguous = TRUE)
Arguments
obs |
Vector of observations. |
nRuns |
Number of repetitions. |
frac |
Fraction of left-out points. For leave-one-out, use |
contiguous |
Logical. If |
Value
A list of cross-validation folds
Examples
Z <- make_Z(NPannual, nRuns = 30, frac = 0.25, contiguous = TRUE)
[Package ldsr version 0.0.2 Index]