Skip to content

Add comprehensive unit tests for calc_bucher_naive function - #66

Merged
n8thangreen merged 1 commit into
mainfrom
agents/stale-hawk
Jun 19, 2026
Merged

Add comprehensive unit tests for calc_bucher_naive function#66
n8thangreen merged 1 commit into
mainfrom
agents/stale-hawk

Conversation

@n8thangreen

Copy link
Copy Markdown
Collaborator
  • Tests cover 13 test groups including basic functionality, different link functions (logit, log, identity), scale transformations (risk_difference, log_relative_risk), edge cases (NAs, extreme proportions), consistency checks, and large sample sizes
  • Tests follow existing testthat patterns in the package
  • Function correctly calculates unadjusted Bucher indirect comparisons on link scale and transforms to requested scales

- Tests cover 13 test groups including basic functionality, different link functions (logit, log, identity), scale transformations (risk_difference, log_relative_risk), edge cases (NAs, extreme proportions), consistency checks, and large sample sizes
- Tests follow existing testthat patterns in the package
- Function correctly calculates unadjusted Bucher indirect comparisons on link scale and transforms to requested scales
@n8thangreen
n8thangreen merged commit c1412bb into main Jun 19, 2026
0 of 5 checks passed
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.

1 participant