I have a sample dataset that looks like this :
Day<-c(1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2) Group<-c("A","A","A","B","B","B","C","C","C","A","A","A","A","B","B","B","C","C","C") Value<-c(4,4,6,5,3,4,5,5,3,6,6,6,5,3,3,3,2,5,2) d<-data.frame(Day,Group,Value) I would like to do a Kruskal Wallis test between A, B and C in the "Group" variable for each "Day", then to print the results? Any help is much appreciated. Thank you.
https://stackoverflow.com/questions/65453126/how-to-loop-kruskal-wallis-test-through-different-groups-then-print-results December 26, 2020 at 10:01AM
没有评论:
发表评论