A Fortran 77 subroutine is provided for computing exact critical values for the Kruskal-Wallis test on k independent groups with equal or unequal samples sizes. The subroutine requires the user to provide sorting and ranking routines and a uniform pseudo-random number generator. The program is available from the author on request.
Headrick, Todd C.
"JMASM6: An Algorithm For Generating Exact Critical Values For the Kruskal-Wallis One-Way ANOVA,"
Journal of Modern Applied Statistical Methods:
1, Article 28.
Available at: http://digitalcommons.wayne.edu/jmasm/vol2/iss1/28