Helper function to clean up the internal code of drtmle
estimategrn_loop(validRows, Y, A, W, DeltaA, DeltaY, tolg, Qn, gn, glm_gr,
SL_gr, a_0, reduction, returnModels, use_future)A list of length cvFolds containing the row
indexes of observations to include in validation fold.
A vector of continuous or binary outcomes.
A vector of binary treatment assignment (assumed to be equal to 0 or 1).
A data.frame of named covariates.
Indicator of missing treatment (assumed to be equal to 0 if missing 1 if observed).
Indicator of missing outcome (assumed to be equal to 0 if missing 1 if observed).
A numeric indicating the minimum value for estimates of the propensity score.
A list of outcome regression estimates evaluated on observed data.
A list of propensity regression estimates evaluated on observed data.
A character describing a formula to be used in the call to
glm for the second reduced-dimension regression. Ignored if
SL_gr!=NULL.
A vector of characters or a list describing the Super Learner library to be used for the reduced-dimension propensity score.
A list of fixed treatment values .
A character equal to 'univariate' for a univariate
misspecification correction or 'bivariate' for the bivariate version.
A boolean indicating whether to return model fits for the outcome regression, propensity score, and reduced-dimension regressions.
Should future be used to parallelize?