Monday, March 13, 2006

st: RE: Life Tables for Survival Analysis

One way would be to save the life table and then use -twoway connect- with the line patterns you want.

For example:

tempfile rats use,clear ltable t d, by(gr) over saving(`rats') notable use `rats',clear twoway connect sur t1 if gr == 1 , lc(gs1) lp(dash) mcolor(gs1) /// || conn sur t1 if gr == 2, lc(gs12) mcolor(gs12)


> -----Original Message----- > From: [mailto:owner- >] On Behalf Of Donna Joseph > Sent: Monday, March 13, 2006 6:13 AM > To: > Subject: st: Life Tables for Survival Analysis > > Dear All > > I am new to Stata. 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.

* * For searches and help try: * * *


Links to this post:

Create a Link

<< Home

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