R/utils.R
make_kfold.Rd
Turn folds from 2K-fold cross-fitting into individual K-fold folds
make_kfold( cross_fitting_folds, sample_splitting_folds = rep(1, length(unique(cross_fitting_folds))), C = rep(1, length(cross_fitting_folds)) )
the vector of cross-fitting folds
the sample splitting folds
vector of whether or not we measured the observation in phase 2
the two sets of testing folds for K-fold cross-fitting