i have trouble in deciding which statistical test i have to use in R for comparing my groups (6 groups) in relation to a categorical value (yes or no). I can explain it like that. The six groups of the cohort are not interval scaled and the groups are also a categorical value and you can image it like 6 categories e.g category 1 non severe, category 2 less severe, 3 severe, 4 more severe, 5 tremendous severe 6, life threatening. I want to control if there is a statistical significance for each group in relation to my yes/no value.
Thanks and best regards
If I understand your data correctly, a Chi Squared test may be appropriate. I suggest you study that and decide if it makes sense.
A function in R that does the test is chisq.test()
thanks for your reply. but do i have to make a subset for each group? all patients belong to the cohort and are divided in these 6 groups in relation to the severity of their disease.