Skip to content

feat: add bioequivalence inferential statistics functions#547

Open
billdenney wants to merge 1 commit into
mainfrom
bioequivalence-functions
Open

feat: add bioequivalence inferential statistics functions#547
billdenney wants to merge 1 commit into
mainfrom
bioequivalence-functions

Conversation

@billdenney
Copy link
Copy Markdown
Member

Add fitbe_models(), fitbe_table(), and fitbe_calculate() to compute average bioequivalence statistics from NCA results: per-endpoint linear mixed-effects models on log-transformed values, geometric mean ratios with 90 percent confidence intervals, Satterthwaite degrees of freedom, and intra-subject CV. The functions consume the long-format output of a PKNCAresults object directly.

The statistical engine packages (lme4, lmerTest, emmeans) are Suggests and guarded with requireNamespace(); tests skip when they are absent. Adds the v50-bioequivalence vignette, tests, and documentation. Formalizes the prototype workflow from PR 490.

Add fitbe_models(), fitbe_table(), and fitbe_calculate() to compute average
bioequivalence statistics from NCA results: per-endpoint linear mixed-effects
models on log-transformed values, geometric mean ratios with 90 percent
confidence intervals, Satterthwaite degrees of freedom, and intra-subject CV.
The functions consume the long-format output of a PKNCAresults object directly.

The statistical engine packages (lme4, lmerTest, emmeans) are Suggests and
guarded with requireNamespace(); tests skip when they are absent. Adds the
v50-bioequivalence vignette, tests, and documentation. Formalizes the
prototype workflow from PR 490.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@billdenney
Copy link
Copy Markdown
Member Author

Based on the functions @Sang-j111 build in #490

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