Description Usage Arguments Examples
Nonparametrics estimators for C index
1 |
risk |
the risk score for survival part |
pi |
the uncured probability |
time |
observation time |
delta |
censoring status |
tau |
boundry of time |
1 2 3 4 5 6 7 8 9 10 | fit <- coxph(Surv(time, status) ~ age + sex , lung, x = T)
risk <- fit$x %*% fit$coefficients
survConcordance(Surv(time, status) ~ risk, lung)
pi <- rep(1,fit$n)
c.index(risk, pi, lung$time, lung$status ==2)
fit <- coxph(Surv(stop, event) ~ rx + size , bladder, x = T)
risk <- fit$x %*% fit$coefficients
survConcordance(Surv(stop, event) ~ risk, bladder)
pi <- rep(1,fit$n)
c.index(risk, pi, bladder$stop, bladder$event)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.