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

From |
Michael McCulloch <mm@pinest.org> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: re: line patterns within Kaplan Maier |

Date |
Sat, 6 Oct 2007 18:05:58 -0700 |

Thank you Kit for pointing out that help text. What I'm looking for, so far unsuccessfully, is guidelines on how to specify specific formulas for cline_options for specific values of A and B.

The cline_options formulas I specified below were successful for only the plot lines in which A==1 and B==1, or

A==0 & B==0.

However, but the other plot lines where

A==0 & B==1, or

A==1 & B==0.

remained a solid line in spite of my specification:

sts graph if stage==5, by(A B) lpattern(-) xtitle("Survival time in ///

months") l2title("Percent surviving") xmtick(0(10)150) ///

lpattern("l" if A==1 & B==1) ///

lpattern("--" if A==1 & B==0) ///

lpattern("--" if A==0 & B==1) ///

lpattern("--.#" if A==0 & B==0) ///

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/

* * 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/

**References**:**st: re: line patterns within Kaplan Maier***From:*Kit Baum <baum@bc.edu>

- Prev by Date:
**st: re: line patterns within Kaplan Maier** - Next by Date:
**st: dropped observations in bootstrap** - Previous by thread:
**st: re: line patterns within Kaplan Maier** - Next by thread:
**st: Re: line patterns within Kaplan Maier** - Index(es):

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