RXR-2114: add support for NCA-based adjustment#6
Open
jasmineirx wants to merge 11 commits intomainfrom
Open
Conversation
Contributor
Seems a bit large difference. Do you have the code for the example that you tested? I don't think it's the test case, no? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a set of functions that make it possible to call clinPK::nca for dose adjustment. The main new function is
dose_adjust_nca, which will iteratively estimate AUC using NCA, and then update theregimento target an AUC. The new dose is recommended based on assuming constant clearance, using a ratio of AUC:dose. This function (dose_from_auc) will also be useful for other algorithms, like 2-sample kinetics.I was surprised the AUC achieved this way was not as close to the target as I expected. When calculating "true" target by integrating under the curve via PKPDsim (the test case added has a cumulatvie AUC of about 420 for a target of 500), but when using the estimated AUC, it seems bang-on (after 3 days of a 4-day regimen, the achieved estimated AUC is basically exactly 75% of the target AUC), so I think this is due to differences between NCA and compartmental models.