DRtransform | R Documentation |
Given a pred_event_censor
object in a time window, calculates the doubly robust transformation in the time window. The transformation is used as the outcome when estimating the conditional survival probability at the next visit time.
DRtransform(
follow.up.time,
pred_event_censor_obj,
tvals,
next.visit.time = Inf,
id.var,
time.var,
event.var,
denom.survival.trunc
)
follow.up.time |
see |
pred_event_censor_obj |
a |
tvals |
see |
next.visit.time |
the next visit time. Default is |
id.var |
see |
time.var |
see |
event.var |
see |
denom.survival.trunc |
see |
a named matrix of transformations used for regression. Each row corresponds to an individual; each column corresponds to a value of tvals
. Row names are elements in follow.up.time$id.var
; column names are values of tvals
.
This function is designed to be called by other functions such as SDRsurv
, therefore inputs are not thoroughly checked. Incorrect inputs may lead to errors with non-informative messages. The user may call this function if more flexibility is desired.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.