I want to compare a categorical variable between two groups or cohorts. The categorical variable has multiple categories and I want to compare the categories separately. Specifically, I have a variable called "Disease states" with categories 1, 2, 3, and 4. I want to investigate if there are significant differences in the distribution of these categories between the two groups.
I am considering using the chi-squared test, but I'm unsure if this is the appropriate statistical test for my analysis.
What do you think about it?
Thank you very much ;)