remove_iov#

pharmpy.modeling.remove_iov(model, to_remove=None)[source]#

Removes all IOV etas given a list with eta names.

Parameters:
  • model (Model) – Pharmpy model to remove IOV from.

  • to_remove (str, list) – Name/names of IOV etas to remove, e.g. ‘ETA_IOV_1_1’. If None, all etas that are IOVs will be removed. None is default.

Returns:

Model – Pharmpy model object

Example

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = remove_iov(model)