Skip to content
Prev 18666 / 20628 Next

glmer / MuMin : Error in asMethod(object) : not a positive definite matrix

Hi Guillaume

You can generate a list of calls by setting evaluate = FALSE in tdredge() and use the resulting list to run the models within a try(). You will just need to extract AIC (or whatever) yourself to rank models. But it should help to pinpoint models that fail.

Something like:

dlist <- dredge(mod_full_CC,rank="AICc",fixed=c("block","year"), evaluate = FALSE)
AICs <- sapply(dlist, function(x) {
  try(AICc(eval(x)))
})

HTH,
Rafi