Skip to content
Prev 139241 / 398506 Next

Problem comparing Akaike's AIC - nlme package

The problem is that AIC is only defined for ML fitting, and gls defaults 
to REML.

I have always maintained that it is a bug that nlme's logLik function 
returns a log restricted likelihood for the default fits, and that this 
is converted to a mis-named AIC.  If you use

m1 <- gls(height ~ age, data = Loblolly, method="ML")

you wil get agreement.
On Tue, 11 Mar 2008, sbegueria wrote: