R/nuisances.R
dr_folds.Rd
Construct cross-fitting folds
dr_folds(n, V = 5L, seed = 1L)
Integer sample size.
Number of folds.
RNG seed for reproducible fold assignment.
An integer vector of length n with fold ids in 1:V.
n
1:V
table(dr_folds(20, V = 5)) #> #> 1 2 3 4 5 #> 4 4 4 4 4