cox2.display | R Documentation |
Table for coxph.object with model option: TRUE - allow "frailty" or "cluster" model
cox2.display(cox.obj.withmodel, dec = 2, msm = NULL)
cox.obj.withmodel |
coxph.object with model option: TRUE |
dec |
Decimal point, Default: 2 |
msm |
Multi state model, Default: NULL |
GEE like - cluster, Mixed effect model like - frailty
Table, cluster/frailty info, metrics, caption
library(survival)
data(lung)
fit1 <- coxph(Surv(time, status) ~ ph.ecog + age + cluster(inst), data = lung, model = TRUE)
fit2 <- coxph(Surv(time, status) ~ ph.ecog + age + frailty(inst), data = lung, model = TRUE)
cox2.display(fit1)
cox2.display(fit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.