[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: line patterns within Kaplan Meier
Dear Statalist members,
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?
Thank you.
*
* 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/