[R] Survival statistics--displaying multiple plots

From: Gregory Pierce <pierce.gregory_at_gmail.com>
Date: Wed, 02 May 2007 22:21:16 -0400


Hello all!

I am once again analyzing patient survival data with chronic liver disease.

The severity of the liver disease is given by a number which is continuously variable. I have referred to this number as "meld"--model for end stage liver disease--which is the result of a mathematical calculation on underlying laboratory values. So, for example, I can generate a Kaplan-Meier plot of patients undergoing a TIPS procedure with the following:

>plot(survfit(Surv(days,status==1),subset(tips,meld<10))

where "tips" is my data set, "days" is the number of days alive, and meld is the meld score.

What I would like to do is display the survival graphs of patients with meld<10, 10<meld<20, and meld>20. I am unsure about how to go about this.

Any suggestions would be appreciated.

Greg



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 03 May 2007 - 02:35:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 May 2007 - 04:31:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.