[R] worked in R, but not in S-Plus
arrayprofile at yahoo.com
Wed Nov 10 01:50:09 CET 2004
I wrote a function that worked well in R, but not in
S-Plus, can anyone suggest a solution?
cox.fit <- coxph(Surv(time.cox, status.cox) ~ x,
na.action = na.exclude, method = "breslow")
yyy is my data frame that contains survial time,
censor status and predictor variables.
When run in S-Plus, it gave the following error
Problem in model.frame.coxph(fit): Object "x" not
If I remove the 2nd and 3rd lines inside the function,
it worked, so definitely something is wrong in passing
the coxph object into the cox.zph().
More information about the R-help