Description Usage Arguments Value
View source: R/get_risk_table.R
get_risk_table
Calculate risk table for a simulated two-arm survival data set.
1 |
dt |
Data frame containing simulated survival data set in standard format.
Three columns: survival time |
A risk table with columns:
t
the event times, in ascending order
n_e
the number of patients at risk on the experimental treatment arm just prior to t
.
n_c
the number of patients at risk on the control treatment arm just prior to t
.
d_e
the number of events on the experimental arm at time t
.
d_c
the number of events on the control arm at time t
.
n
= n_e
+ n_c
.
d
= d_e
+ d_c
.
l
= l_e
+ l_c
.
l_e
the number of patients on the experimental treatment arm who censored after the current t
but before
the subsequent t
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.