add_pk_iiv#

pharmpy.modeling.add_pk_iiv(model, initial_estimate=0.09)[source]#

Adds IIVs to all PK parameters in pharmpy.model.

Will add exponential IIVs to all parameters that are included in the ODE.

Parameters:
  • model (Model) – Pharmpy model to add new IIVs to.

  • initial_estimate (float) – Value of initial estimate of parameter. Default is 0.09

Returns:

Model – Pharmpy model object

Example

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = set_first_order_absorption(model)
>>> model.statements.find_assignment("MAT")
MAT = POP_MAT
>>> model = add_pk_iiv(model)
>>> model.statements.find_assignment("MAT")
               ETA_MAT
MAT = POP_MAT⋅ℯ