Closed benkeser closed 6 years ago
Having written that bit of the code, I am suffering from extreme tunnel vision so I'm likely missing something here, but how is this different from specifying whatever covariates you want to use in the estimation of \Pi_0 in the argument V
?
In keeping with the notation from Mark and Sherri's paper, V is the set of all covariates used in estimating the censoring mechanism, so the regression performed by est_ipcw
should always be of the form Delta ~ .
, where .
is simply all of V
. To remove a variable, one should simply drop it from the node V. Is there some reason we want, say, V = c(W, Y) but IPCW reg = Delta ~ W? If not then I think we should just remove the equation for the GLM in the IPCW regression part.
It's about how the covariates are named. In the call to glm
for estimating \Pi_0, the data passed to glm
is a data frame with columns named V1
, V2
, etc... So the user would have to know what columns of W map to V1
, V2
, etc...
Resolved by #16
It seems like the function to estimate \Pi_0 requires a formula for glm to be specified using
V1
,V2
, etc... It would be more helpful if the user could specify in terms ofcolnames(W)
andY
.