Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-29 Thread Jim Lemon
Hi Hallie, I tried both the "cccUst" and "cccvc" functions in the "cccrm" package. While I can get what looks like sensible statistics with the following example, I am not sure that it can be interpreted as you wish. For one thing, it assumes that the concordance will be the same on all variables.

Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-29 Thread Jim Lemon
Hi Hallie, If I understand your email correctly, you have four repeated observations by the three raters of the same six variables. This is a tougher problem and I can't solve it at the moment. I'll return to this later and see if I can offer a solution. Jim On Wed, Jan 30, 2019 at 3:56 AM Halli

Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-29 Thread Hallie Kamesch
Thank you Jim, for the code, and thank you Jeff for the tutorial PDF. I've read through the sections and I appreciate the help. I'm in way over my head - I don't even understand enough of the vocabulary to ask my question correctly. Jim, in your code, I ended up with an entry of 4 observations of

Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-28 Thread Hallie Kamesch
Hi all, Thank you for your responses. You are correct that it is not a matrix. I used the incorrect term. I meant I put my data in a spreadsheet with three rows and 24 columns. Sent from my iPhone > On Jan 28, 2019, at 3:36 AM, Jim Lemon wrote: > > Hi Halllie, > As Jeff noted, a data frame

Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-28 Thread Jim Lemon
Hi Halllie, As Jeff noted, a data frame is not a matrix (it is a variety of list), so that looks like your problem. hkdf<-data.frame(sample(3:5,4,TRUE),sample(1:3,4,TRUE),sample(2:4,4,TRUE), sample(3:5,4,TRUE),sample(1:3,4,TRUE),sample(2:4,4,TRUE)) library(irr) kripp.alpha(hkdf) kripp.alpha(as.ma

Re: [R] troubleshooting data structure to run krippendorff's alpha

2019-01-27 Thread Jeff Newmiller
I don't understand most of what you wrote, but when you say "matrix" you are mistaken. A matrix is NOT the same thing as a data frame, which is what you get when you call read.csv(). Read RShowDoc("R-intro") Sections 5 and 6... A data frame is a list of column vectors, while a matrix is a vec

[R] troubleshooting data structure to run krippendorff's alpha

2019-01-27 Thread Hallie Kamesch
Hi - I'm trying to run Krippendorff's alpha for data consisting of 4 subjects rated on 6 events each by three raters. The ratings are interval ratio scale data. I've rearranged my data into a 3 x 24 of ratersXevents. (per this discussion on CrossValidated: ( https://stats.stackexchange.com/quest