|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: combining two Kaplan Meier graphs, with only one legend
From |
Maarten buis <[email protected]> |
To |
[email protected] |
Subject |
Re: st: combining two Kaplan Meier graphs, with only one legend |
Date |
Mon, 4 Aug 2008 02:57:53 +0100 (BST) |
--- 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/