Skip to content

Cox model qustion in R

3 messages · Chao Zhu, Thomas Lumley

#
On Wed, 30 Mar 2005, Chao Zhu wrote:
I think you are going to have to be clearer about what you want.  If you 
want the Kaplan--Meier estimator for each treatment separately then
   plot(survfit(Surv(t)~treat))
will do it. Otherwise I don't know what you're trying to do.

By the way, do you really have no censoring in the time variable?

 	-thomas
#
----- Original Message ----- 
From: "Thomas Lumley" <tlumley at u.washington.edu>
To: "Chao Zhu" <cznm4 at mizzou.edu>
Cc: <r-help at stat.math.ethz.ch>
Sent: Thursday, March 31, 2005 11:09 AM
Subject: Re: [R] Cox model qustion in R