Description Usage Arguments Value Examples
Creates a event table from a survival model. Return a table with cumulative number of events, the number at risk, and the survival probability with confidence interval.
1 2 3 4 |
fit |
output from |
times |
Optional vector of times to show in the table. By default will include equally spaced times from the minimum event time to the maximum event time with 10 time points. |
kable output of the KM event table from survfit fit
at time points times
1 2 3 | library(survival)
fit <- survfit(Surv(time, status) ~ sex, data=survival::lung)
subpat::kmEventTables(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.