View source: R/make_surv_table.R
make_surv_table | R Documentation |
Create a nice data frame from a survival model for automatically generating a table.
make_surv_table(fit_surv, nround = 2, surv = TRUE, event = NULL)
nround |
integer indicating the number of decimal places (round) or significant digits (signif) to be used. Negative values are allowed |
surv |
TRUE/FALSE. Per defecte supervivencia TRUE, decreixent. FALSE indica cumulative events (f(y) = 1-y) |
event |
antic parametre |
survobj |
|
a data frame with labeled columns
Miriam Mota miriam.mota@vhir.org
data(aml) surv_fit <-survfit(Surv(time = aml$time, event = aml$status) ~ 1) stargazer(make_surv_table(surv_fit), summary = FALSE, type = c('latex'), title = 'Summary of status survival fit', rownames = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.