Let's assume the group variable is the dependent variable and can have the values [A,B,C,D]. It is nominal. The independent variable is ordinal and can have numbers between 0 and 5.
I want to test for differences between the 4 groups in the independent variable.
Is it possible to test this with the Kruskal-Wallis Test. I´m confused because literature says that for the Kruskal-Wallis Test the dependent variable needs to be ordinal. So this would be the other way around. Can I still use it?
I´m just interested in differences, not in an effect.