Repository navigation
Correct misclassification risk estimates and align result interpretation - #133
Merged
Merged
Conversation
sbalci
force-pushed
the
fix/misclassificationbias-reporting
branch
from
November 28, 2026 10:28
5d49b6f to
acbf07b
Compare
sbalci
marked this pull request as ready for review
November 28, 2026 10:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebased onto master after #132 (@chenyangsu's corrected risk denominators and asymmetric fixture) was merged. This PR now carries only the reporting and interpretation changes on top of it.
Before production
The model, floor, continuity correction and bootstrap are unchanged. Sensitivity and specificity are held fixed in the bootstrap; the intervals do not propagate uncertainty in those rates. The range grid is not a differential sensitivity analysis. Separately consider rejecting multilevel/invalid level selections, and deciding whether to withhold infeasible corrections instead of flooring them. Do not read an OR as an RR.
Validation
Independent arithmetic and static source review. Added regression cases for the asymmetric fixture (including OR), attenuation, exaggeration, equality, reversal and undefined bias percentage at the null. After the rebase,
tests/testthat/test-misclassificationbias.Rpasses locally: 12 tests, 26 assertions, 0 failures. It was run by sourcing the analysis files, not through an installed package. It has not been checked in the jamovi app. Red Ubuntu checks before themltoolsRemotes/Imports fix reaches master are a dependency-resolution failure, not test results.