Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: cox model with AIC


From   May Boggess <mboggess@stata.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: cox model with AIC
Date   13 May 2004 13:18:53 -0500

On Wednesday Cathy asked:

> how can I get the AIC when using COX model.
> stcox... did not show me AIC. what option should I
> use? thanks!

You can use the command -estimates table- after nearly all estimation
commands, to compute the AIC and BIC, as follows:

 clear
 sysuse cancer
 stset  st, f(di)
 stcox age drug
 estimates store A
 estimates table A, stats(aic bic)

If you have more than one model, you can get the all the AIC's in one
table:

 clear
 sysuse cancer
 stset  st, f(di)
 stcox age drug
 estimates store A
 stcox age  
 estimates store B
 estimates table _all, stats(aic)

-- May
mmb@stata.com



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index