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

[Bug]: CI for Krippendorff's alpha #2318

Closed
3 tasks done
ulrikesenftleben opened this issue Oct 2, 2023 · 5 comments · Fixed by jasp-stats/jaspReliability#185
Closed
3 tasks done

[Bug]: CI for Krippendorff's alpha #2318

ulrikesenftleben opened this issue Oct 2, 2023 · 5 comments · Fixed by jasp-stats/jaspReliability#185

Comments

@ulrikesenftleben
Copy link

JASP Version

0.18.0

Commit ID

No response

JASP Module

Reliability

What analysis are you seeing the problem on?

Krippendorff's alpha

What OS are you seeing the problem on?

Windows 10

Bug Description

I've noticed that the confidence interval values for Krippendorff's alpha don't make any sense (i.e., don't include alpha) for my analysis.

I think the issue is that I have my data formatted so that raters are in rows and variables in columns and I have selected the corresponding option in the Krippendorff's alpha sub menu. If I select "raters are in columns" instead, the value of alpha changes, but the CI stays virtually the same (aside from minor variations due to bootstrapping).

Here is my original analysis with raters in rows:
alpha_raters_in_rows

Here is the same analysis with raters in columns (note how alpha changes, but SE and CI stay the same):
alpha_raters_in_cols

This leads me to believe that the calculation of the CI ignores the "raters in rows" argument and always assumes that raters are in columns.

Expected Behaviour

I would expect the SE and CI to change when going from "raters in columns" to "raters in rows" in the Krippendorff's alpha sub-menu.

Steps to Reproduce

  1. run Krippendorff's alpha on a dataset that is formatted with raters in rows and select the option "raters in rows"

  2. repeat the same analysis with "raters in column"

I've created a made up test data set with 4 raters and 14 items to recreate this issue (the first output is "raters in columns", the second output is "raters in rows", otherwise the data and analyses are the same):
alpha_raters

testdata_krippendorffs_alpha.zip
testdata.csv

Log (if any)

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.
@juliuspfadt
Copy link
Contributor

hi @ulrikesenftleben, thanks for reporting this bug. This is indeed an error in the code. I appreciate your advice. Should be fixed in the next release.

@juliuspfadt
Copy link
Contributor

this is what I get with the fixed code for your analysis: Screenshot 2023-10-02 at 16 10 45

@ulrikesenftleben
Copy link
Author

Hi @juliuspfadt, ok great, thanks for looking into this! The CI with the fixed code looks as expected, so that's great.

Any idea on when the next release will be available? This analysis is part of an undergraduate thesis, so it'd be good to know if it makes sense for my student to wait for the next release.

@juliuspfadt
Copy link
Contributor

So if the PR is reviewed quickly, the revised code will make it into a nightly built, which is a sort of beta version that can be downloaded here. https://static.jasp-stats.org/Nightlies/ That should be fine for the thesis.

@ulrikesenftleben
Copy link
Author

That's brilliant, thanks!

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

Successfully merging a pull request may close this issue.

2 participants