Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reliability and agreement measures #18

Open
mllg opened this issue Aug 4, 2020 · 1 comment
Open

Support reliability and agreement measures #18

mllg opened this issue Aug 4, 2020 · 1 comment

Comments

@mllg
Copy link
Member

mllg commented Aug 4, 2020

Some can be found in the irr and irrCAC packages.

@FBerding
Copy link

Here is an example for Krippendorff's Alpha with irr
`
library("irr")
true_labels<-cbind(0,1,0,1,2,3)
assigned_labels<-cbind(0,1,2,2,1,3)

#for nominal data (especially useful for text classification)
k_alpha<-kripp.alpha(rbind(true_labels,assigned_labels),method="nominal")$value
#for ordinal data (especially useful for text classification)
k_alpha<-kripp.alpha(rbind(true_labels,assigned_labels),method="nominal")$value
#for metric data
k_alpha<-kripp.alpha(rbind(true_labels,assigned_labels),method="nominal")$value

for kripp.alpha the raters are in the rows and the labels are in the columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants