get_parameter_rv#

pharmpy.modeling.get_parameter_rv(model, parameter, var_type='iiv')[source]#

Retrieves name of random variable in pharmpy.model.Model given a parameter.

Parameters:
  • model (Model) – Pharmpy model to retrieve parameters from

  • parameter (str) – Name of parameter to retrieve random variable from

  • var_type ({‘iiv’, ‘iov’}) – Variability type: iiv (default) or iov

Returns:

list[str] – A list of random variable names for the given parameter

Example

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> get_parameter_rv(model, 'CL')
['ETA_CL']