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)
Kruskal-Wallis rank
2012/1/11 syrvn ment...@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)
Sent: Wednesday, January 11, 2012 12:00
To: syrvn
Cc: r-help@r-project.org
Subject: Re: [R] 2 sample wilcox.test != kruskal.test
2012/1/11 syrvn ment...@gmx.net
Hi,
thanks for your answer. Unfortunately I cannot reproduce your
results.
In my example the results still differ when I
Hi Michael and Mi³ego dnia,
yes right. I get identical results now! thanks a lot!
--
View this message in context:
http://r.789695.n4.nabble.com/2-sample-wilcox-test-kruskal-test-tp4282888p4285325.html
Sent from the R help mailing list archive at Nabble.com.
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of syrvn
Sent: Tuesday, January 10, 2012 10:28 AM
To: r-help@r-project.org
Subject: [R] 2 sample wilcox.test != kruskal.test
Hello,
I think I am right in saying that a 2
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of syrvn
Sent: Wednesday, January 11, 2012 2:36 AM
To: r-help@r-project.org
Subject: Re: [R] 2 sample wilcox.test != kruskal.test
Hi,
thanks for your answer. Unfortunately I
Hello,
I think I am right in saying that a 2 sample wilcox.test is equal to a 2
sample kruskal.test and
a 2 sample t.test is equal to a 2 sample anova. This is also stated in the
?kruskal.test man page:
The Wilcoxon rank sum test (wilcox.test) as the special case for two
samples; lm together
2012/1/10 syrvn ment...@gmx.net
And why does kruskal.test(x~y) differ from kruskal.test(f~d)??
Your formula is wrong, but function doesn't see errors.
formula
a formula of the form lhs ~ rhs where lhs gives the data values and rhs the
corresponding groups.
And that leads to
8 matches
Mail list logo