The tmle package allows for the functional form of the nuisance parameters g and Q to be specified via the optional arguments gform and Qform, respectively. These arguments simply take in a character that is then translated to a formula for the glm function (via as.formula) --- e.g., gform = "A ~ W1 + W2". Since the machinery used for point estimation in this package relies on the tmle package (though the variance estimator is different here), an option should be added to allow gform and Qform (and, indeed, other arbitrary arguments) to be passed to the call to tmle in biomarkertmle_exposure. This would be most simply done via the addition of a ... argument.
The
tmle
package allows for the functional form of the nuisance parameters g and Q to be specified via the optional argumentsgform
andQform
, respectively. These arguments simply take in a character that is then translated to a formula for theglm
function (viaas.formula
) --- e.g.,gform = "A ~ W1 + W2"
. Since the machinery used for point estimation in this package relies on thetmle
package (though the variance estimator is different here), an option should be added to allowgform
andQform
(and, indeed, other arbitrary arguments) to be passed to the call totmle
inbiomarkertmle_exposure
. This would be most simply done via the addition of a...
argument.