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]

Re: st: ST graphs with CI's


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: ST graphs with CI's
Date   Wed, 6 Oct 2010 17:16:06 -0400

You are welcome, Amal.

Good luck!

Steve

On Tue, Oct 5, 2010 at 8:15 AM, Steve Samuels <[email protected]> wrote:
> --
>
> Amal replied privately that he was familiar with -sts graph, but could
> not produce 95% CIs.  He can, if he adds the "ci" option:
>
> **********************
> webuse stan3, clear
> label define surgery 0 "No Surgery"  1 "Surgery"
> label values surgery surgery
> sts graph , survival ci by(surgery) separate
> **********************************
>
> -sts- commands do not accept a -by- prefix. If Amal wishes to store
> the graphs separately, he could write:
>
> **********************
> levelsof surgery, local(levels)
> foreach i of local levels{
> sts graph if surgery== `i', survival ci saving(gs`i', replace) ti("`:
> label (surgery) `i''")
> }
> *********************************************************
>
> Amal would have had an answer sooner- and  saved us both a bit of
> time, if he had, as the FAQ request, shown us the code he'd tried.
>
> Steve
>
> On Mon, Oct 4, 2010 at 12:23 PM, Steve Samuels <[email protected]> wrote:
>>
>>  -sts graph-  will do this.  You must -stset- your data first.
>>
>> Steve
>>
>> Steven J. Samuels
>> [email protected]
>> 18 Cantine's Island
>> Saugerties NY 12477
>> USA
>> Voice: 845-246-0774
>> Fax:    206-202-4783
>>
>> On Mon, Oct 4, 2010 at 11:51 AM, Amal Khanolkar <[email protected]> wrote:
>>> Hi everyone,
>>>
>>> I've trying to figure out if it's possible to produce kaplan meier
>>> survival curves with 95% CI bands for each curve in the graph. I wasn't
>>> able to find anything on stata help. I know this is possible in some
>>> other software packages. If its possible in stata, please do let me know :)
>>>
>>> I need to be able to use the 'by' option as well for 'varlist'.
>>>
>>> Thanks!
>>>
>>> /Amal.
>>>
>>>
>>> Amal Khanolkar,
>>> PhD Student,
>>> CHESS | Centre for Health Equity Studies,
>>> Karolinska Institutet/Stockholm University,
>>> Sveavägen 160, Sveaplan - 10691 Stockholm.
>>>
>>> Phone: +46 (0)8 162584
>>> www.chess.su.se
>>>
>>> *
>>> *   For searches and help try:
>>> *   http://www.stata.com/help.cgi?search
>>> *   http://www.stata.com/support/statalist/faq
>>> *   http://www.ats.ucla.edu/stat/stata/
>>>
>>
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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