Skip to content
Prev 19962 / 20628 Next

boundary (singular) fit and failure to converge

On 2022-09-13 10:25 a.m., Rafael Lima Oliveira wrote:
If you remove a term whose variance is estimated as zero, you're not 
losing *any* fidelity to the data ... in general, the recommendation is 
that terms that are fitted as singular probably indicate an 
overfitted/overly complex model (see e.g. Barr et al 2013 "Keep it 
maximal", Matuschek et al 2017 "Balancing Type I error" -- both agree 
that singular terms can be removed)
You should definitely increase the number of function evaluations. 
(Not sure why this is using Nelder-Mead, which is usually *not* the most 
robust of the available options ... ?)

   You could also try glmmTMB, which is a bit faster/more robust when 
fitting negative binomial models.
If *all* of your REs have variance zero then yes, you probably won't 
lose anything by dropping back from GLMMs to GLMs.