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
[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/