Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: -stcurve- with rightmost sub-options for lines

To   Statalist <>
Subject   st: -stcurve- with rightmost sub-options for lines
Date   Sat, 9 Feb 2013 14:58:15 +0800

Dear Statalist,

I am attempting to change "rightmost"-type options for lines using -stcurve-

***** Begin example *****

webuse cancer, clear
replace drug = drug == 2 | drug == 3

stcox drug age

stcurve, survival ///
     at1(drug=0) at2(drug=1) ///
     lpattern(longdash) lwidth(thick) lcolor(maroon)

* lpattern2(solid) lwidth2(thick) lcolor2(navy) *

***** End example *****

I'd like to incorporate something like the commented-out line above,
but separating the -at#()- options doesn't work, and -stcurve- doesn't
appear to accept -lpattern#- options.

Minor, and solvable using -predict- with -tw- but infuriating!

Andrew Lover
Centre for Infectious Disease Epidemiology Research (CIDER)
Saw Swee Hock School of Public Health
National University of Singapore
*   For searches and help try:

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