Closed billdenney closed 3 years ago
I think this is a fine idea!
Great! Do you think it's reasonable to create an nlmixrExtra
package under the nlmixrdevelopment aegis here on GitHub?
Sounds fine to me. Created it.
And, now it's there! https://github.com/nlmixrdevelopment/nlmixrExtra
Somewhat related to #540
To be very clear from the outset, I think that this would likely reside in another package than nlmixr, but it would be very tightly related. One common naming syntax for packages like this is something like
nlmixrExtra
.My thought here is something like an
nlmixr_tran()
function that would perform pre-processing of models to expand commonly-used model structures.nlmixr_tran()
would modify the model and return that modified model (or perhaps go ahead and call nlmixr with that modified model ifestimate=TRUE
or something like that).The output of
onecmt_expanded
would expand out thelinear_pk()
function to look like:With an expansion mechanism (as suggested with
nlmixr_trans()
), it would be comparatively straight-forward to make the substitution functions likeTMDD_Michaelis_Menten()
.