I am getting acquainted with statistics and R and got stuck with my model. I am hoping someone could give me some insight on how to overcome overdispersion in generalized linear mixed models (GLMMs).
So, my model is trying to explain the variance in fungus infection in frogs using population density, air moisture (VPD), and track density around collection points. Because data was collected in different National Parks, I am assuming data is clustered and I added NP as random effect. There are 3 different spp and I am analyzing them individually, so that's why I have filtered the data.
Initially, this was my model:
Complete_Data_glmer1 <- glmer(cbind(n_infected,
Healthy) ~ track_density + VPD +
pop_density * species +
(1 | NP), family = "binomial",
data = Complete_Data)
I thought I should have species interacting with the predictors because the number of infected frogs varies according to species. It makes a lot of sense, but the overdispersion was huge, with residual variance around $600$ and degrees of freedom equal to $200$. So I decided to analyze the species separately. Now, this is my model:
Complete_Data_glmer1 <- glmer(cbind(n_infected,
Healthy) ~ track_density + VPD + pop_density +
(1 | NP), family = "binomial",
data = Complete_Data %>%
filter(species == "Taudactylus acutirostris"))
It works very well for one species, more or less for the second and not at all for the third. How can I fix this? Can I use a different model for each species? It doesn't make sense in my head.
Edit. at this point I think there is something wrong with the predictors I chose, so I created a matrix in R using the pairs()
function.
I am interested in analysing how the predictors affect the n_infected, but I don't really know how to interpret this matrix.