returns X(min(D,t)) and min(D,t) and their ratio. for censored observation 0. to use with the IPCW models implemented.
evalTerminal(
formula,
data = data,
death.code = 2,
time = NULL,
marks = NULL,
mark.codes = NULL
)
formula with 'Event' outcome and X to evaluate at min(D,t)
data frame
codes for death (terminating event, 2 default)
for evaluation
for terminal events to add marks*I(D <=t ,epsilon "in" mark.codes) to X(min(D,t))
gives death codes for which to add mark value
Thomas Scheike