get_rv_parameters#
- pharmpy.modeling.get_rv_parameters(model, rv)[source]#
Retrieves parameters in
pharmpy.model.Model
given a random variable.- Parameters:
model (Model) – Pharmpy model to retrieve parameters from
rv (str) – Name of random variable to retrieve
- Returns:
list[str] – A list of parameter names for the given random variable
Example
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> get_rv_parameters(model, 'ETA_CL') ['CL']