[R] Cohen's Kappa for beginners

Jason Priem priem at email.unc.edu
Tue May 25 18:55:37 CEST 2010

Thanks for you quick responses, all!  Bill, it looks like that's just what I
want, but I'm not sure where you're getting the cohen.kappa() function. The
only function I could find by that name is in the concord library, and it
gives me:
> x<-c("red", "yellow", "blue", "red")  #coder number 1
> y<-c("red", "blue", "blue", "red") #coder number 2 
> ck <- cohen.kappa(cbind(x,y))   
Error in counts[i, j] <- sum(scores[i, ] == score.levels[j], na.rm = TRUE) : 
  subscript out of bounds
In addition: Warning messages:
1: NAs introduced by coercion 
2: NAs introduced by coercion 

wkappa in the psych lib gives me
Error in tr(x) : m must be a square matrix

View this message in context: http://r.789695.n4.nabble.com/Cohen-s-Kappa-for-beginners-tp2229658p2230348.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list