Re: [R] Error using newdata argument in survfit

2005-06-16 Thread Hanke, Alex
arguments Which is a nice change but still short of knowing what is going on. Regards Alex -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: June 15, 2005 4:24 PM To: Hanke, Alex Cc: 'r-help@stat.math.ethz.ch' Subject: Re: [R] Error using newdata argument

Re: [R] Error using newdata argument in survfit

2005-06-16 Thread Thomas Lumley
Alex -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: June 15, 2005 4:24 PM To: Hanke, Alex Cc: 'r-help@stat.math.ethz.ch' Subject: Re: [R] Error using newdata argument in survfit You appear to have a coding for prior.f in newdata rather than the factor

Re: [R] Error using newdata argument in survfit

2005-06-16 Thread Hanke, Alex
@stat.math.ethz.ch' Subject: Re: [R] Error using newdata argument in survfit On Thu, 16 Jun 2005, Hanke, Alex wrote: Hi Brian, The factor Prior.f has 5 levels (1,2,3,4,5) which coxph deals with by creating 4 dummy variables coded with 1 or zero. That's what I see when I look at fit$x. fit$x[1:5,] Week

[R] Error using newdata argument in survfit

2005-06-15 Thread Hanke, Alex
Dear R-helpers, To get curves for a pseudo cohort other than the one centered at the mean of the covariates, I have been trying to use the newdata argument to survfit with no success. Here is my model statement, the newdata and the ensuing error. What am I doing wrong? summary(fit) Call:

Re: [R] Error using newdata argument in survfit

2005-06-15 Thread Prof Brian Ripley
You appear to have a coding for prior.f in newdata rather than the factor itself. It's a bit hard to be sure when we don't have data8 to compare with. On Wed, 15 Jun 2005, Hanke, Alex wrote: Dear R-helpers, To get curves for a pseudo cohort other than the one centered at the mean of the