test_KruskalWallis.praat 548 B

123456789101112131415161718192021
  1. # test_KruskalWallis.praat
  2. printline test_KruskalWallis.praat
  3. table = Read from file... Hayes_table_19.7.1.txt
  4. report$ = Report one-way Kruskal-Wallis... Data Group
  5. hprime = extractNumber (report$, "Chi squared:")
  6. groupI = extractNumber (report$, " I")
  7. groupII = extractNumber (report$, " II")
  8. groupIII = extractNumber (report$, " III")
  9. printline 'hprime' 'groupI' 'groupII' 'groupIII'
  10. assert abs(hprime-13.8443) < 0.0001
  11. assert groupI = 139
  12. assert groupII = 200
  13. assert groupIII = 327
  14. removeObject: table
  15. printline test_KruskalWallis.praat OK