[R] Estimating survival?
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Wed Nov 3 15:45:51 CET 2004
Min-Han Tan wrote:
> Hi,
>
> Sorry to trouble the list. I have a problem which I'm not sure how to resolve.
>
> I have a Cox model with 1 independent variable with 2 categories (and
> thus 2 survival curves on plotting survfit)
>
> How can I get an estimate of survival for each category at a
> particular time point, with standard error?
>
> Looking through ?cph and ?coxph, I'm not quite sure how to go about
> that. I would really appreciate any direction here.
>
> Thanks a million!
>
> Min-Han
The survest function in the Design package makes this easy. You can
also probably do it without a lot of hassle using standard survival
package routines. With survest you can easily specify covariate
combinations for which to obtain predictions.
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list