Statalist The Stata Listserver


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

st: RE: combining graphs


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: combining graphs
Date   Tue, 25 Jul 2006 10:20:21 +0200

Monika:
I am assuming you want to show the survival curves of different groups in the same graph, is that correct? In that case you can use the by-option of the -sts graph- command, see example below:

*------begin example-----
sysuse cancer, clear
stset studytime, failure(died)
sts graph, by(drug)
*-------end example------

HTH,
Maarten

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

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

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

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Monika Huembelin
Sent: dinsdag 25 juli 2006 9:21
To: [email protected]
Subject: st: combining graphs

Hello everyone,

I'd like to combine survival curves of different graphs in a single graph. With the "graph combine" command I just get a graph with subgraphs. Does anyone know if this is possible at all and if you can even combine graphs of different types? Thanks a lot for helping a STATA greenhorn using STATA 8.2.

Monika
*
*   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/

*
*   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