reorder_list function

Helper function to reorder lists according to cvFolds

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)

Arguments

  • a_list: Structured list of nuisance parameters
  • a_0: Treatment levels
  • validRows: List of rows of data in validation data for each split.
  • n_SL: Number of super learners. If >1, then predictions are averaged
  • grn_ind: Structure of grn call is slightly different
  • n: Sample size
  • for_se_cv: Is this being used to average over cross-validated standard errors? Affects index of a_list.
  • Maintainer: David Benkeser
  • License: MIT + file LICENSE
  • Last published: 2023-01-05