Statalist


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

st: line patterns within Kaplan Meier


From   Michael McCulloch <[email protected]>
To   Statalist <[email protected]>
Subject   st: line patterns within Kaplan Meier
Date   Sat, 6 Oct 2007 15:55:52 -0700

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/




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