Skip to content
Prev 18142 / 20628 Next

glmmTMB warnings and no output Gamma distribution

Hi Willem,
This coding looks correct, but can you say something about River and ID in the design. Are the labels for the levels of one reused in the levels of the other?

The default in glmmTMB is to use an inverse link with the Gamma family because that?s what glm() does in base R, but I don?t actually know why. Since the mean has to be positive, I would guess that a log link is a good thing to try, but maybe someone else can explain why inverse is the default.
This coding is not correct. Check out the issue you linked to. https://github.com/glmmTMB/glmmTMB/issues/329 <https://github.com/glmmTMB/glmmTMB/issues/329>

If Month is an integer, then you could use ar1(Month+0 | X) where X is probably ID, or possibly River depending on the design.  This also depends on if the experiment ran for more than 12 months, in which case, you do not want to repeat 1:12 in the second year if it is based on calendar months. In ar1(Time +0 | X), you need Time to continue counting even if Month repeats according to the calendar in the data. 

Cheers,
Mollie