For my research I have three diagnostic groups (let's say Dx, Dy and Dz).
To analyse the difference of male:female proportions between the diagnostic groups I used a chi-squared test. This gave me one p value to observe that there was a significant difference.
I then want to look for pairwise comparisons between the groups. e.g. the proportion of male:female in Dx vs Dy, Dx vs Dz and Dy vs Dz. I'm unsure of how to do this.