Description Usage Arguments Value
View source: R/helper_routines.R
The risk difference (RD) of regimens 1 (dx1) and 2 (dx2) at time-point t
is
calculated as S_2(t) - S_1(t)
,
where S_2(t)
and S_1(t)
are the corresponding survival estimates
at t
for regimens 2 and 1, respectively.
The RDs are evaluated for all intersecting time-points in the input data
St_data
. When the input data contains survival estimates for more
than 2 regimens the RDs between all regimens are evaluated in their order
of appearance. This order can be controlled with the argument order
.
1 |
St_data |
A list containing |
St_name |
The name of the column containing the survival estimates. |
getSEs |
Should standard errors of risk difference also be estimates?
Note that the estimates will only be available when the data.table for
each regimen contains a column of subject-specific influence curve (IC)
based estimates. The column containing these ICs should be named |
order |
In which order should the RD contrasts be evaluated?
For example, suppose the input data contains
the survival estimates for 3 regimens, where |
A long format dataset (tibble
) with risk differences.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.