[R] Cochrans Q Test

2006-09-18 Thread peter . gremse
Hi! I would like to conduct a Cochran`s Q Test in R, but have not found any suitable function. My first idea was: J - as.table(matrix(c(6,16,2,4),ncol=2, dimnames = list(C = c(Favorable,Unfavorable),Drug A Favorable=c(B Favorable,B Unfavorable L - as.table(matrix(c(2,4,6,6),ncol=2,

Re: [R] Cochrans Q Test

2006-09-18 Thread Marc Schwartz
On Mon, 2006-09-18 at 14:01 +1000, [EMAIL PROTECTED] wrote: Hi! I would like to conduct a Cochran`s Q Test in R, but have not found any suitable function. My first idea was: J - as.table(matrix(c(6,16,2,4),ncol=2, dimnames = list(C = c(Favorable,Unfavorable),Drug A Favorable=c(B

Re: [R] Cochrans Q Test

2006-09-18 Thread Torsten Hothorn
[...] cochranq.test(K) Cochran's Q Test for Dependent Samples data: K Cochran's Q = 23.9298, df = 11, p-value = 0.01303 Cochran's Q fits into the `coin' framework and thus: K - as.table(matrix(c(1,1,0,0, 1,1,0,1, 1,1,1,1, 1,1,1,1, 1,0,0,0, + 1,1,1,1, 1,1,1,1, 0,0,0,0,