-
Notifications
You must be signed in to change notification settings - Fork 18
fix splithalf error when two variables #281
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a split-half reliability calculation error that occurs when there are only two variables in the analysis. The primary issue was that rowSums() would drop dimensions when applied to single-column matrices, causing downstream errors.
- Adds
drop = FALSEparameter torowSums()calls to preserve matrix dimensions - Fixes conditional logic structure in the item-deleted split-half analysis section
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
|
|
Copilot
AI
Sep 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The added blank line at line 5 appears unnecessary and doesn't improve code readability.
|
|
||
|
|
||
| } | ||
|
|
Copilot
AI
Sep 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The added blank lines around the closing brace appear unnecessary and don't improve code readability.
| } | |
| } |
41fcf45 to
a0d739b
Compare
a0d739b to
9007c66
Compare
fixes jasp-stats/jasp-issues#3727
renames "Coefficient" alpha and omega to "Cronbach's" and "McDonald's" as per @EJWagenmakers request. Initially, I had named them "Coefficient" because it is the correct way. Since people cannot find the coefficients though and I dont feel as strongly anymore, this is what it is.
Also changing to "Reliability" from "Unidimensional Reliability" makes this easier to find. The helpfile still specifies that it should be used for unidimensional data.