Re: [R] worked in R, but not in S-Plus

2004-11-10 Thread Thomas Lumley
On Tue, 9 Nov 2004, array chip wrote: Hi, I wrote a function that worked well in R, but not in S-Plus, can anyone suggest a solution? If you change the argument of the function from x to ... it will give Error in eval(expr, envir, enclos) : Object "x" not found which is almost compatible with what

[R] worked in R, but not in S-Plus

2004-11-09 Thread array chip
Hi, I wrote a function that worked well in R, but not in S-Plus, can anyone suggest a solution? > f.coxph.zph<-function(x) { cox.fit <- coxph(Surv(time.cox, status.cox) ~ x, na.action = na.exclude, method = "breslow") fit.zph<-cox.zph(cox.fit,transform='log') fit.zph$tabl