<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Post hoc analysis for Friedman&#8217;s Test  (R code)</title>
	<atom:link href="http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/</link>
	<description>Writing about statistics with R, and open source stuff (software, data, community)</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:07:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jan</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-13936</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Mon, 16 Jan 2012 13:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-13936</guid>
		<description>Nice coding &amp; example!</description>
		<content:encoded><![CDATA[<p>Nice coding &amp; example!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RRookie</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-13926</link>
		<dc:creator>RRookie</dc:creator>
		<pubDate>Tue, 10 Jan 2012 18:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-13926</guid>
		<description>Hi~
Your code is so charming!but I got some trouble with it...I have an data frame like this        S T  TD
1  0.00 1  D1
2  0.00 1  D2
3  0.00 1  D3
4  0.70 1  D4
5  0.74 1  D5
6  0.63 1  D6
7  0.61 1  D7
8  0.56 1  D8
9  0.54 1  D9
10 0.60 1 D10
11 0.00 2  D1
12 0.68 2  D2
13 0.57 2  D3
14 0.56 2  D4
15 0.56 2  D5
16 0.48 2  D6
17 0.57 2  D7
18 0.58 2  D8
19 0.56 2  D9
20 0.56 2 D10
21 0.00 3  D1
22 0.76 3  D2
23 0.68 3  D3
24 0.70 3  D4
25 0.59 3  D5
26 0.57 3  D6
27 0.62 3  D7
28 0.50 3  D8
29 0.59 3  D9
30 0.00 3 D10
31 0.00 4  D1
32 0.76 4  D2
33 0.70 4  D3
34 0.73 4  D4
35 0.68 4  D5
36 0.66 4  D6
37 0.80 4  D7
38 0.55 4  D8
39 0.53 4  D9
40 0.52 4 D10
41 0.00 5  D1
42 0.82 5  D2
43 0.67 5  D3
44 0.50 5  D4
45 0.67 5  D5
46 0.58 5  D6
47 0.00 5  D7
48 0.00 5  D8
49 0.00 5  D9
50 0.00 5 D10
51 0.00 6  D1
52 0.00 6  D2
53 0.59 6  D3
54 0.48 6  D4
55 0.68 6  D5
56 0.62 6  D6
57 0.48 6  D7
58 0.49 6  D8
59 0.48 6  D9
60 0.42 6 D10
61 0.00 7  D1
62 0.00 7  D2
63 0.69 7  D3
64 0.00 7  D4
65 0.00 7  D5
66 0.00 7  D6
67 0.00 7  D7
68 0.57 7  D8
69 0.49 7  D9
70 0.61 7 D10
71 0.00 8  D1
72 0.72 8  D2
73 0.75 8  D3
74 0.00 8  D4
75 0.00 8  D5
76 0.00 8  D6
77 0.00 8  D7
78 0.66 8  D8
79 0.74 8  D9
80 0.56 8 D10and I trend to compute &quot; friedman.test(S ~ TD &#124; T) &quot;but I can&#039;t run your procedure successfully...it just gave me a wrong message :&quot;In if (to.post.hoc.if.signif) { :
   the condition has length &gt; 1 and only the first element will be used&quot;how can I do next ?</description>
		<content:encoded><![CDATA[<p>Hi~<br />
Your code is so charming!but I got some trouble with it&#8230;I have an data frame like this        S T  TD<br />
1  0.00 1  D1<br />
2  0.00 1  D2<br />
3  0.00 1  D3<br />
4  0.70 1  D4<br />
5  0.74 1  D5<br />
6  0.63 1  D6<br />
7  0.61 1  D7<br />
8  0.56 1  D8<br />
9  0.54 1  D9<br />
10 0.60 1 D10<br />
11 0.00 2  D1<br />
12 0.68 2  D2<br />
13 0.57 2  D3<br />
14 0.56 2  D4<br />
15 0.56 2  D5<br />
16 0.48 2  D6<br />
17 0.57 2  D7<br />
18 0.58 2  D8<br />
19 0.56 2  D9<br />
20 0.56 2 D10<br />
21 0.00 3  D1<br />
22 0.76 3  D2<br />
23 0.68 3  D3<br />
24 0.70 3  D4<br />
25 0.59 3  D5<br />
26 0.57 3  D6<br />
27 0.62 3  D7<br />
28 0.50 3  D8<br />
29 0.59 3  D9<br />
30 0.00 3 D10<br />
31 0.00 4  D1<br />
32 0.76 4  D2<br />
33 0.70 4  D3<br />
34 0.73 4  D4<br />
35 0.68 4  D5<br />
36 0.66 4  D6<br />
37 0.80 4  D7<br />
38 0.55 4  D8<br />
39 0.53 4  D9<br />
40 0.52 4 D10<br />
41 0.00 5  D1<br />
42 0.82 5  D2<br />
43 0.67 5  D3<br />
44 0.50 5  D4<br />
45 0.67 5  D5<br />
46 0.58 5  D6<br />
47 0.00 5  D7<br />
48 0.00 5  D8<br />
49 0.00 5  D9<br />
50 0.00 5 D10<br />
51 0.00 6  D1<br />
52 0.00 6  D2<br />
53 0.59 6  D3<br />
54 0.48 6  D4<br />
55 0.68 6  D5<br />
56 0.62 6  D6<br />
57 0.48 6  D7<br />
58 0.49 6  D8<br />
59 0.48 6  D9<br />
60 0.42 6 D10<br />
61 0.00 7  D1<br />
62 0.00 7  D2<br />
63 0.69 7  D3<br />
64 0.00 7  D4<br />
65 0.00 7  D5<br />
66 0.00 7  D6<br />
67 0.00 7  D7<br />
68 0.57 7  D8<br />
69 0.49 7  D9<br />
70 0.61 7 D10<br />
71 0.00 8  D1<br />
72 0.72 8  D2<br />
73 0.75 8  D3<br />
74 0.00 8  D4<br />
75 0.00 8  D5<br />
76 0.00 8  D6<br />
77 0.00 8  D7<br />
78 0.66 8  D8<br />
79 0.74 8  D9<br />
80 0.56 8 D10and I trend to compute &#8221; friedman.test(S ~ TD | T) &#8220;but I can&#8217;t run your procedure successfully&#8230;it just gave me a wrong message :&#8221;In if (to.post.hoc.if.signif) { :<br />
   the condition has length &gt; 1 and only the first element will be used&#8221;how can I do next ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tal Galili</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-13764</link>
		<dc:creator>Tal Galili</dc:creator>
		<pubDate>Sun, 04 Dec 2011 19:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-13764</guid>
		<description>My pleasure :)</description>
		<content:encoded><![CDATA[<p>My pleasure <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guest</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-13763</link>
		<dc:creator>guest</dc:creator>
		<pubDate>Sun, 04 Dec 2011 19:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-13763</guid>
		<description>This was really helpful! thanks</description>
		<content:encoded><![CDATA[<p>This was really helpful! thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaël</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-13247</link>
		<dc:creator>Gaël</dc:creator>
		<pubDate>Mon, 14 Nov 2011 15:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-13247</guid>
		<description>Hi Ben, 

Friedman&#039;s test takes into account the dependance between the three columns in your &quot;randomdata&quot; object. Applying it to pairs of columns from this data set thus seems wrong.

However, I&#039;d advise (as in the comment left on October 6 2010) using:
pairwise.wilcox.test(x=data$measure,g=data$group,p.adjust.method=”holm”,paired=T)</description>
		<content:encoded><![CDATA[<p>Hi Ben, </p>
<p>Friedman&#8217;s test takes into account the dependance between the three columns in your &#8220;randomdata&#8221; object. Applying it to pairs of columns from this data set thus seems wrong.</p>
<p>However, I&#8217;d advise (as in the comment left on October 6 2010) using:<br />
pairwise.wilcox.test(x=data$measure,g=data$group,p.adjust.method=”holm”,paired=T)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben M</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-13206</link>
		<dc:creator>Ben M</dc:creator>
		<pubDate>Sun, 13 Nov 2011 17:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-13206</guid>
		<description>This may sound stupid but why not follow up the overall Friedman test with new Friedman tests for each pair of contrasts? Would this be wrong? Example:

randomdata &lt;- cbind(rnorm(30,0),rnorm(30,1),rnorm(30,1))
friedman.test(randomdata)

friedman.test(randomdata[,c(1,2)])
friedman.test(randomdata[,c(1,3)])
friedman.test(randomdata[,c(2,3)])

With an appropriate correction for multiple testing, obviously.</description>
		<content:encoded><![CDATA[<p>This may sound stupid but why not follow up the overall Friedman test with new Friedman tests for each pair of contrasts? Would this be wrong? Example:</p>
<p>randomdata &lt;- cbind(rnorm(30,0),rnorm(30,1),rnorm(30,1))<br />
friedman.test(randomdata)</p>
<p>friedman.test(randomdata[,c(1,2)])<br />
friedman.test(randomdata[,c(1,3)])<br />
friedman.test(randomdata[,c(2,3)])</p>
<p>With an appropriate correction for multiple testing, obviously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henric Winell</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-11504</link>
		<dc:creator>Henric Winell</dc:creator>
		<pubDate>Sun, 10 Jul 2011 17:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-11504</guid>
		<description>No.

&#039;Tukey&#039; simply corresponds to the particular set of contrasts that represents all pairwise comparisons of the groups. So, for three groups (A, B and C) you&#039;d want the contrasts representing B vs A, C vs A and C vs B.</description>
		<content:encoded><![CDATA[<p>No.</p>
<p>&#8216;Tukey&#8217; simply corresponds to the particular set of contrasts that represents all pairwise comparisons of the groups. So, for three groups (A, B and C) you&#8217;d want the contrasts representing B vs A, C vs A and C vs B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meech</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-11438</link>
		<dc:creator>Meech</dc:creator>
		<pubDate>Thu, 07 Jul 2011 07:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-11438</guid>
		<description>You use Tukey in your code-isn&#039;t this usually reserved for parametric analysis?

Thanks</description>
		<content:encoded><![CDATA[<p>You use Tukey in your code-isn&#8217;t this usually reserved for parametric analysis?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rbest</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-11146</link>
		<dc:creator>rbest</dc:creator>
		<pubDate>Thu, 02 Jun 2011 21:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-11146</guid>
		<description>Okay, so cancel the bit about SAS vs. R. I&#039;m getting the same results now. But I would still love to know why your p-values are slightly different from the friedman.test function (what is the maxT method?), and especially why I&#039;m seeing two very slightly different p-values associated with the same maxT statistic (one before and one after the multiple comparisons). Anyway. Sorry for the previous post, which was mostly wrong!</description>
		<content:encoded><![CDATA[<p>Okay, so cancel the bit about SAS vs. R. I&#8217;m getting the same results now. But I would still love to know why your p-values are slightly different from the friedman.test function (what is the maxT method?), and especially why I&#8217;m seeing two very slightly different p-values associated with the same maxT statistic (one before and one after the multiple comparisons). Anyway. Sorry for the previous post, which was mostly wrong!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rbest</title>
		<link>http://www.r-statistics.com/2010/02/post-hoc-analysis-for-friedmans-test-r-code/comment-page-1/#comment-11145</link>
		<dc:creator>rbest</dc:creator>
		<pubDate>Thu, 02 Jun 2011 21:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.r-statistics.com/?p=150#comment-11145</guid>
		<description>Hi there

Question about your test statistic. I&#039;m getting really different p-values running a Friedman&#039;s Test in SAS vs. the friedman.test function in R. I know that SAS is using the somewhat updated (as of Iman and Davenport 1980) version of the test statistic, as presented in 2nd and 3rd editions of Conover. The R help does not cite a formula, but does cite an older text (1973). So I&#039;m wondering if the function in R is using the old test statistic? You appear to use a newer version of the same Hollander and Wolfe text, but when I use your code I get a p-value more similar to that provided by the friedman.test function. But not exactly the same. Any insight on (a) what test statistic is being used in R, and why your test and the friedman.test function are not identical for the global test? Thanks very much!

R</description>
		<content:encoded><![CDATA[<p>Hi there</p>
<p>Question about your test statistic. I&#8217;m getting really different p-values running a Friedman&#8217;s Test in SAS vs. the friedman.test function in R. I know that SAS is using the somewhat updated (as of Iman and Davenport 1980) version of the test statistic, as presented in 2nd and 3rd editions of Conover. The R help does not cite a formula, but does cite an older text (1973). So I&#8217;m wondering if the function in R is using the old test statistic? You appear to use a newer version of the same Hollander and Wolfe text, but when I use your code I get a p-value more similar to that provided by the friedman.test function. But not exactly the same. Any insight on (a) what test statistic is being used in R, and why your test and the friedman.test function are not identical for the global test? Thanks very much!</p>
<p>R</p>
]]></content:encoded>
	</item>
</channel>
</rss>

