add_pd_iiv#

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

Adds IIVs to all PD parameters in pharmpy.model.

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_direct_effect(model, 'emax')
>>> model.statements.find_assignment("EC_50")
EC₅₀ = POP_EC_50
>>> model = add_pd_iiv(model)
>>> model.statements.find_assignment("EC_50")
                  ETA_EC_50
EC₅₀ = POP_EC_50⋅ℯ