[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: overlapping graphs
Greetings,
The following commands compare two graphs, side-by-side. My question
is, can they be overlapped, so both curves are plotted within the
same graph?
sysuse cancer.dta, clear
stset studytime
keep if drug==3
sts graph, by(drug) title("survival", box bfcolor(white))
saving("survival", replace )
sts graph, by(drug) na title("hazard", box bfcolor(white))
saving("hazard", replace )
graph combine survival.gph hazard.gph, rows(2) cols(2) iscale(0.5)
title(Survival vs. Hazard)
--
Best wishes,
Michael McCulloch
Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
[email protected]
www.pinestreetfoundation.org
*
* 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/