Re: [R] problem with extractAIC()

2010-03-06 Thread Bill.Venables
Behalf Of Jordi Moya [jo...@eeza.csic.es] Sent: 07 March 2010 00:58 To: r-help@R-project.org Subject: [R] problem with extractAIC() Dear friends, If I use: model<-lm(y ~ x) and then extractAIC(model), the value that I obtain does not match (not even close): AIC=2*k-2*logLik(mo

Re: [R] problem with extractAIC()

2010-03-06 Thread Uwe Ligges
On 06.03.2010 15:58, Jordi Moya wrote: Dear friends, If I use: model<-lm(y ~ x) and then extractAIC(model), the value that I obtain does not match (not even close): AIC=2*k-2*logLik(model) However, using AIC from the AICcmodavg(), the value matches exactly the

[R] problem with extractAIC()

2010-03-06 Thread Jordi Moya
Dear friends, If I use: model<-lm(y ~ x) and then extractAIC(model), the value that I obtain does not match (not even close): AIC=2*k-2*logLik(model) However, using AIC from the AICcmodavg(), the value matches exactly the above value. I read the help of extractAIC() and