View source: R/ftime_missing_estimate.R
estimateFtimeMissing | R Documentation |
This function computes the conditional probability of having
non-missing ftime
for each level of treatment using glm
or SuperLearner
.
estimateFtimeMissing(
dat,
adjustVars,
glm.ftimeMissing = NULL,
SL.ftimeMissing = NULL,
cvControl,
returnModels = FALSE,
verbose = FALSE,
gtol = 0.001,
trtOfInterest,
...
)
dat |
An object of class |
adjustVars |
An object of class |
glm.ftimeMissing |
A character specification of the right-hand side of the
equation passed to the |
SL.ftimeMissing |
A character vector or list specification to be passed to the
|
cvControl |
A |
returnModels |
A |
verbose |
A |
gtol |
The truncation level of predicted missingness probabilities to handle positivity violations. |
trtOfInterest |
An input specifying which levels of |
... |
Other arguments. Not currently used |
dat The input data.frame
object with two added columns
corresponding with the conditional probability (given adjustVars
) of
trt==max(trt)
and trt==min(trt)
.
ftimeMissingMod If returnModels = TRUE
, the fitted glm
or
SuperLearner
object. Otherwise, NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.