Re: [R] [newbie] Cox Baseline Hazard

About this list Date view Thread view Subject view Author view

From: Meles MELES (meles@free.fr)
Date: Sat 24 Feb 2001 - 04:34:52 EST


Message-Id: <01022319345200.00965@meles>

Le Vendredi 23 Février 2001 09:17, gb a écrit :
> fit <- coxph( Surv(futime,fustat)~resid.ds+rx+ecog.ps,data=ovarian)
> base <- data.frame(age=0, resid.ds=0, rx = 0, ecog.ps = 0)
> ss <- survfit(fit)
> ss1 <- survfit(fit, newdata = base)
> par(mfrow = c(2, 1))
> plot(ss, fun = "cumhaz")
> plot(ss1, fun = "cumhaz")

Great, that was exactly what I needed.
Thanks a lot.

And I apologize for my question that seemed to be very confusing.
That could mean 3 things :
I must improve myself in english.
I must improve myself in R.
I must improve myself in statistics :-).

-- 
Blaise aka Meles
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:33 EST