reorder_list: Helper function to reorder lists according to cvFolds

View source: R/utils.R

reorder_listR Documentation

Helper function to reorder lists according to cvFolds

Description

Helper function to reorder lists according to cvFolds

Usage

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.


benkeser/drtmle documentation built on Jan. 6, 2023, 11:40 a.m.