View source: R/modelsSummary.R
modelsSummary | R Documentation |
Makes table summarizing list of models
modelsSummary(fitlist, show.lik = FALSE)
fitlist |
A list of objects of class "coxph" |
show.lik |
logical Whether or not show likelihood test results |
No return value, called for side effects
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)
modelsSummary(fitlist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.