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

st: overlapping graphs

From   Michael McCulloch <>
To   Statalist <>
Subject   st: overlapping graphs
Date   Sat, 13 Sep 2008 18:33:01 -0700


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
* For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index