Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: stcurve and multiple strata


From   "moleps islon" <moleps2@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: stcurve and multiple strata
Date   Thu, 11 Sep 2008 15:29:40 +0200

Thanks, that worked out perfect. Do you know how I export the hazard
ratio instead of the coefficient using outreg2 or estout?
Regards,


On Thu, Sep 11, 2008 at 2:06 PM, Maarten buis <maartenbuis@yahoo.co.uk> wrote:
> --- moleps islon <moleps2@gmail.com> wrote:
>> Right now my cox model looks like this:
>>
>> xi:stcox a b d i.c, basesurv(e)
>>
>> I need to make survival graphs adjusted for the other variables for
>> the individual i.c categories. I tried
>>
>> stcurve, survival at1(_Ic_2=1) at2(_Ic_3=1) etc, etc but somehow I
>> can't find my first expansion term anywhere. Ideas?
>
> That will not work: -xi- creates a set of dummies, -stcurve- set
> variables not mentioned in -at#()- at the mean, so just saying _Ic_2=1
> will not properly identify the second group, as _Ic_3 is set at the
> mean, but should be set at 0. The reference category is identified by
> both variables set equal to 0.
>
> *----------- begin example ------------
> sysuse cancer, clear
> stset studytim, failure(died)
> xi: stcox i.drug age, basesurv(e)
> stcurve, surv ///
>     at1(_Idrug_2=0 _Idrug_3=0) ///
>     at2(_Idrug_2=1 _Idrug_3=0) ///
>     at3(_Idrug_2=0 _Idrug_3=1)
> *----------- end example --------------
> (For more on how to use examples I sent to the Statalist, see
> http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )
>
> Also see:
> http://www.ats.ucla.edu/stat/stata/faq/dummy.htm
>
> -- Maarten
>
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
>
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room N515
>
> +31 20 5986715
>
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
>
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index