anov_np <- kruskal.test(Sepal.Length ~Species, data=iris)
Hello, Here is the syntaxe for one parameter. I want to make a non parametric anova of several columns at the same time without loop
anov_np <- kruskal.test(Sepal.Length ~Species, data=iris)
Hello, Here is the syntaxe for one parameter. I want to make a non parametric anova of several columns at the same time without loop
cols <- list("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")
lapply(cols, function(x) kruskal.test(as.formula(paste(x, " ~ Species")), data=iris))