Displaying 1 result from an estimated 1 matches for "myaic".
Did you mean:
myair
2008 Feb 04
1
extracting AIC scores from lmer and other objects
...ng the error
Error in UseMethod("logLik") : no applicable method for "logLik"
in a variety of different contexts. The first is if I have to get
an AIC for an lmer object. AIC(my.lmer) give me the error above.
However, I can circumvent this with a very silly solution -
myAIC<-function(object) {a<-logLik(object)
return(-2*a[1] +2*attr(a, 'df'))}
I use this, and I do not get an error.
3) I do, however, get the above error if I have a vector of model
objects. So, again, if I have something like model.list<-c(my.lm,
my.lmer) or even just c(my.lm, m...