[R] Cohen's Kappa for beginners

William Revelle lists at revelle.net
Tue May 25 22:28:11 CEST 2010


Jason,

At 9:55 AM -0700 5/25/10, Jason  Priem wrote:
>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
>

Sorry for the confusion.

cohen.kappa was introduced in the psych package version of 1.0.86 in March.

The current release is 1.0.88.

Bill


>--
>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.
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list