Dear R-user,

I would like to get the survival probability (surv) for each subject id.
That is, I want to have additional column surv as follows:

id  OS  OS_DUR  surv
____________________


eg:
fitKM<-survfit(Surv(OS_DUR,OS)~1,data=data)
fitKM$surv # this will only give me survival probability and I do not know
the corresponding id

Any one knows how to get the probability?

Thanks a lot,

Kate

        [[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