View source: R/modelsSummary.R
modelsSummaryTable | R Documentation |
Makes flextable summarizing list of models
modelsSummaryTable(fitlist, labels = NULL, show.lik = FALSE)
fitlist |
A list of objects of class "coxph" |
labels |
character labels of models |
show.lik |
logical Whether or not show likelihood test results |
A flextable
library(survival)
fit1=coxph(Surv(time,status) ~rx,data=anderson)
fit2=coxph(Surv(time,status) ~rx+logWBC,data=anderson)
fit3=coxph(Surv(time,status) ~rx*logWBC,data=anderson)
fitlist=list(fit1,fit2,fit3)
modelsSummaryTable(fitlist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.