Helper function; used by delta.estimate function
delta.estimate.RMST(xone, xzero, deltaone, deltazero, t, weight = NULL, delta.only = F)A list is returned:
the difference in the restricted mean survival between the two treatment groups.
only if delta.only = F; the restricted mean survival in group 1.
only if delta.only = F; the restricted mean survival in group 0.
numeric vector, observed event times for the primary outcome in the treatment group.
numeric vector, observed event times for the primary outcome in the control group.
numeric vector, event/censoring indicators for the primary outcome in the treatment group.
numeric vector, event/censoring indicators for the primary outcome in the control group.
time of interest for treatment effect.
weight; optional
TRUE or FALSE; if TRUE then only delta is returned, if FALSE then delta and restricted mean survival time for each treatment group is also returned
Layla Parast