[R] aic calculation

Roger D. Peng rpeng at jhsph.edu
Tue Mar 9 16:43:48 CET 2004


It doesn't, as far as I know.  The function AIC.logLik is defined as

 > AIC.logLik
function (object, ..., k = 2)
-2 * c(object) + k * attr(object, "df")
<environment: namespace:base>

-roger

Stephen Dicey wrote:
> hello,
> could somebody refer me to the reason R uses
> 
> -2*loglik + 2*(#param)+2
> 
> to calculate AIC?
> thank you
> 
> --
> Stoyan Iliev
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list