Hi Ellie,
Thank you for clarifying how to stratify by gender. It worked.
However, I am confused about the ranksum test that you mentioned. My table is pretty large and has quite a bit of data. I did the kruskall-wallis test for many of the comparisons and for several got a statistically significant p-values which is what I have reported in the table since I just wanted to know if there is a significant difference between the three groups. I understand you're saying that I need to go back to the ones that were statistically significant and test the different pairs? I ran the ranksum command on one just to see what the output looked like and I'm not sure I know how to interpret it. Also, what would I end up reporting in my table? (My understanding is that I should just report the p-value I get from the kruskall-wallis test.)
Thank you for your help!
-Arti