Description Usage Arguments Value Author(s)
View source: R/SurrogateOutcome.R
Helper function; used by delta.estimate function
1 | delta.estimate.RMST(xone, xzero, deltaone, deltazero, t, weight = NULL, delta.only = F)
|
xone |
numeric vector, observed event times for the primary outcome in the treatment group. |
xzero |
numeric vector, observed event times for the primary outcome in the control group. |
deltaone |
numeric vector, event/censoring indicators for the primary outcome in the treatment group. |
deltazero |
numeric vector, event/censoring indicators for the primary outcome in the control group. |
t |
time of interest for treatment effect. |
weight |
weight; optional |
delta.only |
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 |
A list is returned:
delta |
the difference in the restricted mean survival between the two treatment groups. |
s1 |
only if delta.only = F; the restricted mean survival in group 1. |
s0 |
only if delta.only = F; the restricted mean survival in group 0. |
Layla Parast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.