I am trying to find a non-parametric two-way ANOVA test. My data can not be normalized I have tried everything.
Many people say that Kruskal-Wallis is equivalent to a two-way ANOVA, except when I code it in R nothing works.
kruskal.test(Variable 1 ~ Variable 2*Variable3, data=data)
I have also tried "+" and ":" instead of "*" and each time I receive: Error in kruskal.test.formula() : 'formula' should be of the form response ~ group.
Is a two-way Kruskal-Wallis test not possible to perform in R?