<?xml version='1.0'?>
<!DOCTYPE art SYSTEM 'http://www.biomedcentral.com/xml/article.dtd'>
<art>
   <ui>cc2857</ui>
   <ji>CCJ</ji>
   <fm>
      <dochead>Review</dochead>
      <bibl>
         <title>
            <p>Statistics review 10: Further nonparametric methods</p>
         </title>
         <aug>
            <au id="A1" ca="yes">
               <snm>Bewick</snm>
               <fnm>Viv</fnm>
               <insr iid="I1"/>
               <email>v.bewick@brighton.ac.uk</email>
            </au>
            <au id="A2">
               <snm>Cheek</snm>
               <fnm>Liz</fnm>
               <insr iid="I2"/>
               <email>E.Cheek@bton.ac.uk</email>
            </au>
            <au id="A3">
               <snm>Ball</snm>
               <fnm>Jonathan</fnm>
               <insr iid="I3"/>
               <email>jball@sghms.ac.uk</email>
            </au>
         </aug>
         <insg>
            <ins id="I1">
               <p>Senior Lecturer, School of Computing, Mathematical and Information Sciences, University of Brighton, Brighton, UK</p>
            </ins>
            <ins id="I2">
               <p>Senior Lecturer, School of Computing, Mathematical and Information Sciences, University of Brighton, Brighton, UK</p>
            </ins>
            <ins id="I3">
               <p>Senior Registrar in ICU, Liverpool Hospital, Sydney, Australia</p>
            </ins>
         </insg>
         <source>Critical Care</source>
         <issn>1364-8535</issn>
         <pubdate>2004</pubdate>
         <volume>8</volume>
         <issue>3</issue>
         <fpage>196</fpage>
         <lpage>199</lpage>
         <xrefbib>
            <pubidlist>
               <pubid idtype="pmpid">15153238</pubid>
               <pubid idtype="doi">10.1186/cc2857</pubid>
            </pubidlist>
         </xrefbib>
      </bibl>
      <history>
         <pub>
            <date>
               <day>16</day>
               <month>4</month>
               <year>2004</year>
            </date>
         </pub>
      </history>
      <cpyrt>
         <year>2004</year>
         <collab>BioMed Central Ltd</collab>
      </cpyrt>
      <kwdg>
         <kwd>Friedman test</kwd>
         <kwd>Jonckheere&#8211;Terpstra test</kwd>
         <kwd>Kruskal&#8211;Wallis test</kwd>
         <kwd>least significant difference</kwd>
      </kwdg>
      <abs>
         <sec>
            <st>
               <p>Abstract</p>
            </st>
            <p>This review introduces nonparametric methods for testing differences between more than two groups or treatments. Three of the more common tests are described in detail, together with multiple comparison procedures for identifying specific differences between pairs of groups.</p>
         </sec>
      </abs>
   </fm>
   <meta>
      <classifications>
         <classification type="BMC" subtype="theme_series_title" id="CC_Medical">Medical statistics</classification>
         <classification type="BMC" subtype="theme_series_editor" id="CC_Medical">Jonathan Ball, Viv Bewick and Liz Cheek</classification>
      </classifications>
   </meta>
   <bdy>
      <sec>
         <st>
            <p>Introduction</p>
         </st>
         <p>The previous review in this series <abbrgrp><abbr bid="B1">1</abbr></abbrgrp> described analysis of variance, the method used to test for differences between more than two groups or treatments. However, in order to use analysis of variance, the observations are assumed to have been selected from Normally distributed populations with equal variance. The tests described in this review require only limited assumptions about the data.</p>
         <p>The Kruskal&#8211;Wallis test is the nonparametric alternative to one-way analysis of variance, which is used to test for differences between more than two populations when the samples are independent. The Jonckheere&#8211;Terpstra test is a variation that can be used when the treatments are ordered. When the samples are related, the Friedman test can be used.</p>
      </sec>
      <sec>
         <st>
            <p>Kruskal&#8211;Wallis test</p>
         </st>
         <p>The Kruskal&#8211;Wallis test is an extension of the Mann&#8211;Whitney test <abbrgrp><abbr bid="B2">2</abbr></abbrgrp> for more than two independent samples. It is the nonparametric alternative to one-way analysis of variance. Instead of comparing population means, this method compares population mean ranks (i.e. medians). For this test the null hypothesis is that the population medians are equal, versus the alternative that there is a difference between at least two of them.</p>
         <p>The test statistic for one-way analysis of variance is calculated as the ratio of the treatment sum of squares to the residual sum of squares <abbrgrp><abbr bid="B1">1</abbr></abbrgrp>. The Kruskal&#8211;Wallis test uses the same method but, as with many nonparametric tests, the ranks of the data are used in place of the raw data.</p>
         <p>This results in the following test statistic:</p>
         <p>
            <graphic file="cc2857-i1.gif"/>
         </p>
         <p>Where R<sub>j </sub>is the total of the ranks for the jth sample, n<sub>j </sub>is the sample size for the jth sample, k is the number of samples, and N is the total sample size, given by:</p>
         <p>
            <graphic file="cc2857-i2.gif"/>
         </p>
         <p>This is approximately distributed as a &#967;<sup>2 </sup>distribution with k - 1 degrees of freedom. Where there are ties within the data set the adjusted test statistic is calculated as:</p>
         <p>
            <graphic file="cc2857-i3.gif"/>
         </p>
         <p>Where r<sub>ij </sub>is the rank for the ith observation in the jth sample, n<sub>j </sub>is the number of observations in the jth sample, and S<sub>2 </sub>is given by the following:</p>
         <p>
            <graphic file="cc2857-i4.gif"/>
         </p>
         <p>For example, consider the length of stay following admission to three intensive care units (ICUs): cardiothoracic, medical and neurosurgical. The data in Table <tblr tid="T1">1</tblr> show the length of stay of a random sample of patients from each of the three ICUs. As with the Mann&#8211;Whitney test, the data must be ranked as though they come from a single sample, ignoring the ward. Where two values are tied (i.e. identical), each is given the mean of their ranks. For example, the two 7s each receive a rank of (5 + 6)/2 = 5.5, and the three 11s a rank of (9 +10 + 11)/3 = 10. The ranks are shown in brackets in Table <tblr tid="T2">2</tblr>.</p>
         <tbl id="T1">
            <title>
               <p>Table 1</p>
            </title>
            <caption>
               <p>Length of stay (days) following admission</p>
            </caption>
            <tblbdy cols="3">
               <r>
                  <c ca="left">
                     <p>Cardiothoracic ICU</p>
                  </c>
                  <c ca="center">
                     <p>Medical ICU</p>
                  </c>
                  <c ca="center">
                     <p>Neurosurgical ICU</p>
                  </c>
               </r>
               <r>
                  <c cspan="3">
                     <hr/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>7</p>
                  </c>
                  <c ca="center">
                     <p>4</p>
                  </c>
                  <c ca="center">
                     <p>20</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>7</p>
                  </c>
                  <c ca="center">
                     <p>25</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>16</p>
                  </c>
                  <c ca="center">
                     <p>13</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>6</p>
                  </c>
                  <c ca="center">
                     <p>11</p>
                  </c>
                  <c ca="center">
                     <p>9</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>11</p>
                  </c>
                  <c ca="center">
                     <p>21</p>
                  </c>
                  <c ca="center">
                     <p>14</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>8</p>
                  </c>
                  <c>
                     <p/>
                  </c>
                  <c ca="center">
                     <p>11</p>
                  </c>
               </r>
            </tblbdy>
            <tblfn>
               <p>ICU, intensive care unit.</p>
            </tblfn>
         </tbl>
         <tbl id="T2">
            <title>
               <p>Table 2</p>
            </title>
            <caption>
               <p>The data and their ranks</p>
            </caption>
            <tblbdy cols="3">
               <r>
                  <c ca="left">
                     <p>Cardiothoracic ICU</p>
                  </c>
                  <c ca="center">
                     <p>Medical ICU</p>
                  </c>
                  <c ca="center">
                     <p>Neurosurgical ICU</p>
                  </c>
               </r>
               <r>
                  <c cspan="3">
                     <hr/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>7 (5.5)</p>
                  </c>
                  <c ca="center">
                     <p>4 (3)</p>
                  </c>
                  <c ca="center">
                     <p>20 (15)</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>1 (1)</p>
                  </c>
                  <c ca="center">
                     <p>7 (5.5)</p>
                  </c>
                  <c ca="center">
                     <p>25 (17)</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>2 (2)</p>
                  </c>
                  <c ca="center">
                     <p>16 (14)</p>
                  </c>
                  <c ca="center">
                     <p>13 (12)</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>6 (4)</p>
                  </c>
                  <c ca="center">
                     <p>11 (10)</p>
                  </c>
                  <c ca="center">
                     <p>9 (8)</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>11 (10)</p>
                  </c>
                  <c ca="center">
                     <p>21 (16)</p>
                  </c>
                  <c ca="center">
                     <p>14 (13)</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>8 (7)</p>
                  </c>
                  <c>
                     <p/>
                  </c>
                  <c ca="center">
                     <p>11 (10)</p>
                  </c>
               </r>
            </tblbdy>
            <tblfn>
               <p>ICU, intensive care unit.</p>
            </tblfn>
         </tbl>
         <p>For the data in Table <tblr tid="T1">1</tblr>, the sums of ranks for each ward are 29.5, 48.5 and 75, respectively, and the total sum of the squares of the individual ranks is 5.5<sup>2 </sup>+ 1<sup>2 </sup>+ ... + 10<sup>2 </sup>= 1782.5. The test statistic is calculated as follows:</p>
         <p>
            <graphic file="cc2857-i5.gif"/>
         </p>
         <p>This gives a <it>P </it>value of 0.032 when compared with a &#967;<sup>2 </sup>distribution with 2 degrees of freedom. This indicates a significant difference in length of stay between at least two of the wards. The test statistic adjusted for ties is calculated as follows:</p>
         <p>
            <graphic file="cc2857-i6.gif"/>
         </p>
         <p>This gives a <it>P </it>value of 0.031. As can be seen, there is very little difference between the unadjusted and the adjusted test statistics because the number of ties is relatively small. This test is found in most statistical packages and the output from one is given in Table <tblr tid="T3">3</tblr>.</p>
         <tbl id="T3">
            <title>
               <p>Table 3</p>
            </title>
            <caption>
               <p>The Kruskal&#8211;Wallis test on the data from Table <tblr tid="T1">1</tblr>: stay versus type</p>
            </caption>
            <tblbdy cols="4">
               <r>
                  <c ca="left">
                     <p>Type</p>
                  </c>
                  <c ca="center">
                     <p>
                        <it>n</it>
                     </p>
                  </c>
                  <c ca="center">
                     <p>Median</p>
                  </c>
                  <c ca="center">
                     <p>Average rank</p>
                  </c>
               </r>
               <r>
                  <c cspan="4">
                     <hr/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>6</p>
                  </c>
                  <c ca="center">
                     <p>6.5</p>
                  </c>
                  <c ca="center">
                     <p>4.9</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>5</p>
                  </c>
                  <c ca="center">
                     <p>11.0</p>
                  </c>
                  <c ca="center">
                     <p>9.7</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>3</p>
                  </c>
                  <c ca="center">
                     <p>6</p>
                  </c>
                  <c ca="center">
                     <p>13.5</p>
                  </c>
                  <c ca="center">
                     <p>12.5</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>Overall</p>
                  </c>
                  <c ca="center">
                     <p>17</p>
                  </c>
                  <c>
                     <p/>
                  </c>
                  <c ca="center">
                     <p>9.0</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>T = 6.90</p>
                  </c>
                  <c ca="center">
                     <p>DF = 2</p>
                  </c>
                  <c ca="center">
                     <p><it>P </it>= 0.032</p>
                  </c>
                  <c>
                     <p/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>T = 6.94</p>
                  </c>
                  <c ca="center">
                     <p>DF = 2</p>
                  </c>
                  <c ca="center">
                     <p><it>P </it>= 0.031 (adjusted for ties)</p>
                  </c>
                  <c>
                     <p/>
                  </c>
               </r>
            </tblbdy>
            <tblfn>
               <p>DF, degrees of freedom.</p>
            </tblfn>
         </tbl>
         <sec>
            <st>
               <p>Multiple comparisons</p>
            </st>
            <p>If the null hypothesis of no difference between treatments is rejected, then it is possible to identify which pairs of treatments differ by calculating a least significant difference. Treatments i and j are significantly different at the 5% significance level if the difference between their mean ranks is greater than the least significant difference (i.e. if the following inequality is true):</p>
            <p>
               <graphic file="cc2857-i7.gif"/>
            </p>
            <p>Where t is the value from the t distribution for a 5% significance level and N - k degrees of freedom.</p>
            <p>For the data given in Table <tblr tid="T1">1</tblr>, the least significant difference when comparing the cardiothoracic with medical ICU, or medical with neurosurgical ICU, and the difference between the mean ranks for the cardiothoracic and medical ICUs are as follows:</p>
            <p>
               <graphic file="cc2857-i8.gif"/>
            </p>
            <p>The difference between the mean ranks for the cardiothoracic and medical ICUs is 4.8, which is less than 5.26, suggesting that the average length of stay in these ICUs does not differ. The same conclusion can be reached when comparing the medical with neurosurgical ICU, where the difference between mean ranks is 4.9. However, the difference between the mean ranks for the cardiothoracic and neurosurgical ICUs is 7.6, with a least significant difference of 5.0 (calculated using the formula above with n<sub>i </sub>= n<sub>j </sub>= 6), indicating a significant difference between length of stays on these ICUs.</p>
         </sec>
      </sec>
      <sec>
         <st>
            <p>The Jonckheere&#8211;Terpstra test</p>
         </st>
         <p>There are situations in which treatments are ordered in some way, for example the increasing dosages of a drug. In these cases a test with the more specific alternative hypothesis that the population medians are ordered in a particular direction may be required. For example, the alternative hypothesis could be as follows: population median<sub>1 </sub>&#8804; population median<sub>2 </sub>&#8804; population median<sub>3</sub>. This is a one-tail test, and reversing the inequalities gives an analagous test in the opposite tail. Here, the Jonckheere&#8211;Terpstra test can be used, with test statistic T<sub>JT </sub>calculated as:</p>
         <p>
            <graphic file="cc2857-i9.gif"/>
         </p>
         <p>Where U<sub>xy </sub>is the number of observations in group y that are greater than each observation in group x. This is compared with a standard Normal distribution.</p>
         <p>This test will be illustrated using the data in Table <tblr tid="T1">1</tblr> with the alternative hypothesis that time spent by patients in the three ICUs increases in the order cardiothoracic (ICU 1), medical (ICU 2) and neurosurgical (ICU 3).</p>
         <p>U<sub>12 </sub>compares the observations in ICU 1 with ICU 2. It is calculated as follows. The first value in sample 1 is 7; in sample 2 there are three higher values and a tied value, giving 7 the score of 3.5. The second value in sample 1 is 1; in sample 2 there are 5 higher values giving 1 the score of 5. U<sub>12 </sub>is given by the total scores for each value in sample 1: 3.5 + 5 + 5 + 4 + 2.5 + 3 = 23. In the same way U<sub>13 </sub>is calculated as 6 + 6 + 6 + 6 + 4.5 + 6 = 34.5 and U<sub>23 </sub>as 6 + 6 + 2 + 4.5 + 1 = 19.5. Comparisons are made between all combinations of ordered pairs of groups. For the data in Table <tblr tid="T1">1</tblr> the test statistic is calculated as follows:</p>
         <p>
            <graphic file="cc2857-i10.gif"/>
         </p>
         <p>Comparing this with a standard Normal distribution gives a <it>P </it>value of 0.005, indicating that the increase in length of stay with ICU is significant, in the order cardiothoracic, medical and neurosurgical.</p>
      </sec>
      <sec>
         <st>
            <p>The Friedman Test</p>
         </st>
         <p>The Friedman test is an extension of the sign test for matched pairs <abbrgrp><abbr bid="B2">2</abbr></abbrgrp> and is used when the data arise from more than two related samples. For example, the data in Table <tblr tid="T4">4</tblr> are the pain scores measured on a visual&#8211;analogue scale between 0 and 100 of five patients with chronic pain who were given four treatments in a random order (with washout periods). The scores for each patient are ranked. Table <tblr tid="T5">5</tblr> contains the ranks for Table <tblr tid="T4">4</tblr>. The ranks replace the observations, and the total of the ranks for each patient is the same, automatically removing differences between patients.</p>
         <tbl id="T4">
            <title>
               <p>Table 4</p>
            </title>
            <caption>
               <p>Pain scores of five patients each receiving four separate treatments</p>
            </caption>
            <tblbdy cols="5">
               <r>
                  <c>
                     <p/>
                  </c>
                  <c cspan="4" ca="center">
                     <p>Treatment</p>
                  </c>
               </r>
               <r>
                  <c>
                     <p/>
                  </c>
                  <c cspan="4">
                     <hr/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>Patient</p>
                  </c>
                  <c ca="center">
                     <p>A</p>
                  </c>
                  <c ca="center">
                     <p>B</p>
                  </c>
                  <c ca="center">
                     <p>C</p>
                  </c>
                  <c ca="center">
                     <p>D</p>
                  </c>
               </r>
               <r>
                  <c cspan="5">
                     <hr/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>6</p>
                  </c>
                  <c ca="center">
                     <p>9</p>
                  </c>
                  <c ca="center">
                     <p>10</p>
                  </c>
                  <c ca="center">
                     <p>16</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>9</p>
                  </c>
                  <c ca="center">
                     <p>16</p>
                  </c>
                  <c ca="center">
                     <p>16</p>
                  </c>
                  <c ca="center">
                     <p>32</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>3</p>
                  </c>
                  <c ca="center">
                     <p>14</p>
                  </c>
                  <c ca="center">
                     <p>14</p>
                  </c>
                  <c ca="center">
                     <p>22</p>
                  </c>
                  <c ca="center">
                     <p>67</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>4</p>
                  </c>
                  <c ca="center">
                     <p>10</p>
                  </c>
                  <c ca="center">
                     <p>14</p>
                  </c>
                  <c ca="center">
                     <p>40</p>
                  </c>
                  <c ca="center">
                     <p>19</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>5</p>
                  </c>
                  <c ca="center">
                     <p>11</p>
                  </c>
                  <c ca="center">
                     <p>16</p>
                  </c>
                  <c ca="center">
                     <p>17</p>
                  </c>
                  <c ca="center">
                     <p>60</p>
                  </c>
               </r>
            </tblbdy>
         </tbl>
         <tbl id="T5">
            <title>
               <p>Table 5</p>
            </title>
            <caption>
               <p>Ranks for the data in Table <tblr tid="T4">4</tblr></p>
            </caption>
            <tblbdy cols="5">
               <r>
                  <c>
                     <p/>
                  </c>
                  <c cspan="4" ca="center">
                     <p>Treatment</p>
                  </c>
               </r>
               <r>
                  <c>
                     <p/>
                  </c>
                  <c cspan="4">
                     <hr/>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>Patient</p>
                  </c>
                  <c ca="center">
                     <p>A</p>
                  </c>
                  <c ca="center">
                     <p>B</p>
                  </c>
                  <c ca="center">
                     <p>C</p>
                  </c>
                  <c ca="center">
                     <p>D</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>3</p>
                  </c>
                  <c ca="center">
                     <p>4</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>2.5</p>
                  </c>
                  <c ca="center">
                     <p>2.5</p>
                  </c>
                  <c ca="center">
                     <p>4</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>3</p>
                  </c>
                  <c ca="center">
                     <p>1.5</p>
                  </c>
                  <c ca="center">
                     <p>1.5</p>
                  </c>
                  <c ca="center">
                     <p>3</p>
                  </c>
                  <c ca="center">
                     <p>4</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>4</p>
                  </c>
                  <c ca="center">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>4</p>
                  </c>
                  <c ca="center">
                     <p>3</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>5</p>
                  </c>
                  <c ca="center">
                     <p>1</p>
                  </c>
                  <c ca="center">
                     <p>2</p>
                  </c>
                  <c ca="center">
                     <p>3</p>
                  </c>
                  <c ca="center">
                     <p>4</p>
                  </c>
               </r>
               <r>
                  <c ca="left">
                     <p>Sum (R<sub>j</sub>)</p>
                  </c>
                  <c ca="center">
                     <p>5.5</p>
                  </c>
                  <c ca="center">
                     <p>10</p>
                  </c>
                  <c ca="center">
                     <p>15.5</p>
                  </c>
                  <c ca="center">
                     <p>19</p>
                  </c>
               </r>
            </tblbdy>
         </tbl>
         <p>In general, the patients form the blocks in the experiment, producing related observations. Denoting the number of treatments by k, the number of patients (blocks) by b, and the sum of the ranks for each treatment by R<sub>1</sub>, R<sub>2 </sub>... R<sub>k</sub>, the usual form of the Friedman statistic is as follows:</p>
         <p>
            <graphic file="cc2857-i11.gif"/>
         </p>
         <p>Under the null hypothesis of no differences between treatments, the test statistic approximately follows a &#967;<sup>2 </sup>distribution with k - 1 degrees of freedom. For the data in Table <tblr tid="T4">4</tblr>:</p>
         <p>
            <graphic file="cc2857-i12.gif"/>
         </p>
         <p>This gives the following:</p>
         <p>
            <graphic file="cc2857-i13.gif"/>
         </p>
         <p>Comparing this result with tables, or using a computer package, gives a <it>P </it>value of 0.005, indicating there is a significant difference between treatments.</p>
         <p>An adjustment for ties is often made to the calculation. The adjustment employs a correction factor C = (bk [k + 1]<sup>2</sup>)/4. Denoting the rank of each individual observation by r<sub>ij</sub>, the adjusted test statistic is:</p>
         <p>
            <graphic file="cc2857-i14.gif"/>
         </p>
         <p>For the data in Table <tblr tid="T4">4</tblr>:</p>
         <p>
            <graphic file="cc2857-i15.gif"/>
         </p>
         <p>Therefore, T<sub>1 </sub>= 3 &#215; [731.5-5 &#215; 125]/(149 - 125) = 13.31, giving a smaller <it>P </it>value of 0.004.</p>
         <sec>
            <st>
               <p>Multiple comparisons</p>
            </st>
            <p>If the null hypothesis of no difference between treatments is rejected, then it is again possible to identify which pairs of treatments differ by calculating a least significant difference. Treatments i and j are significantly different at the 5% significance level if the difference between the sum of their ranks is more than the least significant difference (i.e. the following inequality is true):</p>
            <p>
               <graphic file="cc2857-i16.gif"/>
            </p>
            <p>Where t is the value from the t distribution for a 5% significance level and (b - 1)(k - 1) degrees of freedom.</p>
            <p>For the data given in Table <tblr tid="T4">4</tblr>, the degrees of freedom for the least significant difference are 4 &#215; 3 = 12 and the least significant difference is:</p>
            <p>
               <graphic file="cc2857-i17.gif"/>
            </p>
            <p>The difference between the sum of the ranks for treatments B and C is 5.5, which is greater than 4.9, indicating that these two treatments are significantly different. However, the difference in the sum of ranks between treatments A and B is 4.5, and between C and D it is 3.5, and so these pairs of treatments have not been shown to differ.</p>
         </sec>
      </sec>
      <sec>
         <st>
            <p>Limitations</p>
         </st>
         <p>The advantages and disadvantages of nonparametric methods were discussed in Statistics review 6 <abbrgrp><abbr bid="B2">2</abbr></abbrgrp>. Although the range of nonparametric tests is increasing, they are not all found in standard statistical packages. However, the tests described in the present review are commonly available.</p>
         <p>When the assumptions for analysis of variance are not tenable, the corresponding nonparametric tests, as well as being appropriate, can be more powerful.</p>
      </sec>
      <sec>
         <st>
            <p>Conclusion</p>
         </st>
         <p>The Kruskal&#8211;Wallis, Jonckheere&#8211;Terpstra and Friedman tests can be used to test for differences between more than two groups or treatments when the assumptions for analysis of variance are not held.</p>
         <p>Further details on the methods discussed in this review, and on other nonparametric methods, can be found, for example, in Sprent and Smeeton <abbrgrp><abbr bid="B3">3</abbr></abbrgrp> or Conover <abbrgrp><abbr bid="B4">4</abbr></abbrgrp>.</p>
      </sec>
      <sec>
         <st>
            <p>Competing interests</p>
         </st>
         <p>None declared.</p>
      </sec>
      <sec>
         <st>
            <p>Abbreviations</p>
         </st>
         <p>ICU = intensive care unit.</p>
      </sec>
   </bdy>
   <bm>
      <refgrp>
         <bibl id="B1">
            <title>
               <p>Statistics review 9: Analysis of variance</p>
            </title>
            <aug>
               <au>
                  <snm>Bewick</snm>
                  <fnm>V</fnm>
               </au>
               <au>
                  <snm>Cheek</snm>
                  <fnm>L</fnm>
               </au>
               <au>
                  <snm>Ball</snm>
                  <fnm>J</fnm>
               </au>
            </aug>
            <source>Crit Care</source>
            <pubdate>2004</pubdate>
            <volume>7</volume>
            <fpage>451</fpage>
            <lpage>459</lpage>
            <xrefbib>
               <pubid idtype="doi">10.1186/cc2401</pubid>
            </xrefbib>
         </bibl>
         <bibl id="B2">
            <title>
               <p>Statistics review 6: Nonparametric methods</p>
            </title>
            <aug>
               <au>
                  <snm>Whitely</snm>
                  <fnm>E</fnm>
               </au>
               <au>
                  <snm>Ball</snm>
                  <fnm>J</fnm>
               </au>
            </aug>
            <source>Crit Care</source>
            <pubdate>2002</pubdate>
            <volume>6</volume>
            <fpage>509</fpage>
            <lpage>513</lpage>
            <xrefbib>
               <pubidlist>
                  <pubid idtype="doi">10.1186/cc1820</pubid>
                  <pubid idtype="pmpid" link="fulltext">12493072</pubid>
                  <pubid idtype="pmcid">153434</pubid>
               </pubidlist>
            </xrefbib>
         </bibl>
         <bibl id="B3">
            <aug>
               <au>
                  <snm>Sprent</snm>
                  <fnm>P</fnm>
               </au>
               <au>
                  <snm>Smeeton</snm>
                  <fnm>NC</fnm>
               </au>
            </aug>
            <source>Applied Nonparametric Statistical Methods</source>
            <publisher>London, UK: Chapman &amp; Hall/CRC</publisher>
            <edition>3</edition>
            <pubdate>2001</pubdate>
         </bibl>
         <bibl id="B4">
            <aug>
               <au>
                  <snm>Conover</snm>
                  <fnm>WJ</fnm>
               </au>
            </aug>
            <source>Practical Nonparametric Statistics</source>
            <publisher>New York, USA: John Wiley &amp; Sons</publisher>
            <edition>3</edition>
            <pubdate>1999</pubdate>
         </bibl>
      </refgrp>
   </bm>
</art>
