Skip to content

Conversation

@juliuspfadt
Copy link
Collaborator

@juliuspfadt juliuspfadt commented Sep 26, 2025

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.

By now I have added some changes for the standard error of measurement analysis. Sorry about that. I need them for a tutorial :). If you wish to test there is an example in the data library.

@juliuspfadt juliuspfadt requested a review from Copilot September 26, 2025 12:36
Copy link

Copilot AI left a 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 = FALSE parameter to rowSums() 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.

Comment on lines 4 to +5


Copy link

Copilot AI Sep 26, 2025

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.

Suggested change

Copilot uses AI. Check for mistakes.
Comment on lines +1197 to 1200


}

Copy link

Copilot AI Sep 26, 2025

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.

Suggested change
}
}

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@vandenman vandenman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no preference about the renaming, but perhaps we should check what other software does (SPSS?) and then just call it the same.

@juliuspfadt
Copy link
Collaborator Author

If I am not mistaken, they call it "Alpha" and the analysis "Reliability Analysis". We had some issues with people not finding Cronbach's alpha... so I thought we bite the bullet

@vandenman
Copy link
Contributor

any idea why the tests fail on macos? Do they need a higher tolerance?

@juliuspfadt
Copy link
Collaborator Author

same thing happened in my SEM tests with bootstrapping...

@juliuspfadt juliuspfadt merged commit 5a3adef into jasp-stats:master Dec 10, 2025
6 checks passed
@juliuspfadt juliuspfadt deleted the fixSplithalf branch December 10, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Error while using split-half-coefficient with analytic interval

2 participants