Statalist


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

RE: st: Accessing stcox confidence intervals


From   Maarten buis <[email protected]>
To   stata list <[email protected]>
Subject   RE: st: Accessing stcox confidence intervals
Date   Tue, 14 Jul 2009 20:12:27 +0000 (GMT)

--- Abrams, Judith wrote:
> How can I access or compute confidence intervals for the
> hazard ratios reported in stcox? They're not equal to 
> hr +/- 1.96(exp(b)*se(b))

*-------------------- begin example -------------------------
sysuse cancer, clear
stset studytime, failure(died)
xi: stcox i.drug age
di "upper bound is " exp(_b[age] + invnormal(.975)*_se[age])
*-------------------- end example --------------------------

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index