add_lag_time#
- pharmpy.modeling.add_lag_time(model)[source]#
Add lag time to the dose compartment of model.
Initial estimate for lag time is set the previous lag time if available, otherwise it is set to the time of first observation/2.
- Parameters:
model (Model) – Pharmpy model
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = add_lag_time(model)
See also