Description Usage Arguments Value
Use this to create a table for survival analysis. Creates a data.frame containing sample size, number of events, median survival time, and 95% CI between by groups.
1 | surv_table(data, time, event, by)
|
data |
data frame that contains time to event, event, and by variables required to create survfit object |
time |
Time variable |
event |
Event variable |
by |
By variable |
This function returns a data.frame containing a column for each level of the by variable and the pvalue with rows "N", "Events" (# events), "Median" (median survival time), "95% CI" (for median survival time).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.