Statalist


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

Re: st: How do fit a cox PH model for categorical outcome variable with 3 levels in the same model


From   "Svend Juul" <[email protected]>
To   <[email protected]>
Subject   Re: st: How do fit a cox PH model for categorical outcome variable with 3 levels in the same model
Date   Wed, 3 Oct 2007 10:28:51 +0200

Sharon wrote:

I've stset my data and I'm able to run cox models, no problem.  The
question is how do I obtain HRs for an outcome variable with three
levels, e.g. var_1_2  coded 0, 1, 2 in the same model, and obtain
separate estimates for 0 vs. 1 and 0 vs. 2.  Right now I'm able to do
this using  stcoxkm, by(var_1_2), then type stcox.  But Stata does not
allow me to run an adjusted model in this way. Is there another way to
fit a single model for a categorical variable with more than 2 levels
for both univariate and multivariate cox regression?


------------------------------------------------------------------

Maarten answered this by explaining how to include independent 
variables with several levels. But I think the question is about
multiple possible outcomes. Is this a competing risk question? Try:

   findit competing risk

and locate -stcompet-. It may be what you need.

Hope this helps

Svend
__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796
Email: [email protected]
__________________________________________ 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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