Closed danieleboaretti closed 2 weeks ago
Thank you for the report. I think that what you're asking for was implemented in PKNCA version 0.11.0 (see the first bullet of the news here: https://github.com/billdenney/pknca/blob/main/NEWS.md#pknca-0110).
With that, you will see "n = 11" when a summary statistic does not include all 12, as in your example.
Can you please confirm that you're running version 0.11.0 (or the development version) and let me know if that is what you're looking for?
Thank you for your reply, indeed it was version 0.10.2. With the latest version I get the output you mentioned. Still, I think it would be useful also to know which IDs might be not included for further user inspection. It looks to me this information is not reported, right?
The way to find the IDs that are excluded is to look at the "exclude" column and filter for NA values in the PPORRES column when you run as.data.frame(result_obj)
.
I keep this separate because the purpose of the summary is to provide that summary without going into the details of which may be missing or be excluded. That list can get very long in some cases, so it would overwhelm the summary table.
Hello,
I would like to report that when there is a subject with an half life that cannot be computed, i.e. it gives as output NC when computed by itself, this information is not reported in the output when the half life is computed in a group with such subject with
pk.nca
. I think it would be ideal to show a warning in the output and reporting the IDs that have a NC as half life.Reproducible example for a single ID which gives a NC as half life:
Output:
Example with a group:
Output:
and 7.62 is the arithmetic mean of all half life values except for ID=1. Indeed, without manually setting those values to 12, the half life for the whole group is 8.18 while the half life for ID=1 is 14.3, hence
(8.18*12-14.3)/11=7.62
Moreover, I also highlight that this might be a problem when having other output values like AUC, CMax, and TMax because those values could report N=12 (they are not directly affected by the computation of the AUC), while for half life it should be reported N=11 in the case I showed above.
I hope it is clear.
Thank you for your time
Daniele