surv_uni_con | R Documentation |
This function generates a table with the general survival analysis results, including the number of total patients, the number of events, the P value, the AIC, and the C index. This function just modifies the output table's format.
surv_uni_con(dat, stime, sevent, svar, report_index = FALSE)
dat |
a data.frame. |
stime |
the duration of follow-up time in months. |
sevent |
the status indicator, which is generally 0 = alive, 1 = dead. |
svar |
a variable name. |
report_index |
logical value indicating if to report the show AIC and C index. |
a tibble of survival results.
Dat <- survival::lung surv_uni_con(Dat, "time", "status", "age",report_index = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.