Skip to content

Feature consideration: Autodetect model transformations to set typical values? #8

@billdenney

Description

@billdenney

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 lka and the parameter within the model is defined as ka <- 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 to ini(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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions