2012/1/11 syrvn <mentor_@gmx.net>

> Hi,
>
> thanks for your answer. Unfortunately I cannot reproduce your results.
>
> In my example the results still differ when I use your approach:
>
> > x <- c(10,11,15,8,16,12,20)
> > y <- c(10,14,18,25,28,30,35)
> > f <- as.factor(c(rep("a",7), rep("b",7)))
> > d <- c(x,y)
> > kruskal.test(x,y)
>

Try to compare  wilcox.test and right formula in kruskal, I got:
> all.equal(wilcox.test(x,y, correct =
F,exact=F)$p.value,kruskal.test(d~f)$p.value)
[1] TRUE

-- 
Miłego dnia

	[[alternative HTML version deleted]]

