When I generate the report for NCA, the NCA calculations are shifted (red line to calculate kel) and is not on the observed points (black dots). How do I fix this?
thank you for your bug report, this is indeed a regression that was introduced in a refactor of the backend, the reason is inconsistent handling of time. One trace uses time-after-dose and the other absolute time.
In an ongoing rework of the NCA.jl package, we are shifting to using time-after-dose everywhere which removes this whole class of time-based bugs. Until then, you can do the transformation to time-after-dose manually by subtracting the dose time from each profile’s time vector. This should get rid of the undesired offset in the plots.