I have run a lognormal GLMM using the glmmTMB package, and I could use some help understanding the dispersion parameter. It is very large (2210), but there are no model convergence issues and no dispersion problems identified by DHARMa residuals.
In case it is helpful, here are the details about my data: I have a dataset of eDNA detections of rainbow trout collected using three sampling methods. I have 20 sampling locations, three field replicates of each method at each location, and three qPCR replicates of each field replicate (though some field replicates went missing before they could be analyzed, so the data is not perfectly balanced). My model includes nested random effects for field replicate ("Sample ID"), the set of three field replicates for each method at each location ("Sample Set"), and location ("Sampling Location Abbreviation"). In addition to the primary predictor of interest (sampling method), I am also accounting for the effects of three location-level covariates: stream discharge, water temperature, and turbidity.
Here is my model structure:
lognormalmod<-glmmTMB(SQperL~Sampling.Method.Abbreviation + Stream.Discharge + Water.Temperature + NTU + (1|Sampling.Location.Abbreviation/Sample.Set/Sample.ID),data=dat,ziformula=~.,family=lognormal(link="log"))
And here is my model summary:
Family: lognormal ( log )
Formula: SQperL ~ Sampling.Method.Abbreviation + Stream.Discharge + Water.Temperature +
NTU + (1 | Sampling.Location.Abbreviation/Sample.Set/Sample.ID)
Zero inflation: ~.
Data: dat
AIC BIC logLik -2*log(L) df.resid
6712.8 6790.5 -3337.4 6674.8 424
Random effects:
Conditional model:
Groups Name Variance Std.Dev.
Sample.ID:Sample.Set:Sampling.Location.Abbreviation (Intercept) 0.1151 0.3392
Sample.Set:Sampling.Location.Abbreviation (Intercept) 0.1043 0.3230
Sampling.Location.Abbreviation (Intercept) 0.5009 0.7077
Number of obs: 443, groups:
Sample.ID:Sample.Set:Sampling.Location.Abbreviation, 148; Sample.Set:Sampling.Location.Abbreviation, 55; Sampling.Location.Abbreviation, 20
Zero-inflation model:
Groups Name Variance Std.Dev.
Sample.ID:Sample.Set:Sampling.Location.Abbreviation (Intercept) 8.499 2.915
Sample.Set:Sampling.Location.Abbreviation (Intercept) 1.638 1.280
Sampling.Location.Abbreviation (Intercept) 2.195 1.482
Number of obs: 443, groups:
Sample.ID:Sample.Set:Sampling.Location.Abbreviation, 148; Sample.Set:Sampling.Location.Abbreviation, 55; Sampling.Location.Abbreviation, 20
Dispersion parameter for lognormal family (): 2.21e+03
Conditional model:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 8.88150 1.09788 8.090 5.98e-16 ***
Sampling.Method.AbbreviationCN-EtOH -0.20503 0.16132 -1.271 0.203744
Sampling.Method.AbbreviationPES-EtOH 0.18973 0.14417 1.316 0.188151
Stream.Discharge -0.06274 0.01734 -3.618 0.000297 ***
Water.Temperature -0.07522 0.08705 -0.864 0.387516
NTU 0.13195 0.15260 0.865 0.387209
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Zero-inflation model:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -12.75844 5.23807 -2.436 0.0149 *
Sampling.Method.AbbreviationCN-EtOH 1.50598 1.22283 1.232 0.2181
Sampling.Method.AbbreviationPES-EtOH -3.00912 1.58747 -1.896 0.0580 .
Stream.Discharge 0.06929 0.06412 1.081 0.2798
Water.Temperature 0.75084 0.41926 1.791 0.0733 .
NTU -1.95762 1.05074 -1.863 0.0624 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
My DHARMa residuals look like this:
What is my dispersion parameter telling me and is its large size cause for concern?