[R] Problem comparing Akaike's AIC - nlme package

From: sbegueria <sbegueria_at_eead.csic.es>
Date: Tue, 11 Mar 2008 12:17:52 -0700 (PDT)


I am comparing models made with nlme functions and non-nlme functions, based on Akaike's AIC. The AIC values I get for exactly the same model formulation --for example a linear model with no random effects fit with gls and lm, respectively-- do not fit, although the values of the four model parameters are exactly the same. For example:

m1 <- gls(height ~ age, data = Loblolly) m2 <- lm(height ~ age, data = Loblolly)

(Intercept) age

  -1.312396 2.590523
(Intercept) age

  -1.312396 2.590523

But then:

[1] 428.9243
[1] 423.9153

I am trying to compare between more complex models, i.e. different ways of incorporating spatial self-correlation, and this issue with the AIC is really making me silly!


    S. Begueria

View this message in context: http://www.nabble.com/Problem-comparing-Akaike%27s-AIC---nlme-package-tp15986871p15986871.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 11 Mar 2008 - 19:40:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Mar 2008 - 20:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive