View source: R/TMLE_updaters.R
Performs linear TMLE update using main-terms GLM (family=gaussian()), based on speedglm
package.
This function may be passed to fit_GCOMP / fit_TMLE function.
May be also used as a separate learner for iTMLE.
1 2 3 4 |
Y |
Input outcomes |
X |
Input design matrix with training data. Must contain a column named "offset", which contains the offsets converted to logit-linear scale. |
newX |
Input design matrix with test data.
Same requirement as for |
family |
Link function (ignored). |
obsWeights |
Row-specific weights |
... |
Additional arguments to be passed on to |
object |
Results of calling |
newdata |
Design matrix with test data for which predictions should be obtained. May contain a column named "offset", instead of it being passed as a separate argument. |
offset |
Offset (on logit scale if using logistic regression update). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.