-
Notifications
You must be signed in to change notification settings - Fork 4
Description
This is a longer-term request. It does not need to happen before the PKNCA connection is made.
Something that would help the PKNCA connection would be the ability to automatically detect typical value translations and parameter names. This also seems like it could be useful for users to get the automatic back-translation. As an example, it would be useful to do something like the following:
- Make a model with absorption rate on the log scale so that the parameter name is
lkaand the parameter within the model is defined aska <- exp(lka)(eta and additional covariates may be added, too). - When updating model parts make it auto-detect the typical value parameter and translation for updates so that
ini(model, ka=2)gets automatically translated toini(model, lka=log(2)).
The code for this could be pretty similar to what is already in addEta().
My first thought for implementation is that it would be best/easiest within the ini() function itself, but if the mu-referencing is only known to nlmixr2est and not known to rxode2, that makes it a bit more complicated. If implemented in rxode2, then I think that the mu-referencing code would need to move from nlmixr2est to rxode2 (but I don't really know).
My second thought is to put it here and give it a unique name like updateIni(). That is cleaner in that translation of parameter names would never happen without it being intentional. (In other words, translation from ka to lka would not happen within ini().) But, it makes the user need to know another function for a similar purpose.
My third thought is: Don't make this too complicated, Bill.
Thoughts?