expand_additional_doses#
- pharmpy.modeling.expand_additional_doses(model, flag=False)[source]#
Expand additional doses into separate dose records
- Parameters:
model (Model) – Pharmpy model object
flag (bool) – True to add a boolean EXPANDED column to mark added records. In this case all columns in the original dataset will be kept. Care needs to be taken to handle the new dataset.
- Returns:
Model – Pharmpy model object