Michael asks
With the data I am using, variables A and B have values of 0/1. The
following KM graph:
sts graph if stage==5, by(A B) lpattern(-) xtitle("Survival time in
months") l2title("Percent surviving") xmtick(0(10)150)
shows a plot in which the lines for the four different A/B
combinations show in green, brown, blue dash and black, but without
any command from me.
Is it possible to specify that each A/B combination have a specific
line pattern and color?
help sts graph
see plotopts( ) and cline_options within
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
* 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/