powered by
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)
Vector of observations.
Number of repetitions.
Fraction of left-out points. For leave-one-out, use frac = 1, otherwise use any value less than 1. Default is 0.1 (leave-10%-out).
frac = 1
Logical. If TRUE, the default, the left-out points are made in contiguous blocks; otherwise, they are scattered randomly.
TRUE
A list of cross-validation folds
# NOT RUN { Z <- make_Z(p1Seasonal$Qa, nRuns = 30, frac = 0.25, contiguous = TRUE) # }
Run the code above in your browser using DataLab