[R-sig-ME] using MuMIn with glmmADMB

Ben Bolker bbolker at gmail.com
Sat Apr 21 15:11:08 CEST 2012


Rafael Mares <raffmares at ...> writes:

> Has anyone tried to use MuMIn along with glmmADMB? I'm trying to use
> the importance() function from the MuMIn package (version 1.7.7) to
> the get the sum of AIC weights across models that include a given
> explanatory variable, within a set of candidate models fitted using
> glmmADMB (version 0.7).
> 
> I've used this for models fitted with lme4, and it works like this:
> importance(c(mod0, mod1, mod2, mod3))
> where mod[i] is the model name.
> 
> This doesn't seem to work for models fitted with glmmADMB, as I get:
> "Error in formula.default(x) : invalid formula"
 
[snip]

  It seems to work fine if I use list(mod0,mod1), for example:

library(glmmADMB)
example(glmmadmb)
bfit1 <- update(bfit,.~.-trt)
importance(list(bfit1,bfit))



More information about the R-sig-mixed-models mailing list