Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: estat ic
From
Tim Wade <[email protected]>
To
[email protected]
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 <[email protected]> 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/