nhejazi/biotmle

Allow specification of functional forms for g and Q fits

Closed this issue · 1 comments

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.

Resolved by #60