add_admid#
- pharmpy.modeling.add_admid(model)[source]#
Add an admid column to the model dataset and datainfo. Dependent on the presence of a CMT column in order to add admid correctly.
When generated, admids of events in between doses is set to the last used admid.
- Parameters:
model (Model) – Pharmpy model
- Returns:
model (Model) – Pharmpy model