set_weibull_absorption#
- pharmpy.modeling.set_weibull_absorption(model)[source]#
Set or change to Weibull type absorption
The Weibull absorption has an abosption rate varying with time (or rather time after dose).
Initial parameter estimates will be set differently depending on whether the original model has MAT and/or MDT.
MAT
MDT
yes
yes
1.5
yes
no
1.0
MAT
no
yes
1.0
MDT
no
no
1.5
Same as if having MAT, but use min observation time * 2
If multiple doses are fed into the affected compartment, currently only iv+oral doses (one of each) is supported.
Weibull absorption cannot be used together with lag time or transit compartments.
Assumes that absorption of one dose is complete when the next dose is given.
- Parameters:
model (Model) – Model to set or change to use Weibull absorption rate
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = set_weibull_absorption(model) >>> model.statements.ode_system Bolus(AMT, admid=1) → DEPOT ┌─────┐ ┌───────┐ │DEPOT│──KAW→│CENTRAL│──CL/V→ └─────┘ └───────┘