Skip to content
Prev 18832 / 20628 Next

Convergence in glmmTMB but not glmer

Daniel sent me the data in private.

A couple of remarks on the dataset.
- the response is non-integer. You'll need to convert it to integer (total
number) and use an appropriate offset term (log(nights)).
- make sure the factor covariate is a factor and not an integer.

Please see if that solves the problem. What happens if you use a nbinom
distribution as Ben suggested?

Personally, I don't like to "standardise" covariates. It makes them much
harder to interpret. I prefer to center to a more meaningful value than the
mean. And rescale it by changing the unit. E.g. Age ranges from 1 to 15
with mean 6.76. I'd use something like AgeC = (Age - 5) / 10. This gives a
similar range as the standardisation of Age. But one unit of AgeC
represents 10 year. And the intercept refers to Age = 5. Making the
parameters estimates easier to interpret IMHO.

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkelinx at inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///////////////////////////////////////////////////////////////////////////////////////////
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////

<https://www.inbo.be>


Op di 20 okt. 2020 om 19:40 schreef Ben Bolker <bbolker at gmail.com>: