set_baseline_effect#
- pharmpy.modeling.set_baseline_effect(model, expr='const')[source]#
Create baseline effect model.
Currently implemented baseline effects are:
Constant baseline effect (const):
\[E = B\]- Parameters:
model (Model) – Pharmpy model
expr (str) – Name of baseline effect function.
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = set_baseline_effect(model, expr='const') >>> model.statements.find_assignment("E") E = B