Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: combining several Kaplan Meier graphs


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: combining several Kaplan Meier graphs
Date   Fri, 27 Apr 2007 06:25:50 +0100 (BST)

have a look at -help graph combine- and -findit grc1leg- in case you
want just one legend.

Hope this helps,
Maarten

--- Michael McCulloch <[email protected]> wrote:

> Dear Statalist members,
> I have four separate KM graphs which I'd like to combine into one, 
> arranged in a four-square layout. Any pointers would be greatly 
> appreciated. The syntax is as follows:
> 
> sts graph if stage==1, by(tx)  ///
> 	title("Survival, stage II NSCLC", box bfcolor(white)) ///
> 	caption("tx=0: Did not use therapy;   tx=1: used therapy") ///
> 	lpattern(-) xtitle("Survival time in months") 
> l2title("Percent surviving") xmtick(0(10)150)
> 
> sts graph if stage==3, by(tx) ///
> 	title("Survival, stage II NSCLC", box bfcolor(white)) ///
> 	caption("tx=0: Did not use therapy;   tx=1: used therapy") ///
> 	lpattern(-) xtitle("Survival time in months") 
> l2title("Percent surviving") xmtick(0(10)150)
> 
> sts graph if stage==4, by(tx) ///
> 	title("Survival, stage IIIB NSCLC", box bfcolor(white)) ///
> 	caption("tx=0: Did not use therapy;   tx=1: used therapy") ///
> 	lpattern(-) xtitle("Survival time in months") 
> l2title("Percent surviving") xmtick(0(10)150)
> 
> sts graph if stage==5, by(tx) ///
> 	title("Survival, stage IV NSCLC", box bfcolor(white)) ///
> 	caption("tx=0: Did not use therapy;   tx=1: used therapy") ///
> 	lpattern(-) xtitle("Survival time in months") 
> l2title("Percent surviving") xmtick(0(10)150)
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index