Problem
The four dose-aware interval AUC parameters (aucint.last.dose, aucint.all.dose, aucint.inf.obs.dose, aucint.inf.pred.dose) are registered separately from their non-dose counterparts (aucint.last, aucint.all, aucint.inf.obs, aucint.inf.pred). The only difference is that the dose-aware variants pass time.dose = "time.dose.group" instead of NULL, truncating interpolation/extrapolation at the next dose time.
Having two separate sets of parameters creates ambiguity — especially for as.data.frame(out = "wide") when both variants share the same PPTESTCD — and neither set currently carries a default PPANMETH to distinguish them.
Proposal
-
Unify the dose-aware and non-dose-aware aucint functions into a single set of parameters. Dose awareness should be the default behavior when dosing data is available, with a fallback to the current non-dose-aware calculation when dosing data is not provided.
-
Add a default PPANMETH to indicate which method was applied (e.g. "Interpolation truncated at next dose time" vs. standard interpolation), so the distinction is surfaced in outputs and summaries.
References
- Parameter registrations:
R/aucint.R (lines ~254–355)
- Underlying functions:
pk.calc.aucint.last, pk.calc.aucint.all, pk.calc.aucint.inf.obs, pk.calc.aucint.inf.pred
Problem
The four dose-aware interval AUC parameters (
aucint.last.dose,aucint.all.dose,aucint.inf.obs.dose,aucint.inf.pred.dose) are registered separately from their non-dose counterparts (aucint.last,aucint.all,aucint.inf.obs,aucint.inf.pred). The only difference is that the dose-aware variants passtime.dose = "time.dose.group"instead ofNULL, truncating interpolation/extrapolation at the next dose time.Having two separate sets of parameters creates ambiguity — especially for
as.data.frame(out = "wide")when both variants share the samePPTESTCD— and neither set currently carries a defaultPPANMETHto distinguish them.Proposal
Unify the dose-aware and non-dose-aware
aucintfunctions into a single set of parameters. Dose awareness should be the default behavior when dosing data is available, with a fallback to the current non-dose-aware calculation when dosing data is not provided.Add a default
PPANMETHto indicate which method was applied (e.g. "Interpolation truncated at next dose time" vs. standard interpolation), so the distinction is surfaced in outputs and summaries.References
R/aucint.R(lines ~254–355)pk.calc.aucint.last,pk.calc.aucint.all,pk.calc.aucint.inf.obs,pk.calc.aucint.inf.pred