Re: [R] survival survfit with newdata

2012-05-17 Thread David Winsemius
e to get the survival curves for testX? Thanks in advance. DK CC: r-help@r-project.org From: dwinsem...@comcast.net To: dkrsta...@hotmail.com Subject: Re: [R] survival survfit with newdata Date: Thu, 17 May 2012 00:52:55 -0400 On May 16, 2012, at 5:08 PM, Damjan Krstajic wrote: Dea

Re: [R] survival survfit with newdata

2012-05-16 Thread Damjan Krstajic
oject.org > From: dwinsem...@comcast.net > To: dkrsta...@hotmail.com > Subject: Re: [R] survival survfit with newdata > Date: Thu, 17 May 2012 00:52:55 -0400 > > > On May 16, 2012, at 5:08 PM, Damjan Krstajic wrote: > > > > > Dear all, > > > > I am confused wit

Re: [R] survival survfit with newdata

2012-05-16 Thread David Winsemius
On May 16, 2012, at 5:08 PM, Damjan Krstajic wrote: Dear all, I am confused with the behaviour of survfit with newdata option. Yes. It has the same behavior as any other newdata/predict from regression. You need to supply a dataframe with the same names as in the original formula. Doesn

[R] survival survfit with newdata

2012-05-16 Thread Damjan Krstajic
Dear all, I am confused with the behaviour of survfit with newdata option. I am using the latest version R-2-15-0. In the simple example below I am building a coxph model on 90 patients and trying to predict 10 patients. Unfortunately the survival curve at the end is for 90 patients. Could som