Open annette987 opened 5 years ago
Ouch, I think we have a typo in that example. The time variable in the veteran data is called time
and not diagtime
. It should read
survsvm.reg <- survivalsvm(Surv(time, status) ~ .,
subset = train.index, data = veteran,
type = "regression", gamma.mu = 1,
opt.meth = "quadprog", kernel = "add_kernel")
@fouodo Don't we need the censoring status to calculate the C-index? I'll open a pull request for that. See #3.
@annette987 In the meantime, you could use
Hmisc::rcorr.cens(pred.survsvm.reg$predicted, Surv(veteran$time[test.index], veteran$status[test.index]))
to calculate the C-index.
I followed the example from your paper (see below) and then tried to compute the concordance index using your function conindex. But I get a much lower value than you achieved. Similarly when I run the same test on my own data I get a very low concordance index using conindex.