Description Usage Arguments Value Examples
View source: R/FunctionsForPackage09242019.R
IPCW-TMLE function to estimate E[E[Y|A=1]] and E[E[Y|A=0]] separately, and to also estimate the marginalized risk difference, relative risk, and odds ratio. This function assumes that the full phase one data set is input with weights equal to 0 for those observations not selected for the second phase. An indicator variable, delta, should equal 1 for all phase-two data and 0 for all other observations (non-phase-two).
1 2 | weighted.tmle.separate(w, a, y, delta, Q.SL.library, g.SL.library, wgts,
max.wgt = Inf)
|
w |
The covariates |
a |
The treatment or exposure binary variable. |
y |
The outcome |
delta |
Indicator for inclusion into the second phase |
Q.SL.library |
SuperLearner library of algorithms for Q estimation |
g.SL.library |
SuperLearner library of algorithms for g estimation |
wgts |
Observation level weights; should be 0 for delta=0 |
Estimates of marginalized risk difference, RR, and OR
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.