I have a question about how to analyse count data with replicates nested in each treatment. For example, imagine temperature can influence the sex ratio of mosquito larva emerged from eggs. I have two temperatures, 27 degree and 37 degree. For each temperature treatment, two replicates are used, eg. in temperature 27, there are 32 male larva and 18 female larva for the first replicate; and 30 male/ 20 female for the second replicate. My main purpose is to determine if there is significant difference of sex ratio between the two temperature regimes.
Clearly, if there is only one replicate for each treatment, chi-square test would be the best choice to analyse the data. But with the two replicates, I don't know what should do? Merge two replicates in each treatment as one? I don't think so.