Monday, March 13, 2006

Re: st: Life Tables for Survival Analysis

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 schemes: findit lean scheme

Svend __________________________________________

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 Email: sj@soci.au.dk __________________________________________

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


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?