make_Z {ldsr} | R Documentation |
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.
make_Z(obs, nRuns = 30, frac = 0.1, contiguous = TRUE)
obs |
Vector of observations. |
nRuns |
Number of repetitions. |
frac |
Fraction of left-out points. For leave-one-out, use |
contiguous |
Logical. If |
A list of cross-validation folds
Z <- make_Z(NPannual, nRuns = 30, frac = 0.25, contiguous = TRUE)