Update parameter estimates (and fix)
update_parameters.RdFor example for using model in simulations.
Value
the input pharmpy model with parameter estimates updated, or
invisible(NULL) if no estimates were available
Details
Supports both NONMEM-backend and nlmixr-backend pharmpy models. The fit
argument may be:
a pharmpy
ModelfitResultsobject (NONMEM path)the pharmpy-shaped wrapper returned by
run_nlme()on an nlmixr modela raw
nlmixr2FitCoreobject (output ofnlmixr2::nlmixr2()called directly, without going throughrun_nlme())
For nlmixr2 fits, both diagonal and off-diagonal omega elements are
extracted so that block-omega parameters (named IIV_X_IIV_Y in pharmpy)
are updated alongside the variance terms.