get_ids#

pharmpy.modeling.get_ids(model)[source]#

Retrieve a list of all subject ids of the dataset

Parameters:

model (Model) – Pharmpy model

Returns:

list – All subject ids

Example

>>> from pharmpy.modeling import load_example_model, get_ids
>>> model = load_example_model("pheno")
>>> get_ids(model)      
[1, 2, 3, ..., 57, 58, 59]