[R] Kruskal.test

arun smartpink111 at yahoo.com
Tue Jul 9 19:48:25 CEST 2013


Hi,
?kruskal.test()
 a<- c(2,4,5,2,7)
 b<- c(2,2,6)
 c<- c(3,7,9,3)
 kruskal.test(list(a,b,c))
#
 #  Kruskal-Wallis rank sum test
#
#data:  list(a, b, c)
#Kruskal-Wallis chi-squared = 2.003, df = 2, p-value = 0.3673
A.K.


Hi 

I need an expression in R to apply a kruskal.test to this data (for example). 
a   a   a   a    a    b   b    b    c    c   c    c 
2  4    5   2    7    2   2    6    3    7   9    3 
a, b and c could be consider different vectors. How can I apply this
 test to this data? (probably the data isn't good to this test, but I 
onlu need the expression). 

Thank you very much



More information about the R-help mailing list