Tecnical question: How observed parameters are calculated with imputations #371
-
Hello everyone! I remember that @billdenney mentioned me in a past issue in aNCA that observed variables such as
The output then differs for each on PKNCA_0.11.0.9000 as you can see in this console print:
If this is a bug, I guess it would be interesting to open a new issue, fix it and perhaps also add tests to these functions as in #361 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
If this is indeed an issue I would naively propose a solution in Delete these two lines (367, 368):
And add the impute_data conditionally in the args_call assignation later:
|
Beta Was this translation helpful? Give feedback.
-
Hmm. This is a complicated one to me. Doing the imputation of trough concentrations before calculation could affect cmin and ctrough. Imputation of C0 should happen by using the AUCiv parameters instead because, otherwise, the percent back extrapolation calculation will be inaccurate as 0. (I am okay with the inclusion of the imputation suggested in #361 because it enables plotting more easily. I also strongly believe that software should enable users to do what they want and need rather than forcing them to use it just one way.) That said, I agree that parameters that are observed should not be affected by imputation. I would propose that a preferred solution would be to add an argument to Does that make sense? Also, that new column should have an indicator added to the parameters description table in the intervals vignette. |
Beta Was this translation helpful? Give feedback.
-
After reading your response I actually agree, we should elude hard-coding implementations and keep the package flexible. I like your solution. I will just propose two alternatives that I feel can also make sense:
You have a better perspective of the overall, so let me know which of the three strategies you think is the best or if we still should think about it, but I believe it can be something useful to implement! |
Beta Was this translation helpful? Give feedback.
The issue is in #379