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