set_weibull_absorption#
- pharmpy.modeling.set_weibull_absorption(model)[source]#
Set or change to Weibull type absorption
Initial estimate for absorption rate is set to??
If multiple doses is set to the affected compartment, currently only iv+oral doses (one of each) is supported
Weibull absorption cannot be used together with lag time and transit compartments.
Assumes that absorption of one does is done when next dose is given.
Warning
This function is still under development.
- 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│──KA→│CENTRAL│──CL/V→ └─────┘ └───────┘