.calc_k_index | R Documentation |
K-index estimation
.calc_k_index(object, newdata = NULL)
object |
a cureit model object or a coxph model object |
newdata |
A |
p <- cureit(surv_formula = Surv(ttdeath, death) ~ age,
cure_formula = ~ age,
data = trial)
.calc_k_index(p)
cox_p <- survival::coxph(Surv(ttdeath, death) ~ age,
data = trial)
# Need to debug this
# .calc_k_index(cox_p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.