SV: [R] Kaplan-Meier for left truncated data?

Thomas Lumley thomas at biostat.washington.edu
Fri May 26 19:54:59 CEST 2000


On Fri, 26 May 2000, Fredrik Lundgren wrote:

> summary of "How do I ask for the 'baseline hazard' of a coxph fit??"
> 
> Thank you to Thomas Lumley, Brian Ripley, Göran Bodström and Bendix
> Cartensen for their tips to use plot(survfit(a.coxph.fit)). Thomas
> Lumley suggests that to get the "real baseline hazard" I should use
> -log(survfit(a.coxph.fit)$surv) and set all covariates=0 in which case
> I need to supply these values to survfit. But how do you supply
> covariate values to survfit? Shouldn't they be supplied to coxph in
> some way?

No, to survfit.  coxph fits the model, it doesn't care what you do to it
afterwards.  If you look at the documentation for survfit() it has a
data= argument to specify which covariates values you want the survival
curve for.

	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list