3
我是R新手,想要繪製survfit
生存曲線。繪圖倖存者
在與survfit
對象玩耍,我發現,我得到2個不同的地塊爲以下幾點:
library(survival)
#example survfit object
mysurvfit <- survfit(Surv(time, status)~1, data=aml)
#default survfit plot, survival curve with upper & lower conf intervals
plot(mysurvfit, mark.time=FALSE, conf.int=TRUE)
#create another curve by accessing surv, upper, lower
#(I'd expect this to produce the same as above, but it doesn't)
lines(mysurvfit$surv, col="blue",lty=1)
lines(mysurvfit$upper, col="blue",lty=2)
lines(mysurvfit$lower, col="blue",lty=2)
爲什麼這些曲線有什麼不同?我對倖存對象錯過了什麼?
知道這是顯而易見的事情,謝謝! – bigjim 2011-04-29 15:40:40