Statalist The Stata Listserver


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

AW: st: RE: combining graphs


From   Monika Huembelin <[email protected]>
To   [email protected]
Subject   AW: st: RE: combining graphs
Date   Tue, 25 Jul 2006 02:33:18 -0700 (PDT)

Sorry maybe my problem description was a little bit too sketchy. I don't want to stratify the data. I have graphs with different stset variables and failure variables which I'd like to sort of superimpose in one single graph. Or even combine lets say a histogram with a survival curve if that is possible at all. I hope I didnt make it more confusing. Thanks a lot.
 
Monika

----- Ursprüngliche Mail ----
Von: Maarten Buis <[email protected]>
An: [email protected]
Gesendet: Dienstag, den 25. Juli 2006, 10:20:21 Uhr
Betreff: st: RE: combining graphs


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/

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