Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: estat ic


From   Tim Wade <wadetj@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: estat ic
Date   Fri, 5 Aug 2011 09:31:59 -0400

Jorg,

Is this what you are trying to do:

webuse union
xtlogit union age grade i.not_smsa
estat ic
matrix ZZ=r(S)
scalar aic=ZZ[1, 5]
di aic


. estat ic

-----------------------------------------------------------------------------
       Model |    Obs    ll(null)   ll(model)     df          AIC         BIC
-------------+---------------------------------------------------------------
           . |  26200           .   -10613.55      5      21237.1    21277.96
-----------------------------------------------------------------------------
               Note:  N=Obs used in calculating BIC; see [R] BIC note

. matrix ZZ=r(S)

. scalar aic=ZZ[1, 5]

. di aic
21237.096


Tim



On Fri, Aug 5, 2011 at 7:07 AM, Jörg Eulenberger <j.eulenberger@web.de> wrote:
>
>
> Dear Statalisters,
> How can i add the AIC and BIC from estat (postestimation after xtlogit)
> to an scalar (form using with esttab).
> Thanks for help,
> Jörg
> *
> *   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   |   Site index