Code:
Code:
use https://www.stata-press.com/data/r17/drug2
stset, noshow
global in "yourdirectory"
cd "$in"
sts graph if drug ==0, hazard
qui graph save "plot1.gph",replace
sts graph if drug ==1 hazard
qui graph save "plot2.gph",replace
graph combine "$in/plot1.gph" "$in/plot2.gph"If these were twoway plots, this should be straightforward, but because I use the sts graph command, the usual add plot command does not work. What I want is to overlay two plots that I previously save as.gph (like the graph combine command but overlaying the plots),
Any input would be appreciated, thanks!
0 Response to overlaying two hazard rate plots
Post a Comment