add_bioavailability#
- pharmpy.modeling.add_bioavailability(model, add_parameter=True, logit_transform=False)[source]#
Add bioavailability statement for the first dose compartment of the model. Can be added as a new parameter or otherwise it will be set to 1. If added as a parameter, a logit transformation can also be applied.
- Parameters:
model (Model) – Pharmpy model
add_parameter (bool) – Add new parameter representing bioavailability or not
logit_transform (bool) – Logit transform the added bioavailability parameter.
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = add_bioavailability(model)
See also