[R] R function to compute kappa statistics for two vector

From: Philip He <hydinghua_at_gmail.com>
Date: Mon 02 Oct 2006 - 21:53:10 GMT


Dear R-user,

Did anybody know how to calculate the kappa statistics of two vectors for the agreement? for example:

a<-c(0,1,0,0,1,0)

b<-c(0,1,1,0,0,1)

I know the percent of agreement is 3/6, but how to get the kappa?

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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. Received on Tue Oct 03 07:59:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 02 Oct 2006 - 22:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.