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.

@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.
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

1 participant