[R] Cohen's Kappa for beginners

Peter Ehlers ehlers at ucalgary.ca
Tue May 25 19:32:54 CEST 2010


It seems that your version of psych may be outdated.
CRAN currently has version 1.0-88, in which wkappa is
listed as deprecated. Might be time to upgrade.

  -Peter Ehlers

On 2010-05-25 10:55, 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

More information about the R-help mailing list