Skip to content

Update NEWS.md with recent bug fixes for ED calculations#189

Merged
hreinwald merged 1 commit intodevfrom
claude/update-news-md
Apr 13, 2026
Merged

Update NEWS.md with recent bug fixes for ED calculations#189
hreinwald merged 1 commit intodevfrom
claude/update-news-md

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented Apr 13, 2026

Documents two critical bug fixes from PR #188 related to effective dose (ED) calculations in the drc package.

Changes

  • Logistic model absolute ED calculation: Added documentation for fix to logistic() model's edfct function when type="absolute". The logistic model uses opposite b-sign convention from log-logistic (b < 0 = increasing), so EDhelper()'s automatic p-swap for b < 0 produces incorrect results. Fix uses inline absolute-to-relative conversion instead.

  • Model-level edfct derivatives for absolute ED: Added documentation for fix to gradient calculations in braincousens(), fplogistic(), llogistic(), llogistic2(), lnormal(), weibull1(), and weibull2(). When type = "absolute", these functions incorrectly set ∂ED/∂c and ∂ED/∂d to 0, violating the chain rule since the absolute-to-relative conversion makes p depend on c and d. Fix computes these partials via central differences.

Both fixes ensure correct standard error estimates for absolute-type ED calculations across all affected dose-response models.

@hreinwald hreinwald marked this pull request as ready for review April 13, 2026 14:20
@hreinwald hreinwald merged commit 97ac257 into dev Apr 13, 2026
5 checks passed
@hreinwald hreinwald deleted the claude/update-news-md branch April 13, 2026 14:20
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