waterhorse 发表于 2018-5-25 00:45 
You were right about the outcome; there was only one risk-adjusted KM curve, but it's what the paper ...
我觉得只有病人总体的一条生存曲线,并不能说明我要研究的cancer对于生存的影响吧?
是否可以这样:
data1<-filter(tie48,cancer==0)
data2<-filter(tie48,cancer==1)
km1 <- coxph(Surv(sur_4, death_4) ~ lactate+hemoglobin+age, data = data1)
km2 <- coxph(Surv(sur_4, death_4) ~ lactate+hemoglobin+age, data = data2)
plot(km1)
如此就能展示cancer=0和cancer=1两组病人的曲线了。
line(km2)