Bookmark and Share

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]

st: RE: AIC and BIC in Poisson and GLM


From   "Visintainer, Paul" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: AIC and BIC in Poisson and GLM
Date   Mon, 25 Apr 2011 14:40:54 -0400

Peter,

If you compute AIC and BIC using -estat ic- after each model, I think they will be the same.  In the -glm- output, the AIC and BIC are given in blue. If you click on them, it describes the differences between the output estimate and the -estat ic- estimate.

-Paul

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lachenbruch, Peter
Sent: Monday, April 25, 2011 12:21 PM
To: '[email protected]'
Subject: st: AIC and BIC in Poisson and GLM

I was developing a simple class example for poisson regression using the poisson command and the glm command.  The log likelihood was the same in both regressions; the coefficients were the same.  When I looked at the AIC and BIC reported by glm I got 

                                                   AIC             =  7.920031
Log likelihood   = -33.60015344                    BIC             =  2.922026
For the estat command with poisson I got
. estat ic

-----------------------------------------------------------------------------
       Model |    Obs    ll(null)   ll(model)     df          AIC         BIC
-------------+---------------------------------------------------------------
        full |     10   -495.0676   -33.60015      6     79.20031    81.01582
-----------------------------------------------------------------------------
               Note:  N=Obs used in calculating BIC; see [R] BIC note

I would expect these to be the same, but they ain't.  I suspect there may be a normalizing constant lurking around here somewhere.  
I don't want to fix this unless it's truly a bug; but I would like to be able to explain this to my students.

Tony

Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001



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

----------------------------------------------------------------------
Please view our annual report at http://baystatehealth.org/annualreport
 

CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org.

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index