[R] perform Kruskal-Wallis test without using the built-in command in R

stephen sefick ssefick at gmail.com
Wed Nov 5 17:14:38 CET 2008


homework?  Anyway, look at the code for kruskal.test I think, and that
should be a good start.

On Tue, Nov 4, 2008 at 5:59 PM, Swanton0822 <iverson0822 at hotmail.com> wrote:
>
> Hi,
> again i am stuck in my presentation, and i have never learn R before in my
> life but need this to be done, so please help me out for a favour:
>
> http://www.nabble.com/file/p20333155/kew.dat kew.dat
>
> run this in R and these comes up:
>
>     Month Year       Rain
> 1      Jan 1900  74.400000
> 2      Feb 1900  80.500000
> 3      Mar 1900  23.600000
> 4      Apr 1900  23.600000
> 5      May 1900  25.100000
> 6      Jun 1900  53.300000
> 7      Jul 1900  31.700000
> 8      Aug 1900  67.300000
> 9      Sep 1900  26.400000
> 10     Oct 1900  40.900000
> 11     Nov 1900  43.400000
> 12     Dec 1900  64.800000
> 13     Jan 1901  21.600000
> 14     Feb 1901  22.600000
> 15     Mar 1901  51.300000
> 16     Apr 1901  53.600000
> 17     May 1901  11.400000
> 18     Jun 1901  32.800000
> 19     Jul 1901  53.100000
> 20     Aug 1901  47.500000
> 21     Sep 1901  38.600000
> 22     Oct 1901  48.000000
> 23     Nov 1901  11.900000
> 24     Dec 1901  82.300000
> 25     Jan 1902  18.500000
> 26     Feb 1902  21.600000
> 27     Mar 1902  44.400000
> 28     Apr 1902  12.400000
> 29     May 1902  62.200000
> 30     Jun 1902  94.200000
> 31     Jul 1902  28.700000
> 32     Aug 1902  87.600000
> 33     Sep 1902  64.000000
> 34     Oct 1902  35.300000
> 35     Nov 1902  39.900000
> 36     Dec 1902  35.100000
> 37     Jan 1903  55.600000
> 38     Feb 1903  25.100000
> 39     Mar 1903  59.700000
> 40     Apr 1903  44.700000
> 41     May 1903  85.100000
> 42     Jun 1903 183.100000
> 43     Jul 1903 108.500000
> 44     Aug 1903  99.800000
> 45     Sep 1903  82.000000
> 46     Oct 1903 139.400000
> 47     Nov 1903  45.500000
> 48     Dec 1903  40.900000
> 49     Jan 1904  60.200000
> 50     Feb 1904  56.900000
> 51     Mar 1904  32.500000
> 52     Apr 1904  23.900000
> 53     May 1904  67.300000
> 54     Jun 1904  27.900000
> 55     Jul 1904  51.600000
> 56     Aug 1904  42.200000
> 57     Sep 1904  42.900000
> 58     Oct 1904  41.400000
> 59     Nov 1904  44.200000
> 60     Dec 1904  47.200000
> 61     Jan 1905  27.400000
> 62     Feb 1905  17.000000
> 63     Mar 1905  80.800000
> 64     Apr 1905  38.900000
> 65     May 1905  19.000000
> 66     Jun 1905 103.100000
> 67     Jul 1905  42.900000
> 68     Aug 1905  71.100000
> 69     Sep 1905  44.400000
> 70     Oct 1905  31.000000
> 71     Nov 1905  78.700000
> 72     Dec 1905  18.800000
> 73     Jan 1906  85.300000
> 74     Feb 1906  42.900000
> 75     Mar 1906  26.200000
> 76     Apr 1906  11.200000
> 77     May 1906  45.700000
> 78     Jun 1906  72.100000
> 79     Jul 1906  26.200000
> 80     Aug 1906  19.600000
> 81     Sep 1906  44.400000
> 82     Oct 1906  80.800000
> 83     Nov 1906  98.600000
> 84     Dec 1906  47.000000
> 85     Jan 1907  17.300000
> 86     Feb 1907  29.200000
> 87     Mar 1907  22.600000
> 88     Apr 1907  79.800000
> 89     May 1907  42.700000
> 90     Jun 1907  71.400000
> 91     Jul 1907  45.700000
> 92     Aug 1907  45.500000
> 93     Sep 1907  13.500000
> 94     Oct 1907  92.700000
> 95     Nov 1907  52.800000
> 96     Dec 1907  91.700000
> 97     Jan 1908  46.200000
> 98     Feb 1908  30.500000
> 99     Mar 1908  61.200000
> 100    Apr 1908  58.700000
> 101    May 1908  33.800000
> 102    Jun 1908  49.500000
> 103    Jul 1908  62.000000
> 104    Aug 1908  61.700000
> 105    Sep 1908  35.800000
> 106    Oct 1908  55.100000
> 107    Nov 1908  17.300000
> 108    Dec 1908  52.800000
> 109    Jan 1909  18.800000
> 110    Feb 1909   7.900000
> 111    Mar 1909  69.300000
> 112    Apr 1909  44.700000
> 113    May 1909  40.600000
> 114    Jun 1909  86.600000
> 115    Jul 1909  68.100000
> 116    Aug 1909  33.300000
> 117    Sep 1909  63.200000
> 118    Oct 1909  91.400000
> 119    Nov 1909  17.800000
> 120    Dec 1909  59.200000
> 121    Jan 1910  42.700000
> 122    Feb 1910  70.100000
> 123    Mar 1910  24.400000
> 124    Apr 1910  26.900000
> 125    May 1910  46.700000
> 126    Jun 1910  67.600000
> 127    Jul 1910  63.200000
> 128    Aug 1910  70.900000
> 129    Sep 1910  11.400000
> 130    Oct 1910  55.100000
> 131    Nov 1910  79.000000
> 132    Dec 1910  89.700000
> 133    Jan 1911  30.200000
> 134    Feb 1911  33.300000
> 135    Mar 1911  33.300000
> 136    Apr 1911  47.800000
> 137    May 1911  39.400000
> 138    Jun 1911  50.300000
> 139    Jul 1911  21.100000
> 140    Aug 1911  20.600000
> 141    Sep 1911  34.500000
> 142    Oct 1911  76.200000
> 143    Nov 1911  86.400000
> 144    Dec 1911 113.000000
> 145    Jan 1912  87.900000
> 146    Feb 1912  34.300000
> 147    Mar 1912  69.100000
> 148    Apr 1912   3.800000
> 149    May 1912  32.800000
> 150    Jun 1912  81.000000
> 151    Jul 1912  42.700000
> 152    Aug 1912 134.400000
> 153    Sep 1912  54.400000
> 154    Oct 1912  57.900000
> 155    Nov 1912  42.400000
> 156    Dec 1912  68.300000
> 157    Jan 1913  65.000000
> 158    Feb 1913  19.800000
> 159    Mar 1913  53.100000
> 160    Apr 1913  65.300000
> 161    May 1913  45.000000
> 162    Jun 1913  10.900000
> 163    Jul 1913  48.500000
> 164    Aug 1913  31.500000
> 165    Sep 1913  48.000000
> 166    Oct 1913  85.900000
> 167    Nov 1913  57.400000
> 168    Dec 1913  24.900000
> 169    Jan 1914  14.000000
> 170    Feb 1914  61.700000
> 171    Mar 1914 100.100000
> 172    Apr 1914  22.100000
> 173    May 1914  44.400000
> 174    Jun 1914  58.200000
> 175    Jul 1914  49.000000
> 176    Aug 1914  44.700000
> 177    Sep 1914  25.400000
> 178    Oct 1914  30.200000
> 179    Nov 1914  75.700000
> 180    Dec 1914 166.600000
> 181    Jan 1915 106.400000
> 182    Feb 1915  84.100000
> 183    Mar 1915  20.300000
> 184    Apr 1915  32.000000
> 185    May 1915  80.300000
> 186    Jun 1915  14.700000
> 187    Jul 1915 106.900000
> 188    Aug 1915  82.500000
> 189    Sep 1915  59.200000
> 190    Oct 1915  49.000000
> 191    Nov 1915  60.200000
> 192    Dec 1915 136.900000
> 193    Jan 1916  31.000000
> 194    Feb 1916  78.500000
> 195    Mar 1916 100.300000
> 196    Apr 1916  25.900000
> 197    May 1916  42.200000
> 198    Jun 1916  54.900000
> 199    Jul 1916  35.300000
> 200    Aug 1916  99.600000
> 201    Sep 1916  41.100000
> 202    Oct 1916  93.200000
> 203    Nov 1916  99.300000
> 204    Dec 1916  57.100000
> 205    Jan 1917  28.700000
> 206    Feb 1917  20.100000
> 207    Mar 1917  44.200000
> 208    Apr 1917  54.600000
> 209    May 1917  51.800000
> 210    Jun 1917  94.200000
> 211    Jul 1917 114.300000
> 212    Aug 1917 106.200000
> 213    Sep 1917  52.300000
> 214    Oct 1917  86.600000
> 215    Nov 1917  33.500000
> 216    Dec 1917  30.000000
> 217    Jan 1918  74.700000
> 218    Feb 1918  21.300000
> 219    Mar 1918  22.900000
> 220    Apr 1918  80.300000
> 221    May 1918  46.200000
> 222    Jun 1918  29.500000
> 223    Jul 1918 121.400000
> 224    Aug 1918  35.600000
> 225    Sep 1918 145.000000
> 226    Oct 1918  28.700000
> 227    Nov 1918  53.300000
> 228    Dec 1918  53.600000
> 229    Jan 1919  89.700000
> 230    Feb 1919  56.100000
> 231    Mar 1919  77.700000
> 232    Apr 1919  59.400000
> 233    May 1919   9.100000
> 234    Jun 1919  30.000000
> 235    Jul 1919  67.300000
> 236    Aug 1919  53.600000
> 237    Sep 1919  36.800000
> 238    Oct 1919  14.500000
> 239    Nov 1919  26.700000
> 240    Dec 1919  95.000000
> 241    Jan 1920  55.100000
> 242    Feb 1920  10.400000
> 243    Mar 1920  29.700000
> 244    Apr 1920  67.800000
> 245    May 1920  38.400000
> 246    Jun 1920  78.000000
> 247    Jul 1920 111.800000
> 248    Aug 1920  37.800000
> 249    Sep 1920  62.200000
> 250    Oct 1920  42.700000
> 251    Nov 1920  33.500000
> 252    Dec 1920  49.300000
> 253    Jan 1921  51.800000
> 254    Feb 1921   4.800000
> 255    Mar 1921  33.800000
> 256    Apr 1921  26.900000
> 257    May 1921  24.900000
> 258    Jun 1921   5.100000
> 259    Jul 1921   3.800000
> 260    Aug 1921  25.100000
> 261    Sep 1921  44.700000
> 262    Oct 1921  11.200000
> 263    Nov 1921  43.200000
> 264    Dec 1921  33.000000
> 265    Jan 1922  56.600000
> 266    Feb 1922  47.500000
> 267    Mar 1922  42.900000
> 268    Apr 1922  66.000000
> 269    May 1922  25.900000
> 270    Jun 1922  24.900000
> 271    Jul 1922  83.800000
> 272    Aug 1922  52.600000
> 273    Sep 1922  39.600000
> 274    Oct 1922  19.000000
> 275    Nov 1922  36.100000
> 276    Dec 1922  71.900000
> 277    Jan 1923  32.800000
> 278    Feb 1923  71.400000
> 279    Mar 1923  52.600000
> 280    Apr 1923  39.900000
> 281    May 1923  52.300000
> 282    Jun 1923   6.300000
> 283    Jul 1923  82.800000
> 284    Aug 1923  39.900000
> 285    Sep 1923  35.100000
> 286    Oct 1923 135.400000
> 287    Nov 1923  37.300000
> 288    Dec 1923  52.100000
> 289    Jan 1924  63.800000
> 290    Feb 1924  10.400000
> 291    Mar 1924  21.600000
> 292    Apr 1924  86.100000
> 293    May 1924  61.500000
> 294    Jun 1924  87.600000
> 295    Jul 1924  95.200000
> 296    Aug 1924  63.500000
> 297    Sep 1924  74.900000
> 298    Oct 1924  92.200000
> 299    Nov 1924  57.900000
> 300    Dec 1924  72.100000
> 301    Jan 1925  44.700000
> 302    Feb 1925  81.300000
> 303    Mar 1925  11.200000
> 304    Apr 1925  50.300000
> 305    May 1925  48.500000
> 306    Jun 1925   1.000000
> 307    Jul 1925  99.800000
> 308    Aug 1925  65.500000
> 309    Sep 1925  63.500000
> 310    Oct 1925  78.000000
> 311    Nov 1925  37.600000
> 312    Dec 1925  67.800000
> 313    Jan 1926  59.200000
> 314    Feb 1926  57.900000
> 315    Mar 1926   4.800000
> 316    Apr 1926  67.600000
> 317    May 1926  43.900000
> 318    Jun 1926  86.100000
> 319    Jul 1926  43.700000
> 320    Aug 1926  14.700000
> 321    Sep 1926  37.300000
> 322    Oct 1926  51.800000
> 323    Nov 1926 130.000000
> 324    Dec 1926   6.100000
> 325    Jan 1927  48.500000
> 326    Feb 1927  86.400000
> 327    Mar 1927  55.600000
> 328    Apr 1927  45.200000
> 329    May 1927  27.700000
> 330    Jun 1927  64.300000
> 331    Jul 1927  76.200000
> 332    Aug 1927 103.400000
> 333    Sep 1927 114.000000
> 334    Oct 1927  32.300000
> 335    Nov 1927  68.300000
> 336    Dec 1927  94.200000
> 337    Jan 1928  78.700000
> 338    Feb 1928  35.600000
> 339    Mar 1928  43.900000
> 340    Apr 1928  35.800000
> 341    May 1928  44.700000
> 342    Jun 1928  56.900000
> 343    Jul 1928  52.300000
> 344    Aug 1928  65.800000
> 345    Sep 1928  26.200000
> 346    Oct 1928  92.200000
> 347    Nov 1928  46.000000
> 348    Dec 1928  59.700000
> 349    Jan 1929  18.500000
> 350    Feb 1929  13.000000
> 351    Mar 1929   0.800000
> 352    Apr 1929  27.200000
> 353    May 1929  32.300000
> 354    Jun 1929  22.400000
> 355    Jul 1929  65.800000
> 356    Aug 1929  54.900000
> 357    Sep 1929   4.100000
> 358    Oct 1929  69.300000
> 359    Nov 1929 122.700000
> 360    Dec 1929 112.500000
> 361    Jan 1930  68.800000
> 362    Feb 1930  14.700000
> 363    Mar 1930  37.600000
> 364    Apr 1930  47.500000
> 365    May 1930  88.100000
> 366    Jun 1930  33.300000
> 367    Jul 1930  46.700000
> 368    Aug 1930  71.600000
> 369    Sep 1930  64.300000
> 370    Oct 1930  27.200000
> 371    Nov 1930  97.800000
> 372    Dec 1930  46.200000
> 373    Jan 1931  27.200000
> 374    Feb 1931  37.300000
> 375    Mar 1931   8.100000
> 376    Apr 1931  93.000000
> 377    May 1931  63.000000
> 378    Jun 1931  42.200000
> 379    Jul 1931  73.900000
> 380    Aug 1931 123.200000
> 381    Sep 1931  53.100000
> 382    Oct 1931  16.500000
> 383    Nov 1931  54.400000
> 384    Dec 1931  13.700000
> 385    Jan 1932  40.900000
> 386    Feb 1932   4.300000
> 387    Mar 1932  32.800000
> 388    Apr 1932  56.600000
> 389    May 1932 102.400000
> 390    Jun 1932   6.600000
> 391    Jul 1932  62.200000
> 392    Aug 1932  29.700000
> 393    Sep 1932  58.900000
> 394    Oct 1932 127.000000
> 395    Nov 1932  25.700000
> 396    Dec 1932  11.700000
> 397    Jan 1933  34.000000
> 398    Feb 1933  67.300000
> 399    Mar 1933  55.100000
> 400    Apr 1933  16.800000
> 401    May 1933  46.500000
> 402    Jun 1933  49.000000
> 403    Jul 1933  44.200000
> 404    Aug 1933  12.700000
> 405    Sep 1933  69.100000
> 406    Oct 1933  36.600000
> 407    Nov 1933  23.900000
> 408    Dec 1933   8.100000
> 409    Jan 1934  30.500000
> 410    Feb 1934   5.600000
> 411    Mar 1934  53.800000
> 412    Apr 1934  37.300000
> 413    May 1934  11.200000
> 414    Jun 1934  25.400000
> 415    Jul 1934  81.000000
> 416    Aug 1934  45.000000
> 417    Sep 1934  32.000000
> 418    Oct 1934  22.100000
> 419    Nov 1934  44.700000
> 420    Dec 1934 112.300000
> 421    Jan 1935  22.600000
> 422    Feb 1935  58.400000
> 423    Mar 1935   9.400001
> 424    Apr 1935  68.300000
> 425    May 1935  35.300000
> 426    Jun 1935  85.600000
> 427    Jul 1935  41.400000
> 428    Aug 1935  50.500000
> 429    Sep 1935  64.800000
> 430    Oct 1935  50.300000
> 431    Nov 1935 110.500000
> 432    Dec 1935  54.600000
> 433    Jan 1936  99.300000
> 434    Feb 1936  40.900000
> 435    Mar 1936  22.900000
> 436    Apr 1936  42.700000
> 437    May 1936  13.000000
> 438    Jun 1936  89.700000
> 439    Jul 1936  59.700000
> 440    Aug 1936  12.200000
> 441    Sep 1936  71.400000
> 442    Oct 1936  45.500000
> 443    Nov 1936  70.900000
> 444    Dec 1936  35.100000
> 445    Jan 1937  95.500000
> 446    Feb 1937 102.900000
> 447    Mar 1937  70.100000
> 448    Apr 1937  50.300000
> 449    May 1937  54.600000
> 450    Jun 1937  46.000000
> 451    Jul 1937  24.100000
> 452    Aug 1937  75.700000
> 453    Sep 1937  51.600000
> 454    Oct 1937  60.200000
> 455    Nov 1937  35.100000
> 456    Dec 1937  87.400000
> 457    Jan 1938  56.600000
> 458    Feb 1938   7.900000
> 459    Mar 1938   6.600000
> 460    Apr 1938   2.300000
> 461    May 1938  33.000000
> 462    Jun 1938   8.900001
> 463    Jul 1938  25.900000
> 464    Aug 1938  68.600000
> 465    Sep 1938  49.300000
> 466    Oct 1938  52.100000
> 467    Nov 1938  66.000000
> 468    Dec 1938  83.600000
> 469    Jan 1939 109.500000
> 470    Feb 1939  20.300000
> 471    Mar 1939  25.400000
> 472    Apr 1939  56.100000
> 473    May 1939  35.300000
> 474    Jun 1939  29.200000
> 475    Jul 1939  45.500000
> 476    Aug 1939  87.100000
> 477    Sep 1939  23.100000
> 478    Oct 1939 124.700000
> 479    Nov 1939 112.500000
> 480    Dec 1939  21.300000
> 481    Jan 1940  62.700000
> 482    Feb 1940  40.600000
> 483    Mar 1940  86.100000
> 484    Apr 1940  40.900000
> 485    May 1940  30.700000
> 486    Jun 1940  30.700000
> 487    Jul 1940  68.300000
> 488    Aug 1940   2.300000
> 489    Sep 1940  34.800000
> 490    Oct 1940  61.200000
> 491    Nov 1940 171.700000
> 492    Dec 1940  28.400000
> 493    Jan 1941  62.500000
> 494    Feb 1941  49.000000
> 495    Mar 1941  81.500000
> 496    Apr 1941  43.700000
> 497    May 1941  47.500000
> 498    Jun 1941  49.000000
> 499    Jul 1941 103.100000
> 500    Aug 1941 149.900000
> 501    Sep 1941   8.900001
> 502    Oct 1941  19.300000
> 503    Nov 1941  64.300000
> 504    Dec 1941  39.600000
> 505    Jan 1942  55.600000
> 506    Feb 1942  22.400000
> 507    Mar 1942  42.200000
> 508    Apr 1942  20.600000
> 509    May 1942  76.200000
> 510    Jun 1942  36.100000
> 511    Jul 1942  44.200000
> 512    Aug 1942  56.100000
> 513    Sep 1942  26.400000
> 514    Oct 1942  87.100000
> 515    Nov 1942  50.300000
> 516    Dec 1942  55.600000
> 517    Jan 1943 120.400000
> 518    Feb 1943  36.600000
> 519    Mar 1943   8.600000
> 520    Apr 1943  18.500000
> 521    May 1943  47.800000
> 522    Jun 1943  32.500000
> 523    Jul 1943  36.600000
> 524    Aug 1943  35.600000
> 525    Sep 1943  57.200000
> 526    Oct 1943  64.000000
> 527    Nov 1943  33.300000
> 528    Dec 1943  35.300000
> 529    Jan 1944  39.600000
> 530    Feb 1944  17.000000
> 531    Mar 1944   2.300000
> 532    Apr 1944  33.300000
> 533    May 1944  17.500000
> 534    Jun 1944  38.400000
> 535    Jul 1944  42.400000
> 536    Aug 1944  50.000000
> 537    Sep 1944  56.600000
> 538    Oct 1944  68.800000
> 539    Nov 1944  86.900000
> 540    Dec 1944  30.200000
> 541    Jan 1945  42.200000
> 542    Feb 1945  35.300000
> 543    Mar 1945  20.300000
> 544    Apr 1945  28.700000
> 545    May 1945  61.200000
> 546    Jun 1945  44.700000
> 547    Jul 1945  68.300000
> 548    Aug 1945  32.000000
> 549    Sep 1945  42.700000
> 550    Oct 1945  52.800000
> 551    Nov 1945   7.400000
> 552    Dec 1945  68.300000
> 553    Jan 1946  35.300000
> 554    Feb 1946  57.400000
> 555    Mar 1946  29.700000
> 556    Apr 1946  48.500000
> 557    May 1946  87.900000
> 558    Jun 1946  70.600000
> 559    Jul 1946  79.000000
> 560    Aug 1946  95.000000
> 561    Sep 1946  87.900000
> 562    Oct 1946  33.800000
> 563    Nov 1946 103.100000
> 564    Dec 1946  49.300000
> 565    Jan 1947  34.300000
> 566    Feb 1947  30.200000
> 567    Mar 1947 118.400000
> 568    Apr 1947  42.700000
> 569    May 1947  34.300000
> 570    Jun 1947  80.500000
> 571    Jul 1947  35.800000
> 572    Aug 1947  10.200000
> 573    Sep 1947  29.700000
> 574    Oct 1947   3.800000
> 575    Nov 1947  27.200000
> 576    Dec 1947  54.400000
> 577    Jan 1948  90.700000
> 578    Feb 1948  36.300000
> 579    Mar 1948  14.700000
> 580    Apr 1948  31.500000
> 581    May 1948  56.400000
> 582    Jun 1948  42.400000
> 583    Jul 1948  30.200000
> 584    Aug 1948  72.900000
> 585    Sep 1948  31.500000
> 586    Oct 1948  46.500000
> 587    Nov 1948  40.400000
> 588    Dec 1948  51.300000
> 589    Jan 1949  30.500000
> 590    Feb 1949  22.400000
> 591    Mar 1949  23.400000
> 592    Apr 1949  37.100000
> 593    May 1949  58.400000
> 594    Jun 1949  12.700000
> 595    Jul 1949  28.400000
> 596    Aug 1949  38.100000
> 597    Sep 1949   8.900001
> 598    Oct 1949 133.100000
> 599    Nov 1949  54.900000
> 600    Dec 1949  37.300000
> 601    Jan 1950  22.100000
> 602    Feb 1950  80.300000
> 603    Mar 1950  16.500000
> 604    Apr 1950  62.000000
> 605    May 1950  43.700000
> 606    Jun 1950  47.000000
> 607    Jul 1950  80.300000
> 608    Aug 1950  59.200000
> 609    Sep 1950  62.200000
> 610    Oct 1950  14.500000
> 611    Nov 1950 104.600000
> 612    Dec 1950  40.100000
> 613    Jan 1951  77.000000
> 614    Feb 1951 127.000000
> 615    Mar 1951  73.000000
> 616    Apr 1951  59.000000
> 617    May 1951  51.000000
> 618    Jun 1951  24.000000
> 619    Jul 1951  25.000000
> 620    Aug 1951  85.000000
> 621    Sep 1951  53.000000
> 622    Oct 1951  21.000000
> 623    Nov 1951 134.000000
> 624    Dec 1951  37.000000
> 625    Jan 1952  46.000000
> 626    Feb 1952  20.000000
> 627    Mar 1952  69.000000
> 628    Apr 1952  30.000000
> 629    May 1952  60.000000
> 630    Jun 1952  44.000000
> 631    Jul 1952  14.000000
> 632    Aug 1952  89.000000
> 633    Sep 1952  65.000000
> 634    Oct 1952  68.000000
> 635    Nov 1952  89.000000
> 636    Dec 1952  60.000000
> 637    Jan 1953  21.000000
> 638    Feb 1953  29.000000
> 639    Mar 1953  11.000000
> 640    Apr 1953  56.000000
> 641    May 1953  39.000000
> 642    Jun 1953  47.000000
> 643    Jul 1953  92.000000
> 644    Aug 1953  44.000000
> 645    Sep 1953  51.000000
> 646    Oct 1953  58.000000
> 647    Nov 1953  38.000000
> 648    Dec 1953  13.000000
> 649    Jan 1954  23.000000
> 650    Feb 1954  50.000000
> 651    Mar 1954  49.000000
> 652    Apr 1954  10.000000
> 653    May 1954  45.000000
> 654    Jun 1954 102.000000
> 655    Jul 1954  59.000000
> 656    Aug 1954  80.000000
> 657    Sep 1954  40.000000
> 658    Oct 1954  44.000000
> 659    Nov 1954  94.000000
> 660    Dec 1954  50.000000
> 661    Jan 1955  49.000000
> 662    Feb 1955  29.000000
> 663    Mar 1955  23.000000
> 664    Apr 1955   8.000000
> 665    May 1955  94.000000
> 666    Jun 1955  55.000000
> 667    Jul 1955  10.000000
> 668    Aug 1955  18.000000
> 669    Sep 1955  45.000000
> 670    Oct 1955  60.000000
> 671    Nov 1955  23.000000
> 672    Dec 1955  45.000000
> 673    Jan 1956  94.000000
> 674    Feb 1956   5.000000
> 675    Mar 1956  19.000000
> 676    Apr 1956  24.000000
> 677    May 1956   6.000000
> 678    Jun 1956  47.000000
> 679    Jul 1956 151.000000
> 680    Aug 1956  93.000000
> 681    Sep 1956  51.000000
> 682    Oct 1956  54.000000
> 683    Nov 1956  10.000000
> 684    Dec 1956  65.000000
> 685    Jan 1957  39.000000
> 686    Feb 1957  74.000000
> 687    Mar 1957  26.000000
> 688    Apr 1957   9.000000
> 689    May 1957  27.000000
> 690    Jun 1957  25.000000
> 691    Jul 1957  83.000000
> 692    Aug 1957 100.000000
> 693    Sep 1957  61.000000
> 694    Oct 1957  47.000000
> 695    Nov 1957  58.000000
> 696    Dec 1957  44.000000
> 697    Jan 1958  49.000000
> 698    Feb 1958  59.000000
> 699    Mar 1958  28.000000
> 700    Apr 1958  32.500000
> 701    May 1958  60.000000
> 702    Jun 1958 104.000000
> 703    Jul 1958  63.000000
> 704    Aug 1958  86.600000
> 705    Sep 1958 101.000000
> 706    Oct 1958  51.000000
> 707    Nov 1958  48.000000
> 708    Dec 1958  75.000000
> 709    Jan 1959  54.000000
> 710    Feb 1959   2.000000
> 711    Mar 1959  40.000000
> 712    Apr 1959  52.000000
> 713    May 1959  13.000000
> 714    Jun 1959  15.000000
> 715    Jul 1959  40.000000
> 716    Aug 1959  29.000000
> 717    Sep 1959   3.000000
> 718    Oct 1959  48.000000
> 719    Nov 1959  60.000000
> 720    Dec 1959  80.000000
> 721    Jan 1960  43.000000
> 722    Feb 1960  42.000000
> 723    Mar 1960  40.000000
> 724    Apr 1960  13.000000
> 725    May 1960  42.000000
> 726    Jun 1960  31.000000
> 727    Jul 1960  86.000000
> 728    Aug 1960  46.000000
> 729    Sep 1960  87.000000
> 730    Oct 1960 132.300000
> 731    Nov 1960  96.300000
> 732    Dec 1960  50.000000
> 733    Jan 1961  62.000000
> 734    Feb 1961  55.000000
> 735    Mar 1961   4.000000
> 736    Apr 1961  52.000000
> 737    May 1961  24.000000
> 738    Jun 1961  35.000000
> 739    Jul 1961  30.000000
> 740    Aug 1961  58.000000
> 741    Sep 1961  54.400000
> 742    Oct 1961  53.600000
> 743    Nov 1961  46.200000
> 744    Dec 1961  87.400000
> 745    Jan 1962  72.000000
> 746    Feb 1962  16.000000
> 747    Mar 1962  34.000000
> 748    Apr 1962  42.000000
> 749    May 1962  40.000000
> 750    Jun 1962   7.000000
> 751    Jul 1962  59.000000
> 752    Aug 1962  62.000000
> 753    Sep 1962  72.000000
> 754    Oct 1962  55.000000
> 755    Nov 1962  51.000000
> 756    Dec 1962  58.000000
> 757    Jan 1963  20.000000
> 758    Feb 1963   6.000000
> 759    Mar 1963  58.000000
> 760    Apr 1963  40.600000
> 761    May 1963  47.000000
> 762    Jun 1963  49.000000
> 763    Jul 1963  33.000000
> 764    Aug 1963  55.900000
> 765    Sep 1963  57.000000
> 766    Oct 1963  38.000000
> 767    Nov 1963 114.000000
> 768    Dec 1963  17.000000
> 769    Jan 1964  13.000000
> 770    Feb 1964  18.000000
> 771    Mar 1964  83.000000
> 772    Apr 1964  80.000000
> 773    May 1964  43.000000
> 774    Jun 1964  98.000000
> 775    Jul 1964  50.000000
> 776    Aug 1964  46.000000
> 777    Sep 1964  10.000000
> 778    Oct 1964  31.000000
> 779    Nov 1964  34.000000
> 780    Dec 1964  34.000000
> 781    Jan 1965  50.000000
> 782    Feb 1965   9.000000
> 783    Mar 1965  46.000000
> 784    Apr 1965  36.000000
> 785    May 1965  35.000000
> 786    Jun 1965  41.000000
> 787    Jul 1965  55.000000
> 788    Aug 1965  59.000000
> 789    Sep 1965 107.000000
> 790    Oct 1965  21.000000
> 791    Nov 1965  72.000000
> 792    Dec 1965  94.000000
> 793    Jan 1966  31.000000
> 794    Feb 1966  69.000000
> 795    Mar 1966  11.000000
> 796    Apr 1966  92.000000
> 797    May 1966  49.000000
> 798    Jun 1966  66.000000
> 799    Jul 1966  70.000000
> 800    Aug 1966  77.000000
> 801    Sep 1966  28.000000
> 802    Oct 1966 100.000000
> 803    Nov 1966  33.000000
> 804    Dec 1966  74.000000
> 805    Jan 1967  31.000000
> 806    Feb 1967  52.000000
> 807    Mar 1967  36.000000
> 808    Apr 1967  48.000000
> 809    May 1967  98.000000
> 810    Jun 1967  53.000000
> 811    Jul 1967  56.000000
> 812    Aug 1967  41.000000
> 813    Sep 1967  57.000000
> 814    Oct 1967  90.000000
> 815    Nov 1967  35.000000
> 816    Dec 1967  54.000000
> 817    Jan 1968  58.000000
> 818    Feb 1968  24.000000
> 819    Mar 1968  23.000000
> 820    Apr 1968  56.000000
> 821    May 1968  64.000000
> 822    Jun 1968  52.000000
> 823    Jul 1968  72.000000
> 824    Aug 1968  78.000000
> 825    Sep 1968 122.000000
> 826    Oct 1968  52.000000
> 827    Nov 1968  38.000000
> 828    Dec 1968  71.000000
> 829    Jan 1969  65.000000
> 830    Feb 1969  39.000000
> 831    Mar 1969  56.000000
> 832    Apr 1969  15.000000
> 833    May 1969  53.000000
> 834    Jun 1969  26.000000
> 835    Jul 1969  75.000000
> 836    Aug 1969  93.000000
> 837    Sep 1969   3.000000
> 838    Oct 1969   4.000000
> 839    Nov 1969  81.000000
> 840    Dec 1969  42.000000
> 841    Jan 1970  57.000000
> 842    Feb 1970  36.000000
> 843    Mar 1970  43.000000
> 844    Apr 1970  62.000000
> 845    May 1970  20.000000
> 846    Jun 1970  31.000000
> 847    Jul 1970  66.000000
> 848    Aug 1970  54.000000
> 849    Sep 1970  57.000000
> 850    Oct 1970  15.000000
> 851    Nov 1970 157.000000
> 852    Dec 1970  38.000000
> 853    Jan 1971  68.000000
> 854    Feb 1971  13.000000
> 855    Mar 1971  42.000000
> 856    Apr 1971  36.000000
> 857    May 1971  67.000000
> 858    Jun 1971 131.000000
> 859    Jul 1971  25.000000
> 860    Aug 1971  85.000000
> 861    Sep 1971  15.000000
> 862    Oct 1971  54.000000
> 863    Nov 1971  67.000000
> 864    Dec 1971  18.000000
> 865    Jan 1972  54.000000
> 866    Feb 1972  46.000000
> 867    Mar 1972  50.000000
> 868    Apr 1972  40.000000
> 869    May 1972  25.000000
> 870    Jun 1972  18.000000
> 871    Jul 1972  21.000000
> 872    Aug 1972  11.000000
> 873    Sep 1972  28.000000
> 874    Oct 1972  16.000000
> 875    Nov 1972  56.000000
> 876    Dec 1972  59.000000
> 877    Jan 1973  14.000000
> 878    Feb 1973  13.000000
> 879    Mar 1973  14.000000
> 880    Apr 1973  47.000000
> 881    May 1973  57.400000
> 882    Jun 1973  68.000000
> 883    Jul 1973  54.000000
> 884    Aug 1973  43.000000
> 885    Sep 1973  71.000000
> 886    Oct 1973  25.000000
> 887    Nov 1973  29.000000
> 888    Dec 1973  38.000000
> 889    Jan 1974  61.000000
> 890    Feb 1974  64.000000
> 891    Mar 1974  30.000000
> 892    Apr 1974  10.000000
> 893    May 1974  25.000000
> 894    Jun 1974  62.000000
> 895    Jul 1974  34.000000
> 896    Aug 1974  62.000000
> 897    Sep 1974 124.000000
> 898    Oct 1974  69.000000
> 899    Nov 1974 138.000000
> 900    Dec 1974  35.000000
> 901    Jan 1975  84.000000
> 902    Feb 1975  26.000000
> 903    Mar 1975  72.000000
> 904    Apr 1975  37.000000
> 905    May 1975  67.000000
> 906    Jun 1975  17.000000
> 907    Jul 1975  26.000000
> 908    Aug 1975  13.000000
> 909    Sep 1975 120.000000
> 910    Oct 1975  21.000000
> 911    Nov 1975  64.000000
> 912    Dec 1975  28.000000
> 913    Jan 1976  15.000000
> 914    Feb 1976  21.000000
> 915    Mar 1976   9.000000
> 916    Apr 1976   9.000000
> 917    May 1976  22.000000
> 918    Jun 1976   8.000000
> 919    Jul 1976  25.000000
> 920    Aug 1976  13.000000
> 921    Sep 1976 107.000000
> 922    Oct 1976  95.000000
> 923    Nov 1976  82.000000
> 924    Dec 1976  67.000000
> 925    Jan 1977  65.000000
> 926    Feb 1977  62.000000
> 927    Mar 1977  50.000000
> 928    Apr 1977  26.000000
> 929    May 1977  36.000000
> 930    Jun 1977  55.000000
> 931    Jul 1977  11.000000
> 932    Aug 1977 127.000000
> 933    Sep 1977  13.000000
> 934    Oct 1977  54.000000
> 935    Nov 1977  52.000000
> 936    Dec 1977  59.000000
> 937    Jan 1978  79.000000
> 938    Feb 1978  42.000000
> 939    Mar 1978  53.000000
> 940    Apr 1978  48.000000
> 941    May 1978  89.000000
> 942    Jun 1978  41.000000
> 943    Jul 1978  66.000000
> 944    Aug 1978  34.000000
> 945    Sep 1978  17.000000
> 946    Oct 1978   2.000000
> 947    Nov 1978  13.000000
> 948    Dec 1978 114.000000
> 949    Jan 1979  61.000000
> 950    Feb 1979  46.000000
> 951    Mar 1979  90.000000
> 952    Apr 1979  79.000000
> 953    May 1979 101.000000
> 954    Jun 1979  43.000000
> 955    Jul 1979  17.000000
> 956    Aug 1979  33.000000
> 957    Sep 1979  18.000000
> 958    Oct 1979  68.000000
> 959    Nov 1979  53.000000
> 960    Dec 1979  93.000000
> 961    Jan 1980  32.000000
> 962    Feb 1980  37.000000
> 963    Mar 1980  65.000000
> 964    Apr 1980  17.000000
> 965    May 1980  30.000000
> 966    Jun 1980 103.000000
> 967    Jul 1980  73.000000
> 968    Aug 1980  47.000000
> 969    Sep 1980  25.000000
> 970    Oct 1980 102.000000
> 971    Nov 1980  27.000000
> 972    Dec 1980  34.000000
> 973    Jan 1981  31.000000
> 974    Feb 1981  11.000000
> 975    Mar 1981  92.000000
> 976    Apr 1981  25.000000
> 977    May 1981  76.000000
> 978    Jun 1981  37.000000
> 979    Jul 1981  60.000000
> 980    Aug 1981  58.000000
> 981    Sep 1981  90.000000
> 982    Oct 1981  81.000000
> 983    Nov 1981  37.000000
> 984    Dec 1981  77.000000
> 985    Jan 1982  37.000000
> 986    Feb 1982  29.000000
> 987    Mar 1982  52.000000
> 988    Apr 1982  22.000000
> 989    May 1982  64.000000
> 990    Jun 1982  97.000000
> 991    Jul 1982  26.000000
> 992    Aug 1982  43.000000
> 993    Sep 1982  49.000000
> 994    Oct 1982 113.000000
> 995    Nov 1982  71.000000
> 996    Dec 1982  60.000000
> 997    Jan 1983  49.000000
> 998    Feb 1983  31.000000
> 999    Mar 1983  38.000000
> 1000   Apr 1983 102.000000
> 1001   May 1983  80.000000
> 1002   Jun 1983  10.000000
> 1003   Jul 1983 113.000000
> 1004   Aug 1983  19.000000
> 1005   Sep 1983  44.000000
> 1006   Oct 1983  39.000000
> 1007   Nov 1983  41.000000
> 1008   Dec 1983  53.000000
> 1009   Jan 1984  78.000000
> 1010   Feb 1984  26.000000
> 1011   Mar 1984  66.000000
> 1012   Apr 1984  10.000000
> 1013   May 1984  76.000000
> 1014   Jun 1984  34.000000
> 1015   Jul 1984  21.000000
> 1016   Aug 1984  25.000000
> 1017   Sep 1984  80.000000
> 1018   Oct 1984  81.000000
> 1019   Nov 1984  71.000000
> 1020   Dec 1984  53.000000
> 1021   Jan 1985  44.000000
> 1022   Feb 1985  24.000000
> 1023   Mar 1985  38.000000
> 1024   Apr 1985  33.000000
> 1025   May 1985  59.000000
> 1026   Jun 1985  89.000000
> 1027   Jul 1985  36.000000
> 1028   Aug 1985  78.000000
> 1029   Sep 1985   9.000000
> 1030   Oct 1985  15.000000
> 1031   Nov 1985  44.000000
> 1032   Dec 1985  85.000000
> 1033   Jan 1986 107.000000
> 1034   Feb 1986  16.000000
> 1035   Mar 1986  47.000000
> 1036   Apr 1986  64.000000
> 1037   May 1986  56.000000
> 1038   Jun 1986  17.000000
> 1039   Jul 1986  50.000000
> 1040   Aug 1986  72.000000
> 1041   Sep 1986  26.000000
> 1042   Oct 1986  78.000000
> 1043   Nov 1986  79.000000
> 1044   Dec 1986  63.000000
> 1045   Jan 1987  11.000000
> 1046   Feb 1987  30.000000
> 1047   Mar 1987  49.000000
> 1048   Apr 1987  37.000000
> 1049   May 1987  52.000000
> 1050   Jun 1987  85.000000
> 1051   Jul 1987  79.000000
> 1052   Aug 1987  69.000000
> 1053   Sep 1987  49.000000
> 1054   Oct 1987 158.000000
> 1055   Nov 1987  52.000000
> 1056   Dec 1987  15.000000
>
> i upload the data file kew.dat, and with this file the question ask me to:
>
> 1)use a suitable graphical technique to display the disturbtions of rainfall
> amounts in each month of the year. If possible, ensure the months appear in
> the right order (month.abb maybe useful).
>
> 2)Without using the kruskal.test command, perform a Kruskal-Wallis test to
> see whether there is evidence for differences in rainfall disturbution
> between months (include i)the vaule of test statistic, ii) degrees of
> freedom for the chi-squared approximation that we are using, iii) critical
> values for 5% and 1% tests and iv) p-value for this test).
>
> Please, many many thanks to anyone of you.
> --
> View this message in context: http://www.nabble.com/perform-Kruskal-Wallis-test-without-using-the-built-in-command-in-R-tp20333155p20333155.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis



More information about the R-help mailing list