[R] error message when plotting survival curves

2008-10-20 Thread A Van Dyke
I am trying to plot survival curves using the following code as an example: rs1799964.coxph-(coxph(Surv(sassurvmonths,status)~age+stage+rs1799964_TNFA,method=efron)) plot(rs1799964.coxph,lyt=c(1,3),xlab=Survival in Months,ylab=Proportion Surviving) I am gettingthe following error message:

Re: [R] error message when plotting survival curves

2008-10-20 Thread stephen sefick
I believe that you have to specify which variable is the x and also the y. I am not familiar with what you are doing, but it looks as though you need to specify both x and y to get it to plot. Stephen On Mon, Oct 20, 2008 at 2:22 PM, A Van Dyke [EMAIL PROTECTED] wrote: I am trying to plot

Re: [R] error message when plotting survival curves

2008-10-20 Thread Thomas Lumley
On Mon, 20 Oct 2008, A Van Dyke wrote: I am trying to plot survival curves using the following code as an example: rs1799964.coxph-(coxph(Surv(sassurvmonths,status)~age+stage+rs1799964_TNFA,method=efron)) plot(rs1799964.coxph,lyt=c(1,3),xlab=Survival in Months,ylab=Proportion Surviving)