Helper function to clean up internal code of drtmle function.
estimateQrn_loop(validRows, Y, A, W, DeltaA, DeltaY, Qn, gn, SL_Qr, glm_Qr,
family, a_0, 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 list of outcome regression estimates evaluated on observed data. If NULL then 0 is used for all Qn (as is needed to estimate reduced dimension regression for adaptive_iptw)
A list of propensity regression estimates evaluated on observed data
A vector of characters or a list describing the Super Learner library to be used for the first reduced-dimension regression.
A character describing a formula to be used in the call to
glm for the first reduced-dimension regression. Ignored if
SL_gr!=NULL.
Should be gaussian() unless called from adaptive_iptw with
binary Y.
A list of fixed treatment values.
A boolean indicating whether to return model fits for the outcome regression, propensity score, and reduced-dimension regressions.
Should future be used in the fitting process.