大家好,我自己才接触R语言不久,现在在尝试做nomo图,但是一直有报错,代码如下:
ddist <- datadist(data)
options(datadist='ddist')
cox <- cph(Surv(Time_death,Status_death) ~ Age + Sex + Race + Primary_Site + Grade + behav + Stage +N + M,surv=T,x=T, y=T,data=data)
surv <- Survival(cox)
之后就有报错
Error in Survival.cph(cox) : did not specify surv=T with cph
请问各位有遇到这个问题吗?非常感谢!