Re: [R] Cohen's Kappa for beginners

2011-02-10 Thread David Winsemius
On Feb 10, 2011, at 12:23 AM, Matthew Schmidt wrote: Refresh list was used, but a restart of the client was necessary for updates to become active. I was under the impression which I have just corrected that it would be a simple matter to detach() a package and reload it. My efforts to do

Re: [R] Cohen's Kappa for beginners

2011-02-09 Thread Matthew Schmidt
Refresh list was used, but a restart of the client was necessary for updates to become active. Please advise as to appropriate list. Many thanks! On Wednesday, February 9, 2011, David Winsemius wrote: > > On Feb 9, 2011, at 3:29 PM, matthew.schmidt wrote: > > > > I'm a newb with R and am trying

Re: [R] Cohen's Kappa for beginners

2011-02-09 Thread David Winsemius
On Feb 9, 2011, at 3:29 PM, matthew.schmidt wrote: I'm a newb with R and am trying to move from proprietary stats tools to open ones. Hopefully this post might help others doing the same. I downloaded the R package for Mac Posted to the wrong list. and hacked together a couple scripts,

Re: [R] Cohen's Kappa for beginners

2011-02-09 Thread matthew.schmidt
I'm a newb with R and am trying to move from proprietary stats tools to open ones. Hopefully this post might help others doing the same. I downloaded the R package for Mac and hacked together a couple scripts, but couldn't seem to get the right output. After installing the psych package, I tried

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread William Revelle
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

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread Jason Priem
Thanks; i used update.packages() before I asked this, but apparently it didn't work. A manual upgrade did the trick, and now I'm Kappa-ing to my heart's content. Thanks again to everyone for your help! Best, Jason On 5/25/2010 1:34 PM, Peter Ehlers [via R] wrote: > Jason, > > It seems that y

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread Peter Ehlers
Jason, 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

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread Jason Priem
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<-

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread William Revelle
Peter, Scot, Jim, and Jason, Thanks for the various solutions to Jason's problem. In the next release of psych I will a) document how to use non-numeric categorical variables (e.g., red, blue, etc.) when using cohen.kappa, b) suggest that cbind does the job (Peter's solution), c) make it

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread Peter Ehlers
cohen.kappa(cbind(x,y)) works for me. -Peter Ehlers On 2010-05-25 7:42, Scot W. McNary wrote: Hi, It doesn't seem happy with non-numeric data in the data frame version. Maybe a recode would work? > x1 <- c(1, 2, 3, 1) > y1 <- c(1, 3, 3, 1) > cohen.kappa(data.frame(x = x1, y = y1)) Call: c

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread Scot W. McNary
Hi, It doesn't seem happy with non-numeric data in the data frame version. Maybe a recode would work? > x1 <- c(1, 2, 3, 1) > y1 <- c(1, 3, 3, 1) > cohen.kappa(data.frame(x = x1, y = y1)) Call: cohen.kappa1(x = x, w = w, n.obs = n.obs, alpha = alpha) Cohen Kappa and Weighted Kappa correlatio

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread Jim Lemon
On 05/25/2010 06:01 PM, Jason Priem wrote: Hi, I've got two vectors with ratings from two coders, like this: x<-c("red", "yellow", "blue", "red") #coder number 1 y<-c("red", "blue", "blue", "red") #coder number 2 I want to find Cohen's Kappa using the wkappa function in the psych package. The o

[R] Cohen's Kappa for beginners

2010-05-25 Thread Jason Priem
Hi, I've got two vectors with ratings from two coders, like this: x<-c("red", "yellow", "blue", "red") #coder number 1 y<-c("red", "blue", "blue", "red") #coder number 2 I want to find Cohen's Kappa using the wkappa function in the psych package. The only example in the docs is using a matrix