–
Kruskal-Wallis test with ties when the unordered factor has more than
two categories
∗
Ratings of the chief Academic Officer at Hypothetical State Uni-
versity
Poor
Fair
Good
Very Good
Excellent
(1)
(2)
(3)
(4)
(5)
College A
6
4
3
2
0
College B
2
2
3
2
1
College C
1
2
3
4
2
H
0
: The ratings of the chief academic officer of College A, B and C are the same
----------------------------------------------------------
Pearsons’ Chi-square Test with approximation:
Pearson’s Chi-squared test
data: data.mat
X-squared = 7.0231, df = 8, p-value = 0.5341
Warning message:
In chisq.test(data.mat) : Chi-squared approximation may be incorrect
----------------------------------------------------------
College A
1,1,1,1,1,1,2,2,2,2,3,3,3,4,4
College B
1,1,2,2,3,3,3,4,4,5
College C
1,2,2,3,3,3,4,4,4,4,5,5
----------------------------------------------------------
Kruskal-Wallis Test with approximation:
Kruskal-Wallis rank sum test
data: College by College.ind
Kruskal-Wallis chi-squared = 6.4283, df = 2, p-value = 0.04019
----------------------------------------------------------
3