I have data on reproductive success of Drosophila throughout their whole lifetime. It is mainly proportional data I have, as each observation is of the type (#successes = WT in my case, #failures = SPA in my case) within a mating patch (vial in my case). I am trying to fit a model with two categorical fixed effects (treatment and exposure (to this treatment) and their interaction.
I have tried running the following model:
glm(cbind(WT,SPA) ~ treatment*exposure, family= "binomial", data= lrs2)
but it came out extremely over dispersed. I used the glm.binomial.disp() command ( from the dispmod R package ) to fix the overdispersion, which worked, but the outcome says Ho confirmed although the plot seems to say completely otherwise, suggesting something must be wrong with the model fit.
Here is how my data is distributed: RATIO correspond to #success/N (representation of cbind(WT,SPA) used higher up), whereas WT is the number of offsprings sired by the focal individual (#successes. [![data distribution][1]][1]
Seeing how the data is distributed, I thought I could use a a zero-inflated poisson, and use the following model:
zeroinfl(WT ~ treatment*exposure, data= lrs2)
Would that be correct seeing how my data is distributed?
Thank you for you help, Im struggling quite hard. Quentin