Skip to content
Prev 99989 / 398498 Next

Cochrans Q Test

[...]
Cochran's Q fits into the `coin' framework and thus:
+  1,1,1,1, 1,1,1,1, 0,0,0,0, 0,1,0,1, 1,1,1,1, 0,1,0,1, 0,1,0,1),ncol=12,
+  dimnames = list("Seating type" = c("I","II","III","IV"),"Test
+  subject"=c("A","B","C","D","E","F","G","H","I","J","K","L"))))
+                  test = factor(rep(colnames(K), rep(4, 12))),
+                  subject = factor(rep(rownames(K), 12)))
Asymptotic General Independence Test

data:  success by
          groups A, B, C, D, E, F, G, H, I, J, K, L
          stratified by subject
chi-squared = 23.9298, df = 11, p-value = 0.01303
can be used to compute the test without additional coding and
distribution = approximate(10000))

         Approximative General Independence Test

data:  success by
          groups A, B, C, D, E, F, G, H, I, J, K, L
          stratified by subject
chi-squared = 23.9298, p-value = 0.006
approximates the p value by Monte-Carlo procedures.

Best wishes,

Torsten