[ADMB Users] function maximizer failed

Ben Bolker bbolker at gmail.com
Thu Nov 10 13:17:04 PST 2011


On 11-10-20 09:17 AM, Niklaus Kuehnis wrote:
> Hi all,
> 
> Trying to fit a negative binomial mixed model, the following error occurs:
> 
> glmm2 <- glmm.admb(intrans3 ~ hom, random = ~1, group = "nr",
>         data = mixed2.d, family = "nbinom", verbose = TRUE)
> # Error in glmm.admb(intrans3 ~ hom, random = ~1, group = "nr", data =
> mixed2.d,  :
> #   The function maximizer failed
> # In addition: Warning message:
> # In shell(cmd, invisible = TRUE) :
> #
> '"C:/Users/Username.DOMAIN/Documents/R/win-library/2.13/glmmADMB/bin/windows/nbmm.exe"
> -maxfn 500 ' execution failed with error code 1
> 
> I tried several predictor variables, family = "poisson", adding zero
> inflation and different random effects. There are two lines per subject
> (subject id = "nr"). Intrans3 has something like a zero inflated
> negative binomial distribution. hom is monomodally, approximately
> symmetrically distributed.
> 
> Is there anything wrong with my syntax?
> 

  Nothing obviously wrong.

  Are you willing to update to the latest R-forge version (0.6.5)

install.packages("glmmADMB",
   repos="http://r-forge.r-project.org",type="source")

and try again?  Your syntax will change to:

glmmADMB(intrans3~hom,
random=~1|nr,data=mixed2.d,family="nbinom",verbose=TRUE)

  In the meantime could you post the results of summary(mixed2.d) ?

  I would recommend http://tinyurl.com/reproducible-000 for those who
are asking questions based on glmmADMB/R -- although much of the advice
is more general.

  Ben Bolker






More information about the Users mailing list