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 on April 23, 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   Jörg Eulenberger <j.eulenberger@web.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: estat ic
Date   Fri, 05 Aug 2011 19:37:54 +0200

Dear Tim,
Yes, that's right !
Its works great. Thanks a lot,
Jörg


Am 05.08.2011 15:31, schrieb Tim Wade:
> 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/
>

*
*   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