[ADMB Users] gradient_structure problem with nbinom glmm.admb in R
H. Skaug
hskaug at gmail.com
Tue Jun 14 07:48:32 PDT 2011
Hi,
The reason for your error message is that you fit a larger
model than users of glmmADMB has done in the past.
You are on the right track, but you need to compile "nbmm.tpl" using
the command line "admb -r nbmm" (see http://admb-project.org/) ,
and put the resulting executable in the right place:
R-2.12.1/library/glmmADMB/bin/linux
Hans
On Sun, Jun 12, 2011 at 12:04 PM, Rafael Mares <crm53 at cam.ac.uk> wrote:
> Dear all
>
> I am trying to run the following model using glmmADMB (ver. 0.5-2) in
> R (ver. 2.13.0) in a linux terminal:
>
> rmix<-glmm.admb(dur~1,random=~group,group="id",data=dat,family="nbinom",easyFlag=FALSE,verbose=TRUE)
>
> and I get the following error message:
>
> Current maximum number of independent variables is 50000
> You need to increase the global variable MAX_NVAR_OFFSET to 58531
> This can be done by putting the line
> 'gradient_structure::set_MAX_NVAR_OFFSET(58531);'
> before the declaration of the gradient_structure object.
> Error in glmm.admb(dur ~ 1, random = ~group, group = "id", data = dat, :
> The function maximizer failed
>
> I've done some reading, mainly on the admb-project website and posts
> on this mailing list, and tried modifying the 'gradient_structure'
> line in the TOP_OF_MAIN_SECTION in the nbmm.tpl file in my R library,
> as I think is suggested... but I get the same error message as if
> nothing had been changed. I would greatly appreciate it if someone
> could clarify if I'm doing something wrong, or if it actually isn't
> possible to change the gradient_structure when running glmmADMB
> through R. By the way, I have no problems running the same model with
> "random=~1".
>
> Thank you in advance for any help.
> All the best,
>
> Raff
>
> --
> Rafael Mares
> Large Animal Research Group (LARG)
> Department of Zoology
> University of Cambridge
> Downing Street
> Cambridge
> CB2 3EJ
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
More information about the Users
mailing list