Helper function to reorder lists according to cvFolds
reorder_list(a_list, a_0, validRows, n_SL = 1, grn_ind = FALSE, n, for_se_cv = FALSE)
a_list
: Structured list of nuisance parametersa_0
: Treatment levelsvalidRows
: List of rows of data in validation data for each split.n_SL
: Number of super learners. If >1, then predictions are averagedgrn_ind
: Structure of grn call is slightly differentn
: Sample sizefor_se_cv
: Is this being used to average over cross-validated standard errors? Affects index of a_list
.