通过网上搜查,以以下命令进行输入
library(Hmisc)
library(survival)
data <- read.csv("survivaldta.csv")
f <- cph(Surv(time,death)~Gender+Age+T+N,data=survivldta)
cindex.orig=1-rcorr.cens(fp,Surv(time,death))
结果却提示Error in Surv(time, death) : Time variable is not numeric
附件列表