Description Usage Arguments Value
View source: R/censoring_estimate.R
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. The 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.
1 2 3 |
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 |
returnModels |
A boolean indicating whether to return the
|
verbose |
A boolean indicating whether the function should print messages to indicate progress. |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.