|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: combining two Kaplan Meier graphs, with only one legend
From |
Michael McCulloch <[email protected]> |
To |
[email protected] |
Subject |
Re: st: combining two Kaplan Meier graphs, with only one legend |
Date |
Sat, 13 Sep 2008 13:23:33 -0700 |
Thank you Maarten. -grc1leg- can only choose its own title one of the
titles from the subgraphs. I have found another way to achieve my
goal (sub-titles on the subgraphs, with a different meta-title on the
combined graph). I'm posting this follow-up to share my solutions
with the list readers:
sysuse cancer.dta, clear
stset studytime, failure(died)
sts graph if age < 55, by(drug) title("Young", box bfcolor(white))
saving("young", replace )
sts graph if age >= 55, by(drug) title("Old", box bfcolor(white))
saving("old", replace )
graph combine young.gph old.gph, rows(2) cols(2) iscale(0.5)
title(Survival by Age Group)
Best wishes,
Michael
--- Michael McCulloch <[email protected]> wrote:
I'm seeking advice on how to combine two Kaplan Meier graphs, with
only one legend.
The command you are looking for is -grc1leg-, which you can find by
typing -findit grc1leg-.
*------------- begin example -------------------------
sysuse cancer.dta, clear
stset studytime, failure(died)
sts graph if age < 55, by(drug) name(young, replace)
sts graph if age >= 55, by(drug)name(old, replace)
grc1leg young old
*------------- end example ---------------------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )
Hope this helps,
Maarten
-----------------------------------------
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/
-----------------------------------------
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses
available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/