[R] [newbie] Cox Baseline Hazard

Meles MELES meles at free.fr
Fri Feb 23 19:34:52 CET 2001


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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list