Re: [R] error bars on survival curve

2007-06-17 Thread Frank E Harrell Jr
Murray Pung wrote: I am using plot(survfit(Surv(time,status) ~...) and would like to add error bars rather than the confidence intervals. Am I able to do this at specified times? e.g. when time = 20 40. leukemia.surv - survfit(Surv(time, status) ~ x, data = aml) plot(leukemia.surv, lty =

[R] error bars on survival curve

2007-06-16 Thread Murray Pung
I am using plot(survfit(Surv(time,status) ~...) and would like to add error bars rather than the confidence intervals. Am I able to do this at specified times? e.g. when time = 20 40. leukemia.surv - survfit(Surv(time, status) ~ x, data = aml) plot(leukemia.surv, lty = 2:3,xlim = c(0,50)) #can