Hi all, let's say we can fit a Cox model with a numeric variable "x" as the 
independent variable. The we can calculate, say 10-year survival, for any given 
value of "x" (0 to 10 in increment of 0.1 in the example below):

> fit <- coxph(Surv(time, event)~x,dat)
> surv10yr<-
summary(survfit(fit,newdata=data.frame(x=seq(0,10,0.1))),times=10)

I am wondering if anyone can show me how to replicate this in SAS?

very much appreciated!

John
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to