Skip to content

New function to calculate median odds ratio - #939

Merged
strengejacke merged 6 commits into
mainfrom
performance_mor
Aug 24, 2026
Merged

New function to calculate median odds ratio#939
strengejacke merged 6 commits into
mainfrom
performance_mor

Conversation

@strengejacke

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds new performance metrics for mixed (multilevel) logistic regression models—most notably a Median Odds Ratio (MOR) helper—along with supporting exports, documentation, and tests.

Changes:

  • Added performance_mor() (Median Odds Ratio) with an S3 print method and test coverage.
  • Added performance_ior() (Interval Odds Ratio) with an S3 print method and exports.
  • Updated various docs/tests/metadata (ROC test formatting, anova() link target, NAMESPACE formatting, package version bump).

Reviewed changes

Copilot reviewed 7 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/testthat/test-performance_roc.R Reformats expected ROC vectors and renames test blocks.
tests/testthat/test-performance_mor.R Adds tests for performance_mor() and its error handling.
R/test_performance.R Fixes roxygen link target for stats::anova.
R/performance_mor.R Introduces performance_mor() + print method and roxygen docs.
R/performance_ior.R Introduces performance_ior() + print method and roxygen docs.
NAMESPACE Exports MOR/IOR and registers print S3 methods; reformats imports.
man/test_performance.Rd Regenerated Rd reflecting stats::anova link target change.
man/performance_mor.Rd New generated documentation for MOR.
man/performance_ior.Rd New generated documentation for IOR.
man/check_heteroscedasticity.Rd Minor doc reflow; contains a remaining typo in changed text.
DESCRIPTION Bumps package version and roxygen2 metadata version.
Files not reviewed (4)
  • man/check_heteroscedasticity.Rd: Generated file
  • man/performance_ior.Rd: Generated file
  • man/performance_mor.Rd: Generated file
  • man/test_performance.Rd: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread R/performance_mor.R Outdated
Comment thread R/performance_mor.R
Comment thread R/performance_ior.R Outdated
Comment thread R/performance_ior.R Outdated
Comment thread R/performance_ior.R
Comment thread man/check_heteroscedasticity.Rd
@strengejacke
strengejacke merged commit b11181c into main Aug 24, 2026
12 of 21 checks passed
@strengejacke
strengejacke deleted the performance_mor branch August 24, 2026 11:37
strengejacke and others added 3 commits August 24, 2026 13:37
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants