Skip to content
Back to formatted view

Raw Message

Message-ID: <49FA406F.3060600@cox.net>
Date: 2009-05-01T00:21:03Z
From: Ron Burns
Subject: AICc
In-Reply-To: <FBB35D43-6E64-4208-B354-A1C12FAFED93@nau.edu>

Katie-

I think you can calculate it easily in R using the definitions:

AIC<- -2*LL + 2*K
AICc<-AIC + 2*K*(K+1)/(n-K-1)

where LL is the logLik, K is the the number of parameters in the fitted 
model, and n is the number of observation, so if you know AIC then it is 
easy to calculate AICc

Ron

Katie Stumpf wrote:
> I am fitting logistic regression models, by defining my own link 
> function, and would like to get AICc values.  Using the glm command 
> gives a value for AIC, but I haven't been able to get R to convert 
> that to AICc.  Is there a code that has already been written for 
> this?  Right now I am just putting the AIC values into an excel 
> spreadsheet and calculating AICc, likelihood, and AIC weights that 
> way, but it would be much more efficient if I could do this in R.
>
> Thanks!
>
> ______________________________________________
> R-help at r-project.org 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.
>


-- 
R. R. Burns
Oceanside, CA