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

st: re: line patterns within Kaplan Maier

From   Kit Baum <>
Subject   st: re: line patterns within Kaplan Maier
Date   Sat, 6 Oct 2007 19:40:48 -0400

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
An Introduction to Modern Econometrics Using Stata:

*   For searches and help try:

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