Skip to content
Prev 18326 / 20628 Next

Troubleshooting glmmTMB

On 4/19/20 9:59 AM, Matteo Sebastianelli wrote:
?? glmer with Poisson response?
?? This is not a bad idea, but note that estimates of dispersion can be 
very imprecise (i.e., it may not be as necessary to move away from 
Poisson as you think).

 ?? Do you have reason to suspect zero-inflation or are you just trying 
to cover your bases?
?? Most often this is caused by an extreme parameter, e.g. if you are 
trying to fit zero-inflation with a data set that really doesn't have 
any, or a negative binomial model with equi- or underdispersion
? Try changing the missing(analyze_hessian)) clause to:


 ?????? if (missing(analyze_hessian)) {
 ??????????? warning("analyzing Hessian, not vcov")
 ??????????? analyze_hessian <- TRUE
 ??????? } else {
 ??????????? if (!analyze_hessian) stop("can't analyze vcov")
 ??????? }
?? I wouldn't, I'd include it as a fixed effect or leave it out.