s-news
[Top] [All Lists]

[S] Survival Analysis : KM curve

To: S-news@wubios.wustl.edu
Subject: [S] Survival Analysis : KM curve
From: "Cecile DELHUMEAU" <Cecile.Delhumeau@hcuge.ch>
Date: Mon, 28 Feb 2000 15:39:44 +0100
Sender: owner-s-news@wubios.wustl.edu
I have a problem with a survival analysis ...

I have no problem to plot with Splus the KM risk (i.e., survival) but I dont 
know how I can plot the KM risk (i.e., 1-survival)  ?

Here, there are what I do :

donnees<-read.table("surv.dat")
azm<-donnees[,2]
time<-donnees[,3]
status<-donnees[,4]
x<-survfit(Surv(time,status)~azm)
motif()
plot(x, lty = 1:2)


But I would like to have :

plot(1-x)

(that is not possible with 1-x ...)

How I can do it ???

Thank for your HELP in advance,

Cecile
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>