Statalist The Stata Listserver

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

Re: st: Life Tables for Survival Analysis

From   "Svend Juul" <SJ@SOCI.AU.DK>
To   <>
Subject   Re: st: Life Tables for Survival Analysis
Date   Mon, 13 Mar 2006 14:37:34 +0100

Don wrote:

I am using Stata 9 to try to draw a Life Table graph for a variable with
6 categories. The 6 slopes on the graph are shown by different, smooth,
coloured lines which is great but I am not printing in colour.

I have tried the symbol command so that each line will be identified by
a different symbol (i.e. dash, dot, long dash and dot etc). However only
the first symbol is recognised when I run the graph so I either have all
lines with a dash, or all lines with a dot for all six categories.

# delimit ;
ltable durate work, graph notable survival noconf by(minus2) over
yscale(range(0.4 1.0))
msymbol(i) yline(0.5, lpattern(dot))ylab (,nogrid);

I tried this:

   sysuse cancer.dta
   ltable studytime died , ///
     graph notable by(drug) overlay msymbol(i i i) lpattern(l dash dot)

- and I got the same problem as Don: Same line pattern for all curves.

StataCorp: Is this intended behavior? Since it does vary line colors, it
should also be able to vary line patterns.

Don: If you prefer black-and-white graphs I suggest trying the lean
   findit lean scheme


Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796

*   For searches and help try:

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