Hi Dear R-users

I have a database with 18000 observations and 20 variables. I am running
cox regression on five variables and trying to use survfit to plot the
survival based on a specific variable without success.

Lets say I have the following coxph:
>library(survival)
>fit <- coxph(Surv(futime, fustat) ~ age + rx, data = ovarian)
>fit
what I am trying to do is plot a survival comparing objects based on rx.
Using this
>plot(survfit(fit, newdata=data.frame(rx =c(1:2), age=c(60)),
             xscale=365.25, xlab = "Years", ylab="Survival"))
I get the survival for patients at 60, but is there an option to get a
survfit for the patients regardless of the value in variable "age"?

Thanks in advance
Maziar Mohaddes
M.D.
Gothenburg, Sweden

	[[alternative HTML version deleted]]

