Computes an estimate of the hazard for censoring using either
glm or SuperLearner based
on log-likelihood loss. The function then computes the censoring survival
distribution based on these estimates. The structure of the function is
specific to how it is called within survtmle. In particular,
dataList must have a very specific structure for this function to
run properly. The list should consist of data.frame objects. The
first will have the number of rows for each observation equal to the
ftime corresponding to that observation. Subsequent entries will
have t0 rows for each observation and will set trt column
equal to each value of trtOfInterest in turn. One of these columns
must be named C that is a counting process for the right-censoring
variable. The function will fit a regression with C as the outcome
and functions of trt and names(adjustVars) as specified by
glm.ctime or SL.ctime as predictors.
estimateCensoring( dataList, adjustVars, t0, SL.ctime = NULL, glm.ctime = NULL, glm.family, cvControl, returnModels = FALSE, verbose = TRUE, gtol = 0.001, ... )
| dataList | A list of |
|---|---|
| adjustVars | Object of class |
| t0 | The timepoint at which |
| SL.ctime | A character vector or list specification to be passed to the
|
| glm.ctime | A character specification of the right-hand side of the
equation passed to the |
| glm.family | The type of regression to be performed if fitting GLMs in
the estimation and fluctuation procedures. The default is "binomial" for
logistic regression. Only change this from the default if there are
justifications that are well understood. This is inherited from the calling
function (either |
| cvControl | A |
| returnModels | A |
| verbose | A |
| gtol | The truncation level of predicted censoring survival to handle positivity violations. |
| ... | Other arguments. Not currently used. |
The function returns a list that is exactly the same as the input
dataList, but with a column named G_dC added to it, which is
the estimated conditional survival distribution for the censoring variable
evaluated at the each of the rows of each data.frame in
dataList.