Hello all,
I'd greatly appreciate advice about analyzing a set of proportion data, where I would like to include both random and fixed factors.
The data are from an experiment with fruit flies. Each of 3 "social" treatments was applied to 3 independent populations of flies, such that there are 9 populations total. A high or low diet treatment was then applied to individual flies within each of the 9 populations. Each of these flies was placed in a separate vial and competed to sire offspring. Offspring sired by these experimental males had red eyes, whereas offspring not sired by them had white eyes, with the total number of red and white eyed offspring varying among vials.
I want to know whether the proportion of offspring sired by these flies differed depending on the social treatment, the diet treatment or the interaction between them. I have set up a model with the fixed factors of diet (with two levels), social treatment (three levels), and the diet by treatment interaction. The model also has the random effect of population nested within the social treatment. I have as the response variable the proportion of offspring with red eyes within a vial, weighted by the total number of offspring within the vial.
In running the model, the residuals were not normally distributed. I applied an arcsin-square root transformation, which helped, but the residuals remained not normally distributed. One option is to apply the logit transformation, which does make the residuals normally distributed.
However, I wonder if a better approach would be to use a generalised linear model with some specified error distribution that matches the data. I imagine that might be a logit link function. I'd greatly appreciate advice about this; especially about whether this would be better than using a logit transformation within a linear model, how to select an error distribution for a GLM and how to set the model up with JMP.
Many thanks!
Jen