[R] negative value for AIC and BIC

John Sorkin jsorkin at grecc.umaryland.edu
Fri Sep 7 14:16:40 CEST 2007


Oliver,
I am attaching an HTML document in which I have plotted -2Log(x) vs. x. If you examine the plot you will see that -2Log(x) can be negative. Since -2Log(x) is part of AIC and BIC, AIC and BIC can be negative.
John

John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC,
University of Maryland School of Medicine Claude D. Pepper OAIC,
University of Maryland Clinical Nutrition Research Unit, and
Baltimore VA Center Stroke of Excellence

University of Maryland School of Medicine
Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524

(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)
jsorkin at grecc.umaryland.edu

>>> "Hannu Kahra" <hkahra at gmail.com> 09/07/07 4:32 AM >>>
Olivier,

type ?AIC and have a look at the description

Description:

     Generic function calculating the Akaike information criterion for
     one or several fitted model objects for which a log-likelihood
     value can be obtained, according to the formula -2*log-likelihood
     + k*npar, where npar represents the number of parameters in the
     fitted model, and k = 2 for the usual AIC, or k = log(n) (n the
     number of observations) for the so-called BIC or SBC (Schwarz's
     Bayesian criterion).

AIC = -2*log-likelihood + k*npar can be negative as SBC, too.

Hannu

On 9/7/07, Olivier MARTIN <olivier.martin at avignon.inra.fr> wrote:
>
> Hi all,
>
>
> I obtained negative values for AIC and BIC criteria for a particular
> model that I have
> developped...
>
> I don't remember to have negative values for these crietria for others
> applications, so I am a
> little suprised... Could anyone tell me if something is wrong or his
> conclusion concerning my model?
>
> Best regards,
> Olivier.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help 
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html 
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help 
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 
and provide commented, minimal, self-contained, reproducible code.

Confidentiality Statement:
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: -2Log.html
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070907/c0a62e6b/attachment.pl 


More information about the R-help mailing list