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, statalist.org is already up and running.


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

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


From   graupel75@gmail.com
To   Statalist <statalist@hsphsun2.harvard.edu>
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,  <graupel75@gmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index