Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

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


From   [email protected]
To   Statalist <[email protected]>
Subject   st: Re: -stcurve- with rightmost sub-options for lines
Date   Sat, 9 Feb 2013 18:02:57 +0800

Corrected example below for other's benefit....

***** Begin example *****
webuse cancer, clear
replace drug = drug == 2 | drug == 3

stcox drug age

stcurve, survival ///
      at1(drug=0) at2(drug=1) ///
      clwidth(thick thick) clcolor(maroon navy) ///
      clpattern(longdash solid) //

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

On Sat, Feb 9, 2013 at 2:58 PM,  <[email protected]> wrote:
> 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!
>
> cheers-
> Andrew Lover
> ___________________________
> Epidemiologist
> Centre for Infectious Disease Epidemiology Research (CIDER)
> Saw Swee Hock School of Public Health
> National University of Singapore
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index