Re: [R] Different approach to set up Cohen Kappa

2011-08-11 Thread Jim Lemon
On 08/10/2011 06:38 PM, gavfung wrote: Hi, I just started learning R, and one of the most frequent thing that I need to calculate is cohen kappa in my psychology lab and I figure being able to do inter rater reliability is a great way for me to explore R. There are two different scenario in

Re: [R] Different approach to set up Cohen Kappa

2011-08-10 Thread Daniel Malter
The kappa2() function in the irr library takes an n x 2 matrix as input, where the two columns are the ratings by two raters. Let x and y below be the ratings of the two raters: x-sample(c(0,1,2),100,replace=T) x o-sample(c(0,0,0,1),100,replace=T) y-x+o y #Then kappa is computed as:

[R] Different approach to set up Cohen Kappa

2011-08-10 Thread gavfung
Hi, I just started learning R, and one of the most frequent thing that I need to calculate is cohen kappa in my psychology lab and I figure being able to do inter rater reliability is a great way for me to explore R. There are two different scenario in which I need help with. (By the way, I have