test_twowayAnova.praat 667 B

1234567891011121314151617181920212223242526
  1. # test_twowayAnova.praat
  2. # djmw 20120625
  3. printline two-way anova test
  4. # equal groups hayes pg 446
  5. table = Read from file... Hayes_table_12.7.1.txt
  6. report$ = Report two-way anova... Data Norms Standing n
  7. group = extractNumber (report$, " Norms")
  8. standing = extractNumber (report$, " Standing")
  9. interaction = extractNumber (report$, " Norms x Standing")
  10. error = extractNumber (report$, " Error")
  11. total = extractNumber (report$, " Total")
  12. assert abs (group - 4.27) < 0.01
  13. assert abs (standing - 4994.13) < 0.01
  14. assert abs (interaction - 810.13) < 0.01
  15. assert abs (error - 643.20) < 0.01
  16. assert abs (total - 6451.73) < 0.01
  17. Remove
  18. printline Two-way anova test OK