add_individual_parameter#

pharmpy.modeling.add_individual_parameter(model, name)[source]#

Add an individual or pk parameter to a model

Parameters:
  • model (Model) – Pharmpy model

  • name (str) – Name of individual/pk parameter

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = add_individual_parameter(model, "KA")
>>> model.statements.find_assignment("KA")
KA = POP_KA