Skip to content
Prev 15887 / 20628 Next

spatial covariance structure in glmmTMB

In the end, I was able to run the following model: 

m1<-glmmTMB(count~waterdepth + temperature + chl.conc + (1|individual) + gau(coord + 0| group), family=list(family="truncated_nbinom1", link="log"), data=mydata) 

Where 'coord' are the spatial coordinates (UTM) represented as a factor, and 'group' is a single level. 

group<-factor(rep(1,n)) 

However, I get the error: 

Warning message: 
In glmmTMB(count ~ waterdepth + temperature + : 
Model convergence problem; non-positive-definite Hessian matrix. See vignette('troubleshooting') 

I didn't have this error when I initially ran my model without a covariance structure. 
Any advice on how I should move forward? 

Thanks!!! Alice 


From: "Ben Bolker" <bbolker at gmail.com> 
To: "Alice Domalik" <adomalik at sfu.ca> 
Cc: "Mollie Brooks" <mollieebrooks at gmail.com>, r-sig-mixed-models at r-project.org, "Kasper Kristensen" <kaskr at dtu.dk> 
Sent: Monday, October 9, 2017 3:05:19 PM 
Subject: Re: [R-sig-ME] spatial covariance structure in glmmTMB 

Did you see the part of the document (sub)titled "Adding coordinate 
information" ? (The example given in the vignette only does a 1-D 
example, but it gives instructions that should in principle work for 
2-D ...)
On Mon, Oct 9, 2017 at 12:05 PM, Alice Domalik <adomalik at sfu.ca> wrote: